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

Side by Side Diff: Source/core/inspector/InspectorController.h

Issue 445023005: DevTools: reduce ResourceAgent dependency on PageAgent. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 24 matching lines...) Expand all
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "wtf/Forward.h" 36 #include "wtf/Forward.h"
37 #include "wtf/HashMap.h" 37 #include "wtf/HashMap.h"
38 #include "wtf/Noncopyable.h" 38 #include "wtf/Noncopyable.h"
39 #include "wtf/text/WTFString.h" 39 #include "wtf/text/WTFString.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class ContextMenuProvider; 43 class ContextMenuProvider;
44 class DOMWrapperWorld; 44 class DOMWrapperWorld;
45 class LocalFrame; 45 class EditedResourcesContentManager;
46 class GraphicsContext; 46 class GraphicsContext;
47 class GraphicsLayer; 47 class GraphicsLayer;
48 class InjectedScriptManager; 48 class InjectedScriptManager;
49 class InspectorBackendDispatcher; 49 class InspectorBackendDispatcher;
50 class InspectorAgent; 50 class InspectorAgent;
51 class InspectorClient; 51 class InspectorClient;
52 class InspectorCSSAgent; 52 class InspectorCSSAgent;
53 class InspectorDOMAgent; 53 class InspectorDOMAgent;
54 class InspectorFrontend; 54 class InspectorFrontend;
55 class InspectorFrontendChannel; 55 class InspectorFrontendChannel;
56 class InspectorFrontendClient; 56 class InspectorFrontendClient;
57 class InspectorLayerTreeAgent; 57 class InspectorLayerTreeAgent;
58 class InspectorPageAgent; 58 class InspectorPageAgent;
59 class InspectorResourceAgent; 59 class InspectorResourceAgent;
60 class InspectorTimelineAgent; 60 class InspectorTimelineAgent;
61 class InspectorTracingAgent; 61 class InspectorTracingAgent;
62 class InspectorOverlay; 62 class InspectorOverlay;
63 class InspectorState; 63 class InspectorState;
64 class InstrumentingAgents; 64 class InstrumentingAgents;
65 class IntPoint; 65 class IntPoint;
66 class IntSize; 66 class IntSize;
67 class LocalFrame;
67 class Page; 68 class Page;
68 class PlatformGestureEvent; 69 class PlatformGestureEvent;
69 class PlatformKeyboardEvent; 70 class PlatformKeyboardEvent;
70 class PlatformMouseEvent; 71 class PlatformMouseEvent;
71 class PlatformTouchEvent; 72 class PlatformTouchEvent;
72 class Node; 73 class Node;
73 74
74 class InspectorController : public NoBaseWillBeGarbageCollectedFinalized<Inspect orController> { 75 class InspectorController : public NoBaseWillBeGarbageCollectedFinalized<Inspect orController> {
75 WTF_MAKE_NONCOPYABLE(InspectorController); 76 WTF_MAKE_NONCOPYABLE(InspectorController);
76 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 77 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 139
139 private: 140 private:
140 InspectorController(Page*, InspectorClient*); 141 InspectorController(Page*, InspectorClient*);
141 142
142 void initializeDeferredAgents(); 143 void initializeDeferredAgents();
143 144
144 friend InstrumentingAgents* instrumentationForPage(Page*); 145 friend InstrumentingAgents* instrumentationForPage(Page*);
145 146
146 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; 147 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents;
147 OwnPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; 148 OwnPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager;
149 OwnPtrWillBeMember<EditedResourcesContentManager> m_editedResourcesContentMa nager;
148 OwnPtrWillBeMember<InspectorCompositeState> m_state; 150 OwnPtrWillBeMember<InspectorCompositeState> m_state;
149 OwnPtr<InspectorOverlay> m_overlay; 151 OwnPtr<InspectorOverlay> m_overlay;
150 152
151 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; 153 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
152 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; 154 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
153 RawPtrWillBeMember<InspectorTimelineAgent> m_timelineAgent; 155 RawPtrWillBeMember<InspectorTimelineAgent> m_timelineAgent;
154 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; 156 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent;
155 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; 157 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent;
156 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; 158 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent;
157 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; 159 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent;
158 160
159 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher; 161 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher;
160 OwnPtrWillBeMember<InspectorFrontendClient> m_inspectorFrontendClient; 162 OwnPtrWillBeMember<InspectorFrontendClient> m_inspectorFrontendClient;
161 OwnPtr<InspectorFrontend> m_inspectorFrontend; 163 OwnPtr<InspectorFrontend> m_inspectorFrontend;
162 RawPtrWillBeMember<Page> m_page; 164 RawPtrWillBeMember<Page> m_page;
163 InspectorClient* m_inspectorClient; 165 InspectorClient* m_inspectorClient;
164 InspectorAgentRegistry m_agents; 166 InspectorAgentRegistry m_agents;
165 bool m_isUnderTest; 167 bool m_isUnderTest;
166 bool m_deferredAgentsInitialized; 168 bool m_deferredAgentsInitialized;
167 String m_hostId; 169 String m_hostId;
168 }; 170 };
169 171
170 } 172 }
171 173
172 174
173 #endif // !defined(InspectorController_h) 175 #endif // !defined(InspectorController_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698