Changeset 65891 in webkit
- Timestamp:
- Aug 24, 2010 5:26:55 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 35 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r65889 r65891 1 2010-08-24 Ilya Tikhonovsky <loislo@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 WebInspector: RemoteInspectorFrontend can be renamed to InspectorFrontend. 6 The old version of InspectorFrontend was removed some time ago and now 7 it is possible to rename the new version of inspector frontend class to its 8 original name. 9 https://bugs.webkit.org/show_bug.cgi?id=44499 10 11 * GNUmakefile.am: 12 * WebCore.gyp/WebCore.gyp: 13 * WebCore.pri: 14 * WebCore.vcproj/WebCore.vcproj: 15 * WebCore.xcodeproj/project.pbxproj: 16 * inspector/CodeGeneratorInspector.pm: 17 * inspector/ConsoleMessage.cpp: 18 (WebCore::ConsoleMessage::addToFrontend): 19 (WebCore::ConsoleMessage::updateRepeatCountInConsole): 20 * inspector/ConsoleMessage.h: 21 * inspector/InjectedScriptHost.cpp: 22 (WebCore::InjectedScriptHost::pushNodePathToFrontend): 23 (WebCore::InjectedScriptHost::frontend): 24 * inspector/InjectedScriptHost.h: 25 * inspector/InspectorApplicationCacheAgent.cpp: 26 (WebCore::InspectorApplicationCacheAgent::InspectorApplicationCacheAgent): 27 * inspector/InspectorApplicationCacheAgent.h: 28 * inspector/InspectorBackend.cpp: 29 (WebCore::InspectorBackend::dispatchOnInjectedScript): 30 (WebCore::InspectorBackend::frontend): 31 * inspector/InspectorBackend.h: 32 * inspector/InspectorCSSStore.cpp: 33 * inspector/InspectorCSSStore.h: 34 * inspector/InspectorController.cpp: 35 (WebCore::InspectorController::inspectedPageDestroyed): 36 (WebCore::InspectorController::inspect): 37 (WebCore::InspectorController::focusNode): 38 (WebCore::InspectorController::windowVisible): 39 (WebCore::InspectorController::addConsoleMessage): 40 (WebCore::InspectorController::clearConsoleMessages): 41 (WebCore::InspectorController::inspectedWindowScriptObjectCleared): 42 (WebCore::InspectorController::setSearchingForNode): 43 (WebCore::InspectorController::setMonitoringXHR): 44 (WebCore::InspectorController::connectFrontend): 45 (WebCore::InspectorController::show): 46 (WebCore::InspectorController::showPanel): 47 (WebCore::InspectorController::close): 48 (WebCore::InspectorController::disconnectFrontend): 49 (WebCore::InspectorController::populateScriptObjects): 50 (WebCore::InspectorController::pruneResources): 51 (WebCore::InspectorController::didCommitLoad): 52 (WebCore::InspectorController::didLoadResourceFromMemoryCache): 53 (WebCore::InspectorController::identifierForInitialRequest): 54 (WebCore::InspectorController::mainResourceFiredDOMContentEvent): 55 (WebCore::InspectorController::mainResourceFiredLoadEvent): 56 (WebCore::InspectorController::willSendRequest): 57 (WebCore::InspectorController::didReceiveResponse): 58 (WebCore::InspectorController::didReceiveContentLength): 59 (WebCore::InspectorController::didFinishLoading): 60 (WebCore::InspectorController::didFailLoading): 61 (WebCore::InspectorController::resourceRetrievedByXMLHttpRequest): 62 (WebCore::InspectorController::scriptImported): 63 (WebCore::InspectorController::enableResourceTracking): 64 (WebCore::InspectorController::disableResourceTracking): 65 (WebCore::InspectorController::startTimelineProfiler): 66 (WebCore::InspectorController::stopTimelineProfiler): 67 (WebCore::InspectorController::postWorkerNotificationToFrontend): 68 (WebCore::InspectorController::didCreateWorker): 69 (WebCore::InspectorController::didDestroyWorker): 70 (WebCore::InspectorController::selectDatabase): 71 (WebCore::InspectorController::didOpenDatabase): 72 (WebCore::InspectorController::didUseDOMStorage): 73 (WebCore::InspectorController::selectDOMStorage): 74 (WebCore::InspectorController::enableDebuggerFromFrontend): 75 (WebCore::InspectorController::enableDebugger): 76 (WebCore::InspectorController::disableDebugger): 77 (WebCore::InspectorController::evaluateForTestInFrontend): 78 * inspector/InspectorController.h: 79 (WebCore::InspectorController::hasFrontend): 80 * inspector/InspectorDOMAgent.cpp: 81 (WebCore::InspectorDOMAgent::InspectorDOMAgent): 82 * inspector/InspectorDOMAgent.h: 83 (WebCore::InspectorDOMAgent::create): 84 * inspector/InspectorDOMStorageResource.cpp: 85 (WebCore::InspectorDOMStorageResource::bind): 86 * inspector/InspectorDOMStorageResource.h: 87 * inspector/InspectorDatabaseResource.cpp: 88 (WebCore::InspectorDatabaseResource::bind): 89 * inspector/InspectorDatabaseResource.h: 90 * inspector/InspectorDebuggerAgent.cpp: 91 (WebCore::InspectorDebuggerAgent::create): 92 (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent): 93 (WebCore::InspectorDebuggerAgent::setPauseOnExceptionsState): 94 (WebCore::InspectorDebuggerAgent::didParseSource): 95 (WebCore::InspectorDebuggerAgent::failedToParseSource): 96 (WebCore::InspectorDebuggerAgent::didPause): 97 (WebCore::InspectorDebuggerAgent::didContinue): 98 * inspector/InspectorDebuggerAgent.h: 99 * inspector/InspectorProfilerAgent.cpp: 100 (WebCore::InspectorProfilerAgent::InspectorProfilerAgent): 101 (WebCore::InspectorProfilerAgent::addProfile): 102 (WebCore::InspectorProfilerAgent::disable): 103 (WebCore::InspectorProfilerAgent::enable): 104 (WebCore::InspectorProfilerAgent::resetState): 105 (WebCore::InspectorProfilerAgent::toggleRecordButton): 106 * inspector/InspectorProfilerAgent.h: 107 (WebCore::InspectorProfilerAgent::setFrontend): 108 * inspector/InspectorResource.cpp: 109 (WebCore::InspectorResource::updateScriptObject): 110 (WebCore::InspectorResource::releaseScriptObject): 111 * inspector/InspectorResource.h: 112 * inspector/InspectorStorageAgent.cpp: 113 (WebCore::InspectorStorageAgent::InspectorStorageAgent): 114 * inspector/InspectorStorageAgent.h: 115 (WebCore::InspectorStorageAgent::create): 116 (WebCore::InspectorStorageAgent::frontend): 117 * inspector/InspectorTimelineAgent.cpp: 118 (WebCore::InspectorTimelineAgent::InspectorTimelineAgent): 119 (WebCore::InspectorTimelineAgent::resetFrontendProxyObject): 120 * inspector/InspectorTimelineAgent.h: 121 1 122 2010-08-24 Nikolas Zimmermann <nzimmermann@rim.com> 2 123 -
trunk/WebCore/GNUmakefile.am
r65827 r65891 99 99 DerivedSources/WebCore/InspectorBackendDispatcher.cpp \ 100 100 DerivedSources/WebCore/InspectorBackendDispatcher.h \ 101 DerivedSources/WebCore/InspectorFrontend.cpp \ 102 DerivedSources/WebCore/InspectorFrontend.h \ 101 103 DerivedSources/WebCore/JSAbstractWorker.cpp \ 102 104 DerivedSources/WebCore/JSAbstractWorker.h \ … … 552 554 DerivedSources/WebCore/JSXSLTProcessor.cpp \ 553 555 DerivedSources/WebCore/JSXSLTProcessor.h \ 554 DerivedSources/WebCore/RemoteInspectorFrontend.cpp \555 DerivedSources/WebCore/RemoteInspectorFrontend.h \556 556 DerivedSources/WebCore/UserAgentStyleSheetsData.cpp \ 557 557 DerivedSources/WebCore/UserAgentStyleSheets.h \ … … 4539 4539 4540 4540 # All Web Inspector generated files are created with this one call to CodeGeneratorInspector.pm 4541 DerivedSources/WebCore/ RemoteInspectorFrontend.cpp DerivedSources/WebCore/RemoteInspectorFrontend.h DerivedSources/WebCore/InspectorBackendDispatcher.cpp DerivedSources/WebCore/InspectorBackendDispatcher.h DerivedSources/WebCore/InspectorBackendStub.js: $(WebCore)/inspector/Inspector.idl $(SCRIPTS_BINDINGS) $(WebCore)/inspector/CodeGeneratorInspector.pm4541 DerivedSources/WebCore/InspectorFrontend.cpp DerivedSources/WebCore/InspectorFrontend.h DerivedSources/WebCore/InspectorBackendDispatcher.cpp DerivedSources/WebCore/InspectorBackendDispatcher.h DerivedSources/WebCore/InspectorBackendStub.js: $(WebCore)/inspector/Inspector.idl $(SCRIPTS_BINDINGS) $(WebCore)/inspector/CodeGeneratorInspector.pm 4542 4542 $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts -I$(WebCore)/inspector $(WebCore)/bindings/scripts/generate-bindings.pl $(IDL_PATH:%=--include "%") --outputDir "$(GENSOURCES_WEBCORE)" --defines "LANGUAGE_JAVASCRIPT=1 $(FEATURE_DEFINES)" --generator Inspector $< 4543 4543 -
trunk/WebCore/WebCore.gyp/WebCore.gyp
r65608 r65891 288 288 '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js', 289 289 '<(SHARED_INTERMEDIATE_DIR)/webkit/InspectorBackendDispatcher.h', 290 '<(SHARED_INTERMEDIATE_DIR)/webcore/ RemoteInspectorFrontend.cpp',291 '<(SHARED_INTERMEDIATE_DIR)/webkit/ RemoteInspectorFrontend.h',290 '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorFrontend.cpp', 291 '<(SHARED_INTERMEDIATE_DIR)/webkit/InspectorFrontend.h', 292 292 ], 293 293 'variables': { … … 758 758 759 759 # Additional .cpp files from the webcore_inspector_sources list. 760 '<(SHARED_INTERMEDIATE_DIR)/webcore/ RemoteInspectorFrontend.cpp',760 '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorFrontend.cpp', 761 761 '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendDispatcher.cpp', 762 762 ], -
trunk/WebCore/WebCore.pri
r65656 r65891 556 556 557 557 # GENERATOR 2: inspector idl compiler 558 inspectorIDL.output = $${WC_GENERATED_SOURCES_DIR}/ Remote${QMAKE_FILE_BASE}Frontend.cpp $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}BackendDispatcher.cpp558 inspectorIDL.output = $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}Frontend.cpp $${WC_GENERATED_SOURCES_DIR}/${QMAKE_FILE_BASE}BackendDispatcher.cpp 559 559 inspectorIDL.input = INSPECTOR_INTERFACES 560 560 inspectorIDL.wkScript = $$PWD/bindings/scripts/generate-bindings.pl -
trunk/WebCore/WebCore.vcproj/WebCore.vcproj
r65827 r65891 554 554 </File> 555 555 <File 556 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\InspectorFrontend.cpp" 557 > 558 </File> 559 <File 560 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\InspectorFrontend.h" 561 > 562 </File> 563 <File 556 564 RelativePath="$(WebKitOutputDir)\obj\WebCore\DerivedSources\JSAbstractWorker.cpp" 557 565 > … … 21475 21483 <File 21476 21484 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\MathMLNames.h" 21477 >21478 </File>21479 <File21480 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\RemoteInspectorFrontend.cpp"21481 >21482 </File>21483 <File21484 RelativePath="$(WebKitOutputDir)\obj\$(ProjectName)\DerivedSources\RemoteInspectorFrontend.h"21485 21485 > 21486 21486 </File> -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r65827 r65891 1072 1072 4F3289B511A42AAB005ABE7E /* InspectorValues.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4F3289B311A42AAB005ABE7E /* InspectorValues.cpp */; }; 1073 1073 4F3289B611A42AAB005ABE7E /* InspectorValues.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F3289B411A42AAB005ABE7E /* InspectorValues.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1074 4F4F5FFB11CBD2E100A186BF /* RemoteInspectorFrontend.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4F4F5FFA11CBD2D200A186BF /* RemoteInspectorFrontend.cpp */; };1074 4F4F5FFB11CBD2E100A186BF /* InspectorFrontend.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4F4F5FFA11CBD2D200A186BF /* InspectorFrontend.cpp */; }; 1075 1075 4F707A9911EF679400ACDA69 /* InspectorBackendDispatcher.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4F707A9711EF679400ACDA69 /* InspectorBackendDispatcher.cpp */; }; 1076 1076 4F707A9A11EF679400ACDA69 /* InspectorBackendDispatcher.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F707A9811EF679400ACDA69 /* InspectorBackendDispatcher.h */; }; … … 6951 6951 4F3289B311A42AAB005ABE7E /* InspectorValues.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InspectorValues.cpp; sourceTree = "<group>"; }; 6952 6952 4F3289B411A42AAB005ABE7E /* InspectorValues.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InspectorValues.h; sourceTree = "<group>"; }; 6953 4F4F5FFA11CBD2D200A186BF /* RemoteInspectorFrontend.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RemoteInspectorFrontend.cpp; sourceTree = "<group>"; };6954 4F4F5FFC11CBD30100A186BF /* RemoteInspectorFrontend.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RemoteInspectorFrontend.h; sourceTree = "<group>"; };6953 4F4F5FFA11CBD2D200A186BF /* InspectorFrontend.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InspectorFrontend.cpp; sourceTree = "<group>"; }; 6954 4F4F5FFC11CBD30100A186BF /* InspectorFrontend.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InspectorFrontend.h; sourceTree = "<group>"; }; 6955 6955 4F707A9711EF679400ACDA69 /* InspectorBackendDispatcher.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InspectorBackendDispatcher.cpp; sourceTree = "<group>"; }; 6956 6956 4F707A9811EF679400ACDA69 /* InspectorBackendDispatcher.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InspectorBackendDispatcher.h; sourceTree = "<group>"; }; … … 11758 11758 4F707A9711EF679400ACDA69 /* InspectorBackendDispatcher.cpp */, 11759 11759 4F707A9811EF679400ACDA69 /* InspectorBackendDispatcher.h */, 11760 4F4F5FFA11CBD2D200A186BF /* InspectorFrontend.cpp */, 11761 4F4F5FFC11CBD30100A186BF /* InspectorFrontend.h */, 11760 11762 7A0E76D810BF059800A0276E /* JSInjectedScriptHost.cpp */, 11761 11763 7A0E76D910BF059800A0276E /* JSInjectedScriptHost.h */, … … 11768 11770 9FA37EF81172FD9300C4CD55 /* JSScriptProfileNode.cpp */, 11769 11771 9FA37EF91172FD9300C4CD55 /* JSScriptProfileNode.h */, 11770 4F4F5FFA11CBD2D200A186BF /* RemoteInspectorFrontend.cpp */,11771 4F4F5FFC11CBD30100A186BF /* RemoteInspectorFrontend.h */,11772 11772 ); 11773 11773 name = Inspector; … … 21458 21458 7A24587B1021EAF4000A00AA /* InspectorDOMAgent.cpp in Sources */, 21459 21459 41F061750F5F00AC00A07EAC /* InspectorDOMStorageResource.cpp in Sources */, 21460 4F4F5FFB11CBD2E100A186BF /* InspectorFrontend.cpp in Sources */, 21460 21461 F344C75811294FF600F26EEE /* InspectorFrontendClientLocal.cpp in Sources */, 21461 21462 7A0E770E10C00A8800A0276E /* InspectorFrontendHost.cpp in Sources */, … … 22152 22153 85031B4B0A44EFC700F992E0 /* RegisteredEventListener.cpp in Sources */, 22153 22154 B2C3DA2C0D006C1D00EF6F26 /* RegularExpression.cpp in Sources */, 22154 4F4F5FFB11CBD2E100A186BF /* RemoteInspectorFrontend.cpp in Sources */,22155 22155 93309E00099E64920056E581 /* RemoveCSSPropertyCommand.cpp in Sources */, 22156 22156 D06C0D900CFD11460065F43F /* RemoveFormatCommand.cpp in Sources */, -
trunk/WebCore/inspector/CodeGeneratorInspector.pm
r65809 r65891 45 45 }; 46 46 $typeTransform{"Frontend"} = { 47 "forward" => " RemoteInspectorFrontend",48 "header" => " RemoteInspectorFrontend.h",47 "forward" => "InspectorFrontend", 48 "header" => "InspectorFrontend.h", 49 49 }; 50 50 $typeTransform{"PassRefPtr"} = { … … 201 201 my $className = $interface->name; 202 202 203 $frontendClassName = "Remote" .$className . "Frontend";203 $frontendClassName = $className . "Frontend"; 204 204 $frontendConstructor = " ${frontendClassName}(InspectorClient* inspectorClient) : m_inspectorClient(inspectorClient) { }"; 205 205 $frontendFooter = " InspectorClient* m_inspectorClient;"; -
trunk/WebCore/inspector/ConsoleMessage.cpp
r65506 r65891 39 39 40 40 #if ENABLE(INSPECTOR) 41 #include " RemoteInspectorFrontend.h"41 #include "InspectorFrontend.h" 42 42 #endif 43 43 … … 115 115 116 116 #if ENABLE(INSPECTOR) 117 void ConsoleMessage::addToFrontend( RemoteInspectorFrontend* frontend, InjectedScriptHost* injectedScriptHost)117 void ConsoleMessage::addToFrontend(InspectorFrontend* frontend, InjectedScriptHost* injectedScriptHost) 118 118 { 119 119 RefPtr<InspectorObject> jsonObj = InspectorObject::create(); … … 150 150 } 151 151 152 void ConsoleMessage::updateRepeatCountInConsole( RemoteInspectorFrontend* frontend)152 void ConsoleMessage::updateRepeatCountInConsole(InspectorFrontend* frontend) 153 153 { 154 154 frontend->updateConsoleMessageRepeatCount(m_repeatCount); -
trunk/WebCore/inspector/ConsoleMessage.h
r64722 r65891 40 40 namespace WebCore { 41 41 class InjectedScriptHost; 42 class InspectorFrontend; 42 43 class InspectorObject; 43 class RemoteInspectorFrontend;44 44 class ScriptCallFrame; 45 45 class ScriptCallStack; … … 52 52 53 53 #if ENABLE(INSPECTOR) 54 void addToFrontend( RemoteInspectorFrontend*, InjectedScriptHost*);55 void updateRepeatCountInConsole( RemoteInspectorFrontend* frontend);54 void addToFrontend(InspectorFrontend*, InjectedScriptHost*); 55 void updateRepeatCountInConsole(InspectorFrontend* frontend); 56 56 #endif 57 57 void incrementCount() { ++m_repeatCount; } -
trunk/WebCore/inspector/InjectedScriptHost.cpp
r65730 r65891 43 43 #include "InspectorController.h" 44 44 #include "InspectorDOMAgent.h" 45 #include "InspectorFrontend.h" 45 46 #include "InspectorResource.h" 46 47 #include "Pasteboard.h" 47 #include "RemoteInspectorFrontend.h"48 48 49 49 #if ENABLE(JAVASCRIPT_DEBUGGER) … … 99 99 long InjectedScriptHost::pushNodePathToFrontend(Node* node, bool withChildren, bool selectInUI) 100 100 { 101 RemoteInspectorFrontend* frontend = remoteFrontend();102 101 InspectorDOMAgent* domAgent = inspectorDOMAgent(); 103 if (!domAgent || !frontend )102 if (!domAgent || !frontend()) 104 103 return 0; 105 104 long id = domAgent->pushNodePathToFrontend(node); … … 107 106 domAgent->pushChildNodesToFrontend(id); 108 107 if (selectInUI) 109 frontend ->updateFocusedNode(id);108 frontend()->updateFocusedNode(id); 110 109 return id; 111 110 } … … 176 175 } 177 176 178 RemoteInspectorFrontend* InjectedScriptHost::remoteFrontend()177 InspectorFrontend* InjectedScriptHost::frontend() 179 178 { 180 179 if (!m_inspectorController) 181 180 return 0; 182 return m_inspectorController->m_ remoteFrontend.get();181 return m_inspectorController->m_frontend.get(); 183 182 } 184 183 -
trunk/WebCore/inspector/InjectedScriptHost.h
r65730 r65891 44 44 class InjectedScript; 45 45 class InspectorDOMAgent; 46 class InspectorFrontend; 46 47 class Node; 47 class RemoteInspectorFrontend;48 48 class ScriptObject; 49 49 class Storage; … … 96 96 InjectedScriptHost(InspectorController* inspectorController); 97 97 InspectorDOMAgent* inspectorDOMAgent(); 98 RemoteInspectorFrontend* remoteFrontend();98 InspectorFrontend* frontend(); 99 99 ScriptObject createInjectedScript(const String& source, ScriptState* scriptState, long id); 100 100 void discardInjectedScript(ScriptState*); -
trunk/WebCore/inspector/InspectorApplicationCacheAgent.cpp
r65320 r65891 34 34 #include "FrameLoader.h" 35 35 #include "InspectorController.h" 36 #include "InspectorFrontend.h" 36 37 #include "InspectorValues.h" 37 38 #include "Page.h" 38 #include "RemoteInspectorFrontend.h"39 39 #include "ResourceResponse.h" 40 40 41 41 namespace WebCore { 42 42 43 InspectorApplicationCacheAgent::InspectorApplicationCacheAgent(InspectorController* inspectorController, RemoteInspectorFrontend* frontend)43 InspectorApplicationCacheAgent::InspectorApplicationCacheAgent(InspectorController* inspectorController, InspectorFrontend* frontend) 44 44 : m_inspectorController(inspectorController) 45 45 , m_frontend(frontend) -
trunk/WebCore/inspector/InspectorApplicationCacheAgent.h
r64986 r65891 36 36 class InspectorArray; 37 37 class InspectorController; 38 class InspectorFrontend; 38 39 class InspectorObject; 39 40 class InspectorValue; 40 class RemoteInspectorFrontend;41 41 class ResourceResponse; 42 42 43 43 class InspectorApplicationCacheAgent : public Noncopyable { 44 44 public: 45 InspectorApplicationCacheAgent(InspectorController* inspectorController, RemoteInspectorFrontend* frontend);45 InspectorApplicationCacheAgent(InspectorController* inspectorController, InspectorFrontend* frontend); 46 46 ~InspectorApplicationCacheAgent() { } 47 47 … … 60 60 61 61 InspectorController* m_inspectorController; 62 RemoteInspectorFrontend* m_frontend;62 InspectorFrontend* m_frontend; 63 63 }; 64 64 -
trunk/WebCore/inspector/InspectorBackend.cpp
r65412 r65891 41 41 #include "InspectorController.h" 42 42 #include "InspectorDOMAgent.h" 43 #include "InspectorFrontend.h" 43 44 #include "InspectorStorageAgent.h" 44 #include "RemoteInspectorFrontend.h"45 45 #include "ScriptBreakpoint.h" 46 46 #include "ScriptProfiler.h" … … 89 89 void InspectorBackend::dispatchOnInjectedScript(long injectedScriptId, const String& methodName, const String& arguments, RefPtr<InspectorValue>* result, bool* hadException) 90 90 { 91 if (! remoteFrontend())91 if (!frontend()) 92 92 return; 93 93 … … 138 138 #endif 139 139 140 RemoteInspectorFrontend* InspectorBackend::remoteFrontend()140 InspectorFrontend* InspectorBackend::frontend() 141 141 { 142 return m_inspectorController->m_ remoteFrontend.get();142 return m_inspectorController->m_frontend.get(); 143 143 } 144 144 -
trunk/WebCore/inspector/InspectorBackend.h
r65412 r65891 41 41 class InspectorDOMAgent; 42 42 class InspectorFrontend; 43 class RemoteInspectorFrontend;44 43 45 44 class InspectorBackend : public RefCounted<InspectorBackend> … … 79 78 private: 80 79 InspectorBackend(InspectorController* inspectorController); 81 RemoteInspectorFrontend* remoteFrontend();80 InspectorFrontend* frontend(); 82 81 83 82 InspectorController* m_inspectorController; -
trunk/WebCore/inspector/InspectorCSSStore.cpp
r64770 r65891 42 42 #include "InspectorResource.h" 43 43 #include "PlatformString.h" 44 #include "RemoteInspectorFrontend.h"45 44 #include "StyleSheetList.h" 46 45 -
trunk/WebCore/inspector/InspectorCSSStore.h
r65077 r65891 39 39 class Document; 40 40 class InspectorController; 41 class InspectorFrontend;42 41 class CSSMutableStyleDeclaration; 43 42 class CSSStyleDeclaration; -
trunk/WebCore/inspector/InspectorController.cpp
r65870 r65891 60 60 #include "InspectorCSSStore.h" 61 61 #include "InspectorClient.h" 62 #include "InspectorFrontend.h" 62 63 #include "InspectorFrontendClient.h" 63 64 #include "InspectorDOMStorageResource.h" … … 73 74 #include "ProgressTracker.h" 74 75 #include "Range.h" 75 #include "RemoteInspectorFrontend.h"76 76 #include "RenderInline.h" 77 77 #include "ResourceRequest.h" … … 198 198 void InspectorController::inspectedPageDestroyed() 199 199 { 200 if (m_ remoteFrontend)201 m_ remoteFrontend->inspectedPageDestroyed();200 if (m_frontend) 201 m_frontend->inspectedPageDestroyed(); 202 202 203 203 hideHighlight(); … … 259 259 m_nodeToFocus = node; 260 260 261 if (!m_ remoteFrontend) {261 if (!m_frontend) { 262 262 m_showAfterVisible = ElementsPanel; 263 263 return; … … 272 272 return; 273 273 274 ASSERT(m_ remoteFrontend);274 ASSERT(m_frontend); 275 275 ASSERT(m_nodeToFocus); 276 276 277 277 long id = m_domAgent->pushNodePathToFrontend(m_nodeToFocus.get()); 278 m_ remoteFrontend->updateFocusedNode(id);278 m_frontend->updateFocusedNode(id); 279 279 m_nodeToFocus = 0; 280 280 } … … 306 306 bool InspectorController::windowVisible() 307 307 { 308 return m_ remoteFrontend;308 return m_frontend; 309 309 } 310 310 … … 333 333 if (m_previousMessage && m_previousMessage->isEqual(scriptState, consoleMessage.get())) { 334 334 m_previousMessage->incrementCount(); 335 if (m_ remoteFrontend)336 m_previousMessage->updateRepeatCountInConsole(m_ remoteFrontend.get());335 if (m_frontend) 336 m_previousMessage->updateRepeatCountInConsole(m_frontend.get()); 337 337 } else { 338 338 m_previousMessage = consoleMessage.get(); 339 339 m_consoleMessages.append(consoleMessage); 340 if (m_ remoteFrontend)341 m_previousMessage->addToFrontend(m_ remoteFrontend.get(), m_injectedScriptHost.get());342 } 343 344 if (!m_ remoteFrontend && m_consoleMessages.size() >= maximumConsoleMessages) {340 if (m_frontend) 341 m_previousMessage->addToFrontend(m_frontend.get(), m_injectedScriptHost.get()); 342 } 343 344 if (!m_frontend && m_consoleMessages.size() >= maximumConsoleMessages) { 345 345 m_expiredConsoleMessageCount += expireConsoleMessagesStep; 346 346 m_consoleMessages.remove(0, expireConsoleMessagesStep); … … 357 357 if (m_domAgent) 358 358 m_domAgent->releaseDanglingNodes(); 359 if (m_ remoteFrontend)360 m_ remoteFrontend->consoleMessagesCleared();359 if (m_frontend) 360 m_frontend->consoleMessagesCleared(); 361 361 } 362 362 … … 429 429 430 430 if (enabled()) { 431 if (m_ remoteFrontend && frame == m_inspectedPage->mainFrame())431 if (m_frontend && frame == m_inspectedPage->mainFrame()) 432 432 m_injectedScriptHost->discardInjectedScripts(); 433 433 if (m_scriptsToEvaluateOnLoad.size()) { … … 450 450 if (!m_searchingForNode) 451 451 hideHighlight(); 452 if (m_ remoteFrontend) {452 if (m_frontend) { 453 453 if (enabled) 454 m_ remoteFrontend->searchingForNodeWasEnabled();454 m_frontend->searchingForNodeWasEnabled(); 455 455 else 456 m_ remoteFrontend->searchingForNodeWasDisabled();456 m_frontend->searchingForNodeWasDisabled(); 457 457 } 458 458 } … … 464 464 m_monitoringXHR = enabled; 465 465 setSetting(monitoringXHRSettingName, enabled ? "true" : "false"); 466 if (m_ remoteFrontend) {466 if (m_frontend) { 467 467 if (enabled) 468 m_ remoteFrontend->monitoringXHRWasEnabled();468 m_frontend->monitoringXHRWasEnabled(); 469 469 else 470 m_ remoteFrontend->monitoringXHRWasDisabled();470 m_frontend->monitoringXHRWasDisabled(); 471 471 } 472 472 } … … 476 476 m_openingFrontend = false; 477 477 releaseFrontendLifetimeAgents(); 478 m_ remoteFrontend = new RemoteInspectorFrontend(m_client);479 m_domAgent = InspectorDOMAgent::create(m_cssStore.get(), m_ remoteFrontend.get());478 m_frontend = new InspectorFrontend(m_client); 479 m_domAgent = InspectorDOMAgent::create(m_cssStore.get(), m_frontend.get()); 480 480 481 481 #if ENABLE(DATABASE) 482 m_storageAgent = InspectorStorageAgent::create(m_ remoteFrontend.get());482 m_storageAgent = InspectorStorageAgent::create(m_frontend.get()); 483 483 #endif 484 484 485 485 if (m_timelineAgent) 486 m_timelineAgent->resetFrontendProxyObject(m_ remoteFrontend.get());486 m_timelineAgent->resetFrontendProxyObject(m_frontend.get()); 487 487 488 488 // Initialize Web Inspector title. 489 m_ remoteFrontend->inspectedURLChanged(m_inspectedPage->mainFrame()->loader()->url().string());489 m_frontend->inspectedURLChanged(m_inspectedPage->mainFrame()->loader()->url().string()); 490 490 491 491 populateScriptObjects(); … … 501 501 enableDebugger(); 502 502 } 503 m_profilerAgent->set RemoteFrontend(m_remoteFrontend.get());503 m_profilerAgent->setFrontend(m_frontend.get()); 504 504 if (!ScriptProfiler::isProfilerAlwaysEnabled()) { 505 505 String profilerEnabledSetting = setting(profilerEnabledSettingName); … … 517 517 518 518 #if ENABLE(OFFLINE_WEB_APPLICATIONS) 519 m_applicationCacheAgent = new InspectorApplicationCacheAgent(this, m_ remoteFrontend.get());519 m_applicationCacheAgent = new InspectorApplicationCacheAgent(this, m_frontend.get()); 520 520 #endif 521 521 … … 533 533 return; 534 534 535 if (m_ remoteFrontend)536 m_ remoteFrontend->bringToFront();535 if (m_frontend) 536 m_frontend->bringToFront(); 537 537 else { 538 538 m_openingFrontend = true; … … 548 548 show(); 549 549 550 if (!m_ remoteFrontend) {550 if (!m_frontend) { 551 551 m_showAfterVisible = panel; 552 552 return; … … 556 556 return; 557 557 558 m_ remoteFrontend->showPanel(panel);558 m_frontend->showPanel(panel); 559 559 } 560 560 561 561 void InspectorController::close() 562 562 { 563 if (!m_ remoteFrontend)564 return; 565 m_ remoteFrontend->close();563 if (!m_frontend) 564 return; 565 m_frontend->close(); 566 566 } 567 567 568 568 void InspectorController::disconnectFrontend() 569 569 { 570 if (!m_ remoteFrontend)571 return; 572 m_ remoteFrontend.clear();570 if (!m_frontend) 571 return; 572 m_frontend.clear(); 573 573 574 574 connectedFrontendCount--; … … 593 593 594 594 #if ENABLE(JAVASCRIPT_DEBUGGER) 595 m_profilerAgent->set RemoteFrontend(0);595 m_profilerAgent->setFrontend(0); 596 596 m_profilerAgent->stopUserInitiatedProfiling(); 597 597 #endif … … 622 622 void InspectorController::populateScriptObjects() 623 623 { 624 ASSERT(m_ remoteFrontend);625 if (!m_ remoteFrontend)626 return; 627 628 m_ remoteFrontend->populateApplicationSettings(setting(frontendSettingsSettingName()));624 ASSERT(m_frontend); 625 if (!m_frontend) 626 return; 627 628 m_frontend->populateApplicationSettings(setting(frontendSettingsSettingName())); 629 629 630 630 if (m_resourceTrackingEnabled) 631 m_ remoteFrontend->resourceTrackingWasEnabled();631 m_frontend->resourceTrackingWasEnabled(); 632 632 633 633 if (m_searchingForNode) 634 m_ remoteFrontend->searchingForNodeWasEnabled();634 m_frontend->searchingForNodeWasEnabled(); 635 635 636 636 if (m_monitoringXHR) 637 m_ remoteFrontend->monitoringXHRWasEnabled();637 m_frontend->monitoringXHRWasEnabled(); 638 638 639 639 #if ENABLE(JAVASCRIPT_DEBUGGER) 640 640 if (m_profilerAgent->enabled()) 641 m_ remoteFrontend->profilerWasEnabled();641 m_frontend->profilerWasEnabled(); 642 642 #endif 643 643 644 644 ResourcesMap::iterator resourcesEnd = m_resources.end(); 645 645 for (ResourcesMap::iterator it = m_resources.begin(); it != resourcesEnd; ++it) 646 it->second->updateScriptObject(m_ remoteFrontend.get());646 it->second->updateScriptObject(m_frontend.get()); 647 647 648 648 m_domAgent->setDocument(m_inspectedPage->mainFrame()->document()); 649 649 650 650 if (m_expiredConsoleMessageCount) 651 m_ remoteFrontend->updateConsoleMessageExpiredCount(m_expiredConsoleMessageCount);651 m_frontend->updateConsoleMessageExpiredCount(m_expiredConsoleMessageCount); 652 652 unsigned messageCount = m_consoleMessages.size(); 653 653 for (unsigned i = 0; i < messageCount; ++i) 654 m_consoleMessages[i]->addToFrontend(m_ remoteFrontend.get(), m_injectedScriptHost.get());654 m_consoleMessages[i]->addToFrontend(m_frontend.get(), m_injectedScriptHost.get()); 655 655 656 656 #if ENABLE(JAVASCRIPT_DEBUGGER) 657 657 if (debuggerEnabled()) 658 m_ remoteFrontend->updatePauseOnExceptionsState(ScriptDebugServer::shared().pauseOnExceptionsState());658 m_frontend->updatePauseOnExceptionsState(ScriptDebugServer::shared().pauseOnExceptionsState()); 659 659 #endif 660 660 #if ENABLE(DATABASE) 661 661 DatabaseResourcesMap::iterator databasesEnd = m_databaseResources.end(); 662 662 for (DatabaseResourcesMap::iterator it = m_databaseResources.begin(); it != databasesEnd; ++it) 663 it->second->bind(m_ remoteFrontend.get());663 it->second->bind(m_frontend.get()); 664 664 #endif 665 665 #if ENABLE(DOM_STORAGE) 666 666 DOMStorageResourcesMap::iterator domStorageEnd = m_domStorageResources.end(); 667 667 for (DOMStorageResourcesMap::iterator it = m_domStorageResources.begin(); it != domStorageEnd; ++it) 668 it->second->bind(m_ remoteFrontend.get());668 it->second->bind(m_frontend.get()); 669 669 #endif 670 670 #if ENABLE(WORKERS) … … 672 672 for (WorkersMap::iterator it = m_workers.begin(); it != workersEnd; ++it) { 673 673 InspectorWorkerResource* worker = it->second.get(); 674 m_ remoteFrontend->didCreateWorker(worker->id(), worker->url(), worker->isSharedWorker());675 } 676 #endif 677 678 m_ remoteFrontend->populateSessionSettings(m_sessionSettings->toJSONString());679 m_ remoteFrontend->populateInterface();674 m_frontend->didCreateWorker(worker->id(), worker->url(), worker->isSharedWorker()); 675 } 676 #endif 677 678 m_frontend->populateSessionSettings(m_sessionSettings->toJSONString()); 679 m_frontend->populateInterface(); 680 680 681 681 // Dispatch pending frontend commands 682 682 for (Vector<pair<long, String> >::iterator it = m_pendingEvaluateTestCommands.begin(); it != m_pendingEvaluateTestCommands.end(); ++it) 683 m_ remoteFrontend->evaluateForTestInFrontend((*it).first, (*it).second);683 m_frontend->evaluateForTestInFrontend((*it).first, (*it).second); 684 684 m_pendingEvaluateTestCommands.clear(); 685 685 } … … 718 718 if (!loaderToKeep || !resource->isSameLoader(loaderToKeep)) { 719 719 removeResource(resource); 720 if (m_ remoteFrontend)721 resource->releaseScriptObject(m_ remoteFrontend.get());720 if (m_frontend) 721 resource->releaseScriptObject(m_frontend.get()); 722 722 } 723 723 } … … 732 732 733 733 if (loader->frame() == m_inspectedPage->mainFrame()) { 734 if (m_ remoteFrontend)735 m_ remoteFrontend->inspectedURLChanged(loader->url().string());734 if (m_frontend) 735 m_frontend->inspectedURLChanged(loader->url().string()); 736 736 737 737 m_injectedScriptHost->discardInjectedScripts(); … … 753 753 m_cssStore->reset(); 754 754 m_sessionSettings = InspectorObject::create(); 755 if (m_ remoteFrontend) {756 m_ remoteFrontend->reset();755 if (m_frontend) { 756 m_frontend->reset(); 757 757 m_domAgent->reset(); 758 758 } … … 767 767 #endif 768 768 769 if (m_ remoteFrontend) {769 if (m_frontend) { 770 770 if (!loader->frameLoader()->isLoadingFromCachedPage()) { 771 771 ASSERT(m_mainResource && m_mainResource->isSameLoader(loader)); … … 773 773 // needed to keep the load for a user-entered URL from showing up in the 774 774 // list of resources for the page they are navigating away from. 775 m_mainResource->updateScriptObject(m_ remoteFrontend.get());775 m_mainResource->updateScriptObject(m_frontend.get()); 776 776 } else { 777 777 // Pages loaded from the page cache are committed before … … 781 781 m_mainResource = 0; 782 782 } 783 m_ remoteFrontend->didCommitLoad();783 m_frontend->didCommitLoad(); 784 784 m_domAgent->setDocument(m_inspectedPage->mainFrame()->document()); 785 785 } … … 884 884 addResource(resource.get()); 885 885 886 if (m_ remoteFrontend)887 resource->updateScriptObject(m_ remoteFrontend.get());886 if (m_frontend) 887 resource->updateScriptObject(m_frontend.get()); 888 888 } 889 889 … … 908 908 addResource(resource.get()); 909 909 910 if (m_ remoteFrontend && loader->frameLoader()->isLoadingFromCachedPage() && resource == m_mainResource)911 resource->updateScriptObject(m_ remoteFrontend.get());910 if (m_frontend && loader->frameLoader()->isLoadingFromCachedPage() && resource == m_mainResource) 911 resource->updateScriptObject(m_frontend.get()); 912 912 } 913 913 … … 921 921 if (m_timelineAgent) 922 922 m_timelineAgent->didMarkDOMContentEvent(); 923 if (m_ remoteFrontend)924 m_mainResource->updateScriptObject(m_ remoteFrontend.get());923 if (m_frontend) 924 m_mainResource->updateScriptObject(m_frontend.get()); 925 925 } 926 926 } … … 935 935 if (m_timelineAgent) 936 936 m_timelineAgent->didMarkLoadEvent(); 937 if (m_ remoteFrontend)938 m_mainResource->updateScriptObject(m_ remoteFrontend.get());937 if (m_frontend) 938 m_mainResource->updateScriptObject(m_frontend.get()); 939 939 } 940 940 } … … 983 983 resource->updateRequest(request); 984 984 985 if (resource != m_mainResource && m_ remoteFrontend)986 resource->updateScriptObject(m_ remoteFrontend.get());985 if (resource != m_mainResource && m_frontend) 986 resource->updateScriptObject(m_frontend.get()); 987 987 } 988 988 … … 995 995 resource->updateResponse(response); 996 996 997 if (resource != m_mainResource && m_ remoteFrontend)998 resource->updateScriptObject(m_ remoteFrontend.get());997 if (resource != m_mainResource && m_frontend) 998 resource->updateScriptObject(m_frontend.get()); 999 999 } 1000 1000 if (response.httpStatusCode() >= 400) { … … 1017 1017 resource->addLength(lengthReceived); 1018 1018 1019 if (resource != m_mainResource && m_ remoteFrontend)1020 resource->updateScriptObject(m_ remoteFrontend.get());1019 if (resource != m_mainResource && m_frontend) 1020 resource->updateScriptObject(m_frontend.get()); 1021 1021 } 1022 1022 … … 1036 1036 1037 1037 // No need to mute this event for main resource since it happens after did commit load. 1038 if (m_ remoteFrontend)1039 resource->updateScriptObject(m_ remoteFrontend.get());1038 if (m_frontend) 1039 resource->updateScriptObject(m_frontend.get()); 1040 1040 } 1041 1041 … … 1061 1061 1062 1062 // No need to mute this event for main resource since it happens after did commit load. 1063 if (m_ remoteFrontend)1064 resource->updateScriptObject(m_ remoteFrontend.get());1063 if (m_frontend) 1064 resource->updateScriptObject(m_frontend.get()); 1065 1065 } 1066 1066 … … 1082 1082 resource->setOverrideContent(sourceString, InspectorResource::XHR); 1083 1083 1084 if (m_ remoteFrontend)1085 resource->updateScriptObject(m_ remoteFrontend.get());1084 if (m_frontend) 1085 resource->updateScriptObject(m_frontend.get()); 1086 1086 } 1087 1087 … … 1097 1097 resource->setOverrideContent(ScriptString(sourceString), InspectorResource::Script); 1098 1098 1099 if (m_ remoteFrontend)1100 resource->updateScriptObject(m_ remoteFrontend.get());1099 if (m_frontend) 1100 resource->updateScriptObject(m_frontend.get()); 1101 1101 } 1102 1102 … … 1114 1114 ASSERT(m_inspectedPage); 1115 1115 m_resourceTrackingEnabled = true; 1116 if (m_ remoteFrontend)1117 m_ remoteFrontend->resourceTrackingWasEnabled();1116 if (m_frontend) 1117 m_frontend->resourceTrackingWasEnabled(); 1118 1118 m_client->resourceTrackingWasEnabled(); 1119 1119 … … 1132 1132 ASSERT(m_inspectedPage); 1133 1133 m_resourceTrackingEnabled = false; 1134 if (m_ remoteFrontend)1135 m_ remoteFrontend->resourceTrackingWasDisabled();1134 if (m_frontend) 1135 m_frontend->resourceTrackingWasDisabled(); 1136 1136 m_client->resourceTrackingWasDisabled(); 1137 1137 } … … 1161 1161 return; 1162 1162 1163 m_timelineAgent = new InspectorTimelineAgent(m_ remoteFrontend.get());1164 if (m_ remoteFrontend)1165 m_ remoteFrontend->timelineProfilerWasStarted();1163 m_timelineAgent = new InspectorTimelineAgent(m_frontend.get()); 1164 if (m_frontend) 1165 m_frontend->timelineProfilerWasStarted(); 1166 1166 m_client->timelineProfilerWasStarted(); 1167 1167 } … … 1176 1176 1177 1177 m_timelineAgent = 0; 1178 if (m_ remoteFrontend)1179 m_ remoteFrontend->timelineProfilerWasStopped();1178 if (m_frontend) 1179 m_frontend->timelineProfilerWasStopped(); 1180 1180 m_client->timelineProfilerWasStopped(); 1181 1181 } … … 1209 1209 void InspectorController::postWorkerNotificationToFrontend(const InspectorWorkerResource& worker, InspectorController::WorkerAction action) 1210 1210 { 1211 if (!m_ remoteFrontend)1211 if (!m_frontend) 1212 1212 return; 1213 1213 switch (action) { 1214 1214 case InspectorController::WorkerCreated: 1215 m_ remoteFrontend->didCreateWorker(worker.id(), worker.url(), worker.isSharedWorker());1215 m_frontend->didCreateWorker(worker.id(), worker.url(), worker.isSharedWorker()); 1216 1216 break; 1217 1217 case InspectorController::WorkerDestroyed: 1218 m_ remoteFrontend->didDestroyWorker(worker.id());1218 m_frontend->didDestroyWorker(worker.id()); 1219 1219 break; 1220 1220 } … … 1228 1228 RefPtr<InspectorWorkerResource> workerResource(InspectorWorkerResource::create(id, url, isSharedWorker)); 1229 1229 m_workers.set(id, workerResource); 1230 if (m_inspectedPage && m_ remoteFrontend)1230 if (m_inspectedPage && m_frontend) 1231 1231 m_inspectedPage->mainFrame()->document()->postTask(PostWorkerNotificationToFrontendTask::create(workerResource, InspectorController::WorkerCreated)); 1232 1232 } … … 1240 1240 if (workerResource == m_workers.end()) 1241 1241 return; 1242 if (m_inspectedPage && m_ remoteFrontend)1242 if (m_inspectedPage && m_frontend) 1243 1243 m_inspectedPage->mainFrame()->document()->postTask(PostWorkerNotificationToFrontendTask::create(workerResource->second, InspectorController::WorkerDestroyed)); 1244 1244 m_workers.remove(workerResource); … … 1249 1249 void InspectorController::selectDatabase(Database* database) 1250 1250 { 1251 if (!m_ remoteFrontend)1251 if (!m_frontend) 1252 1252 return; 1253 1253 1254 1254 for (DatabaseResourcesMap::iterator it = m_databaseResources.begin(); it != m_databaseResources.end(); ++it) { 1255 1255 if (it->second->database() == database) { 1256 m_ remoteFrontend->selectDatabase(it->first);1256 m_frontend->selectDatabase(it->first); 1257 1257 break; 1258 1258 } … … 1278 1278 1279 1279 // Resources are only bound while visible. 1280 if (m_ remoteFrontend)1281 resource->bind(m_ remoteFrontend.get());1280 if (m_frontend) 1281 resource->bind(m_frontend.get()); 1282 1282 } 1283 1283 #endif … … 1379 1379 1380 1380 // Resources are only bound while visible. 1381 if (m_ remoteFrontend)1382 resource->bind(m_ remoteFrontend.get());1381 if (m_frontend) 1382 resource->bind(m_frontend.get()); 1383 1383 } 1384 1384 … … 1386 1386 { 1387 1387 ASSERT(storage); 1388 if (!m_ remoteFrontend)1388 if (!m_frontend) 1389 1389 return; 1390 1390 … … 1401 1401 } 1402 1402 if (storageResourceId) 1403 m_ remoteFrontend->selectDOMStorage(storageResourceId);1403 m_frontend->selectDOMStorage(storageResourceId); 1404 1404 } 1405 1405 … … 1521 1521 ASSERT(m_inspectedPage); 1522 1522 1523 m_debuggerAgent = InspectorDebuggerAgent::create(this, m_ remoteFrontend.get());1524 1525 m_ remoteFrontend->debuggerWasEnabled();1523 m_debuggerAgent = InspectorDebuggerAgent::create(this, m_frontend.get()); 1524 1525 m_frontend->debuggerWasEnabled(); 1526 1526 } 1527 1527 … … 1534 1534 return; 1535 1535 1536 if (!m_ remoteFrontend)1536 if (!m_frontend) 1537 1537 m_attachDebuggerWhenShown = true; 1538 1538 else { 1539 m_ remoteFrontend->attachDebuggerWhenShown();1539 m_frontend->attachDebuggerWhenShown(); 1540 1540 m_attachDebuggerWhenShown = false; 1541 1541 } … … 1556 1556 m_attachDebuggerWhenShown = false; 1557 1557 1558 if (m_ remoteFrontend)1559 m_ remoteFrontend->debuggerWasDisabled();1558 if (m_frontend) 1559 m_frontend->debuggerWasDisabled(); 1560 1560 } 1561 1561 … … 1571 1571 void InspectorController::evaluateForTestInFrontend(long callId, const String& script) 1572 1572 { 1573 if (m_ remoteFrontend)1574 m_ remoteFrontend->evaluateForTestInFrontend(callId, script);1573 if (m_frontend) 1574 m_frontend->evaluateForTestInFrontend(callId, script); 1575 1575 else 1576 1576 m_pendingEvaluateTestCommands.append(pair<long, String>(callId, script)); -
trunk/WebCore/inspector/InspectorController.h
r65870 r65891 62 62 class InspectorDatabaseResource; 63 63 class InspectorDebuggerAgent; 64 class InspectorFrontend; 64 65 class InspectorFrontendClient; 65 66 class InspectorObject; … … 73 74 class Node; 74 75 class Page; 75 class RemoteInspectorFrontend;76 76 class ResourceRequest; 77 77 class ResourceResponse; … … 210 210 const ResourcesMap& resources() const { return m_resources; } 211 211 InspectorResource* resourceForURL(const String& url); 212 bool hasFrontend() const { return m_ remoteFrontend; }212 bool hasFrontend() const { return m_frontend; } 213 213 214 214 void drawNodeHighlight(GraphicsContext&) const; … … 320 320 OwnPtr<InspectorFrontendClient> m_inspectorFrontendClient; 321 321 bool m_openingFrontend; 322 OwnPtr< RemoteInspectorFrontend> m_remoteFrontend;322 OwnPtr<InspectorFrontend> m_frontend; 323 323 RefPtr<InspectorDOMAgent> m_domAgent; 324 324 RefPtr<InspectorStorageAgent> m_storageAgent; -
trunk/WebCore/inspector/InspectorDOMAgent.cpp
r65887 r65891 55 55 #include "HTMLElement.h" 56 56 #include "HTMLFrameOwnerElement.h" 57 #include "InspectorFrontend.h" 57 58 #include "MutationEvent.h" 58 59 #include "Node.h" … … 60 61 #include "Pasteboard.h" 61 62 #include "PlatformString.h" 62 #include "RemoteInspectorFrontend.h"63 63 #include "RenderStyle.h" 64 64 #include "RenderStyleConstants.h" … … 208 208 InspectorDOMAgent* InspectorDOMAgent::s_domAgentOnBreakpoint = 0; 209 209 210 InspectorDOMAgent::InspectorDOMAgent(InspectorCSSStore* cssStore, RemoteInspectorFrontend* frontend)210 InspectorDOMAgent::InspectorDOMAgent(InspectorCSSStore* cssStore, InspectorFrontend* frontend) 211 211 : EventListener(InspectorDOMAgentType) 212 212 , m_cssStore(cssStore) -
trunk/WebCore/inspector/InspectorDOMAgent.h
r65731 r65891 58 58 class Event; 59 59 class InspectorDOMAgent; 60 class RemoteInspectorFrontend;60 class InspectorFrontend; 61 61 class MatchJob; 62 62 class NameNodeMap; … … 81 81 class InspectorDOMAgent : public EventListener { 82 82 public: 83 static PassRefPtr<InspectorDOMAgent> create(InspectorCSSStore* cssStore, RemoteInspectorFrontend* frontend)83 static PassRefPtr<InspectorDOMAgent> create(InspectorCSSStore* cssStore, InspectorFrontend* frontend) 84 84 { 85 85 return adoptRef(new InspectorDOMAgent(cssStore, frontend)); … … 93 93 } 94 94 95 InspectorDOMAgent(InspectorCSSStore* cssStore, RemoteInspectorFrontend* frontend);95 InspectorDOMAgent(InspectorCSSStore* cssStore, InspectorFrontend* frontend); 96 96 ~InspectorDOMAgent(); 97 97 … … 203 203 204 204 InspectorCSSStore* m_cssStore; 205 RemoteInspectorFrontend* m_frontend;205 InspectorFrontend* m_frontend; 206 206 NodeToIdMap m_documentNodeToIdMap; 207 207 // Owns node mappings for dangling nodes. -
trunk/WebCore/inspector/InspectorDOMStorageResource.cpp
r64713 r65891 38 38 #include "EventNames.h" 39 39 #include "Frame.h" 40 #include "InspectorFrontend.h" 40 41 #include "InspectorValues.h" 41 #include "RemoteInspectorFrontend.h"42 42 #include "Storage.h" 43 43 #include "StorageEvent.h" … … 65 65 } 66 66 67 void InspectorDOMStorageResource::bind( RemoteInspectorFrontend* frontend)67 void InspectorDOMStorageResource::bind(InspectorFrontend* frontend) 68 68 { 69 69 ASSERT(!m_frontend); -
trunk/WebCore/inspector/InspectorDOMStorageResource.h
r64713 r65891 44 44 class Storage; 45 45 class Frame; 46 class RemoteInspectorFrontend;46 class InspectorFrontend; 47 47 48 48 class InspectorDOMStorageResource : public EventListener { … … 57 57 } 58 58 59 void bind( RemoteInspectorFrontend* frontend);59 void bind(InspectorFrontend* frontend); 60 60 void unbind(); 61 61 void startReportingChangesToFrontend(); … … 75 75 bool m_isLocalStorage; 76 76 RefPtr<Frame> m_frame; 77 RemoteInspectorFrontend* m_frontend;77 InspectorFrontend* m_frontend; 78 78 int m_id; 79 79 bool m_reportingChangesToFrontend; -
trunk/WebCore/inspector/InspectorDatabaseResource.cpp
r64650 r65891 34 34 #if ENABLE(DATABASE) && ENABLE(INSPECTOR) 35 35 #include "Database.h" 36 #include "InspectorFrontend.h" 36 37 #include "InspectorValues.h" 37 #include "RemoteInspectorFrontend.h"38 38 39 39 namespace WebCore { … … 56 56 } 57 57 58 void InspectorDatabaseResource::bind( RemoteInspectorFrontend* frontend)58 void InspectorDatabaseResource::bind(InspectorFrontend* frontend) 59 59 { 60 60 if (m_scriptObjectCreated) -
trunk/WebCore/inspector/InspectorDatabaseResource.h
r64650 r65891 40 40 namespace WebCore { 41 41 class Database; 42 class RemoteInspectorFrontend;42 class InspectorFrontend; 43 43 44 44 class InspectorDatabaseResource : public RefCounted<InspectorDatabaseResource> { … … 46 46 static PassRefPtr<InspectorDatabaseResource> create(PassRefPtr<Database> database, const String& domain, const String& name, const String& version); 47 47 48 void bind( RemoteInspectorFrontend* frontend);48 void bind(InspectorFrontend* frontend); 49 49 void unbind(); 50 50 Database* database() { return m_database.get(); } -
trunk/WebCore/inspector/InspectorDebuggerAgent.cpp
r65320 r65891 34 34 #include "InjectedScript.h" 35 35 #include "InjectedScriptHost.h" 36 #include "InspectorFrontend.h" 36 37 #include "InspectorValues.h" 37 38 #include "PlatformString.h" 38 #include "RemoteInspectorFrontend.h"39 39 #include "ScriptDebugServer.h" 40 40 #include <wtf/MD5.h> … … 47 47 } 48 48 49 PassOwnPtr<InspectorDebuggerAgent> InspectorDebuggerAgent::create(InspectorController* inspectorController, RemoteInspectorFrontend* remoteFrontend)50 { 51 OwnPtr<InspectorDebuggerAgent> agent = adoptPtr(new InspectorDebuggerAgent(inspectorController, remoteFrontend));49 PassOwnPtr<InspectorDebuggerAgent> InspectorDebuggerAgent::create(InspectorController* inspectorController, InspectorFrontend* frontend) 50 { 51 OwnPtr<InspectorDebuggerAgent> agent = adoptPtr(new InspectorDebuggerAgent(inspectorController, frontend)); 52 52 ScriptDebugServer::shared().clearBreakpoints(); 53 53 ScriptDebugServer::shared().addListener(agent.get(), inspectorController->inspectedPage()); … … 55 55 } 56 56 57 InspectorDebuggerAgent::InspectorDebuggerAgent(InspectorController* inspectorController, RemoteInspectorFrontend* remoteFrontend)57 InspectorDebuggerAgent::InspectorDebuggerAgent(InspectorController* inspectorController, InspectorFrontend* frontend) 58 58 : m_inspectorController(inspectorController) 59 , m_ remoteFrontend(remoteFrontend)59 , m_frontend(frontend) 60 60 , m_pausedScriptState(0) 61 61 , m_breakpointsLoaded(false) … … 168 168 { 169 169 ScriptDebugServer::shared().setPauseOnExceptionsState(static_cast<ScriptDebugServer::PauseOnExceptionsState>(pauseState)); 170 m_ remoteFrontend->updatePauseOnExceptionsState(ScriptDebugServer::shared().pauseOnExceptionsState());170 m_frontend->updatePauseOnExceptionsState(ScriptDebugServer::shared().pauseOnExceptionsState()); 171 171 } 172 172 … … 247 247 { 248 248 // Don't send script content to the front end until it's really needed. 249 m_ remoteFrontend->parsedScriptSource(sourceID, url, "", firstLine, worldType);249 m_frontend->parsedScriptSource(sourceID, url, "", firstLine, worldType); 250 250 251 251 m_scriptIDToContent.set(sourceID, data); … … 265 265 if (!success) 266 266 continue; 267 m_ remoteFrontend->restoredBreakpoint(sourceID, url, actualLineNumber, breakpointIt->second.enabled, breakpointIt->second.condition);267 m_frontend->restoredBreakpoint(sourceID, url, actualLineNumber, breakpointIt->second.enabled, breakpointIt->second.condition); 268 268 String breakpointId = formatBreakpointId(sourceID, actualLineNumber); 269 269 m_breakpointsMapping.set(breakpointId, lineNumber); … … 275 275 void InspectorDebuggerAgent::failedToParseSource(const String& url, const String& data, int firstLine, int errorLine, const String& errorMessage) 276 276 { 277 m_ remoteFrontend->failedToParseScriptSource(url, data, firstLine, errorLine, errorMessage);277 m_frontend->failedToParseScriptSource(url, data, firstLine, errorLine, errorMessage); 278 278 } 279 279 … … 283 283 m_pausedScriptState = scriptState; 284 284 RefPtr<InspectorValue> callFrames = currentCallFrames(); 285 m_ remoteFrontend->pausedScript(callFrames.get());285 m_frontend->pausedScript(callFrames.get()); 286 286 } 287 287 … … 289 289 { 290 290 m_pausedScriptState = 0; 291 m_ remoteFrontend->resumedScript();291 m_frontend->resumedScript(); 292 292 } 293 293 -
trunk/WebCore/inspector/InspectorDebuggerAgent.h
r65077 r65891 43 43 class InjectedScriptHost; 44 44 class InspectorController; 45 class InspectorFrontend; 45 46 class InspectorValue; 46 class RemoteInspectorFrontend;47 47 48 48 class InspectorDebuggerAgent : public ScriptDebugListener, public Noncopyable { 49 49 public: 50 static PassOwnPtr<InspectorDebuggerAgent> create(InspectorController*, RemoteInspectorFrontend*);50 static PassOwnPtr<InspectorDebuggerAgent> create(InspectorController*, InspectorFrontend*); 51 51 virtual ~InspectorDebuggerAgent(); 52 52 … … 74 74 75 75 private: 76 InspectorDebuggerAgent(InspectorController*, RemoteInspectorFrontend*);76 InspectorDebuggerAgent(InspectorController*, InspectorFrontend*); 77 77 78 78 PassRefPtr<InspectorValue> currentCallFrames(); … … 87 87 88 88 InspectorController* m_inspectorController; 89 RemoteInspectorFrontend* m_remoteFrontend;89 InspectorFrontend* m_frontend; 90 90 ScriptState* m_pausedScriptState; 91 91 HashMap<String, String> m_sourceIDToURL; -
trunk/WebCore/inspector/InspectorProfilerAgent.cpp
r65797 r65891 35 35 #include "Console.h" 36 36 #include "InspectorController.h" 37 #include "InspectorFrontend.h" 37 38 #include "InspectorValues.h" 38 39 #include "KURL.h" 39 40 #include "Page.h" 40 #include "RemoteInspectorFrontend.h"41 41 #include "ScriptDebugServer.h" 42 42 #include "ScriptProfile.h" … … 61 61 InspectorProfilerAgent::InspectorProfilerAgent(InspectorController* inspectorController) 62 62 : m_inspectorController(inspectorController) 63 , m_ remoteFrontend(0)63 , m_frontend(0) 64 64 , m_enabled(ScriptProfiler::isProfilerAlwaysEnabled()) 65 65 , m_recordingUserInitiatedProfile(false) … … 77 77 RefPtr<ScriptProfile> profile = prpProfile; 78 78 m_profiles.add(profile->uid(), profile); 79 if (m_ remoteFrontend)80 m_ remoteFrontend->addProfileHeader(createProfileHeader(*profile));79 if (m_frontend) 80 m_frontend->addProfileHeader(createProfileHeader(*profile)); 81 81 addProfileFinishedMessageToConsole(profile, lineNumber, sourceURL); 82 82 } … … 111 111 m_enabled = false; 112 112 ScriptDebugServer::shared().recompileAllJSFunctionsSoon(); 113 if (m_ remoteFrontend)114 m_ remoteFrontend->profilerWasDisabled();113 if (m_frontend) 114 m_frontend->profilerWasDisabled(); 115 115 } 116 116 … … 122 122 if (!skipRecompile) 123 123 ScriptDebugServer::shared().recompileAllJSFunctionsSoon(); 124 if (m_ remoteFrontend)125 m_ remoteFrontend->profilerWasEnabled();124 if (m_frontend) 125 m_frontend->profilerWasEnabled(); 126 126 } 127 127 … … 161 161 m_currentUserInitiatedProfileNumber = 1; 162 162 m_nextUserInitiatedProfileNumber = 1; 163 if (m_ remoteFrontend)164 m_ remoteFrontend->resetProfilesPanel();163 if (m_frontend) 164 m_frontend->resetProfilesPanel(); 165 165 } 166 166 … … 202 202 void InspectorProfilerAgent::toggleRecordButton(bool isProfiling) 203 203 { 204 if (m_ remoteFrontend)205 m_ remoteFrontend->setRecordingProfile(isProfiling);204 if (m_frontend) 205 m_frontend->setRecordingProfile(isProfiling); 206 206 } 207 207 -
trunk/WebCore/inspector/InspectorProfilerAgent.h
r65797 r65891 43 43 class InspectorArray; 44 44 class InspectorController; 45 class InspectorFrontend; 45 46 class InspectorObject; 46 47 class ScriptProfile; 47 class RemoteInspectorFrontend;48 48 49 49 class InspectorProfilerAgent : public Noncopyable { … … 65 65 void removeProfile(unsigned uid); 66 66 void resetState(); 67 void set RemoteFrontend(RemoteInspectorFrontend* frontend) { m_remoteFrontend = frontend; }67 void setFrontend(InspectorFrontend* frontend) { m_frontend = frontend; } 68 68 void startProfiling() { startUserInitiatedProfiling(); } 69 69 void startUserInitiatedProfiling(); … … 79 79 80 80 InspectorController* m_inspectorController; 81 RemoteInspectorFrontend* m_remoteFrontend;81 InspectorFrontend* m_frontend; 82 82 bool m_enabled; 83 83 bool m_recordingUserInitiatedProfile; -
trunk/WebCore/inspector/InspectorResource.cpp
r65320 r65891 39 39 #include "DocumentLoader.h" 40 40 #include "Frame.h" 41 #include "InspectorFrontend.h" 41 42 #include "InspectorValues.h" 42 #include "RemoteInspectorFrontend.h"43 43 #include "ResourceLoadTiming.h" 44 44 #include "ResourceRequest.h" … … 176 176 177 177 178 void InspectorResource::updateScriptObject( RemoteInspectorFrontend* frontend)178 void InspectorResource::updateScriptObject(InspectorFrontend* frontend) 179 179 { 180 180 if (m_changes.hasChange(NoChange)) … … 252 252 } 253 253 254 void InspectorResource::releaseScriptObject( RemoteInspectorFrontend* frontend)254 void InspectorResource::releaseScriptObject(InspectorFrontend* frontend) 255 255 { 256 256 m_changes.setAll(); -
trunk/WebCore/inspector/InspectorResource.h
r64547 r65891 47 47 class DocumentLoader; 48 48 class Frame; 49 class RemoteInspectorFrontend;49 class InspectorFrontend; 50 50 class ResourceLoadTiming; 51 51 class ResourceRequest; … … 77 77 78 78 PassRefPtr<InspectorResource> appendRedirect(unsigned long identifier, const KURL& redirectURL); 79 void updateScriptObject( RemoteInspectorFrontend* frontend);80 void releaseScriptObject( RemoteInspectorFrontend* frontend);79 void updateScriptObject(InspectorFrontend* frontend); 80 void releaseScriptObject(InspectorFrontend* frontend); 81 81 82 82 void updateRequest(const ResourceRequest&); -
trunk/WebCore/inspector/InspectorStorageAgent.cpp
r65320 r65891 35 35 #include "Database.h" 36 36 #include "ExceptionCode.h" 37 #include "InspectorFrontend.h" 37 38 #include "InspectorValues.h" 38 39 #include "SQLError.h" … … 44 45 #include "SQLTransactionErrorCallback.h" 45 46 #include "SQLValue.h" 46 #include "RemoteInspectorFrontend.h"47 47 #include "VoidCallback.h" 48 48 … … 201 201 } // namespace 202 202 203 InspectorStorageAgent::InspectorStorageAgent( RemoteInspectorFrontend* frontend)203 InspectorStorageAgent::InspectorStorageAgent(InspectorFrontend* frontend) 204 204 : m_frontend(frontend) 205 205 { -
trunk/WebCore/inspector/InspectorStorageAgent.h
r65072 r65891 36 36 37 37 class Database; 38 class RemoteInspectorFrontend;38 class InspectorFrontend; 39 39 40 40 class InspectorStorageAgent : public RefCounted<InspectorStorageAgent> { 41 41 public: 42 static PassRefPtr<InspectorStorageAgent> create( RemoteInspectorFrontend* frontend)42 static PassRefPtr<InspectorStorageAgent> create(InspectorFrontend* frontend) 43 43 { 44 44 return adoptRef(new InspectorStorageAgent(frontend)); … … 49 49 long executeSQL(Database*, const String& query); 50 50 51 RemoteInspectorFrontend* frontend() { return m_frontend; }51 InspectorFrontend* frontend() { return m_frontend; } 52 52 void clearFrontend(); 53 53 54 54 private: 55 InspectorStorageAgent( RemoteInspectorFrontend*);55 InspectorStorageAgent(InspectorFrontend*); 56 56 57 RemoteInspectorFrontend* m_frontend;57 InspectorFrontend* m_frontend; 58 58 }; 59 59 -
trunk/WebCore/inspector/InspectorTimelineAgent.cpp
r65320 r65891 35 35 36 36 #include "Event.h" 37 #include "InspectorFrontend.h" 37 38 #include "IntRect.h" 38 #include "RemoteInspectorFrontend.h"39 39 #include "ResourceRequest.h" 40 40 #include "ResourceResponse.h" … … 47 47 int InspectorTimelineAgent::s_instanceCount = 0; 48 48 49 InspectorTimelineAgent::InspectorTimelineAgent( RemoteInspectorFrontend* frontend)49 InspectorTimelineAgent::InspectorTimelineAgent(InspectorFrontend* frontend) 50 50 : m_frontend(frontend) 51 51 { … … 280 280 } 281 281 282 void InspectorTimelineAgent::resetFrontendProxyObject( RemoteInspectorFrontend* frontend)282 void InspectorTimelineAgent::resetFrontendProxyObject(InspectorFrontend* frontend) 283 283 { 284 284 ASSERT(frontend); -
trunk/WebCore/inspector/InspectorTimelineAgent.h
r63198 r65891 43 43 namespace WebCore { 44 44 class Event; 45 class RemoteInspectorFrontend;45 class InspectorFrontend; 46 46 class IntRect; 47 47 class ResourceRequest; … … 75 75 class InspectorTimelineAgent : ScriptGCEventListener, public Noncopyable { 76 76 public: 77 InspectorTimelineAgent( RemoteInspectorFrontend* frontend);77 InspectorTimelineAgent(InspectorFrontend* frontend); 78 78 ~InspectorTimelineAgent(); 79 79 80 80 void reset(); 81 void resetFrontendProxyObject( RemoteInspectorFrontend*);81 void resetFrontendProxyObject(InspectorFrontend*); 82 82 83 83 // Methods called from WebCore. … … 153 153 void pushGCEventRecords(); 154 154 155 RemoteInspectorFrontend* m_frontend;155 InspectorFrontend* m_frontend; 156 156 157 157 Vector<TimelineRecordEntry> m_recordStack;
Note: See TracChangeset
for help on using the changeset viewer.