Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1038)

Unified Diff: Source/core/inspector/InspectorController.h

Issue 146683002: InspectorController should lazily initialize InspectorAgents which begin instrumenting at later sta… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing! Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/inspector/InspectorController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorController.h
diff --git a/Source/core/inspector/InspectorController.h b/Source/core/inspector/InspectorController.h
index 9f869db2d7a33fd16f6aede730f3edccf7e68e5f..c6c4acf03f8ccdd579c8db1c3b169daec6836f49 100644
--- a/Source/core/inspector/InspectorController.h
+++ b/Source/core/inspector/InspectorController.h
@@ -45,10 +45,11 @@ class GraphicsContext;
class InjectedScriptManager;
class InspectorBackendDispatcher;
class InspectorClient;
+class InspectorDOMAgent;
class InspectorFrontend;
class InspectorFrontendChannel;
class InspectorFrontendClient;
-class InspectorMemoryAgent;
+class InspectorPageAgent;
class InspectorTimelineAgent;
class InspectorOverlay;
class InspectorState;
@@ -71,6 +72,8 @@ public:
~InspectorController();
static PassOwnPtr<InspectorController> create(Page*, InspectorClient*);
+
+ void initializeDeferredAgents();
void inspectedPageDestroyed();
void registerModuleAgent(PassOwnPtr<InspectorAgent>);
@@ -130,7 +133,8 @@ private:
OwnPtr<InspectorCompositeState> m_state;
OwnPtr<InspectorOverlay> m_overlay;
- InspectorMemoryAgent* m_memoryAgent;
+ InspectorDOMAgent* m_domAgent;
+ InspectorPageAgent* m_pageAgent;
InspectorTimelineAgent* m_timelineAgent;
RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher;
@@ -140,6 +144,7 @@ private:
InspectorClient* m_inspectorClient;
InspectorAgentRegistry m_agents;
bool m_isUnderTest;
+ bool m_deferredAgentsInitialized;
};
}
« no previous file with comments | « no previous file | Source/core/inspector/InspectorController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698