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

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

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Created 6 years, 5 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 | Annotate | Revision Log
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 class InstrumentingAgents; 63 class InstrumentingAgents;
64 class IntPoint; 64 class IntPoint;
65 class IntSize; 65 class IntSize;
66 class Page; 66 class Page;
67 class PlatformGestureEvent; 67 class PlatformGestureEvent;
68 class PlatformKeyboardEvent; 68 class PlatformKeyboardEvent;
69 class PlatformMouseEvent; 69 class PlatformMouseEvent;
70 class PlatformTouchEvent; 70 class PlatformTouchEvent;
71 class Node; 71 class Node;
72 72
73 class InspectorController { 73 class InspectorController : public NoBaseWillBeGarbageCollectedFinalized<Inspect orController> {
74 WTF_MAKE_NONCOPYABLE(InspectorController); 74 WTF_MAKE_NONCOPYABLE(InspectorController);
75 WTF_MAKE_FAST_ALLOCATED; 75 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
76 public: 76 public:
77 ~InspectorController(); 77 ~InspectorController();
78 void trace(Visitor*);
78 79
79 static PassOwnPtr<InspectorController> create(Page*, InspectorClient*); 80 static PassOwnPtrWillBeRawPtr<InspectorController> create(Page*, InspectorCl ient*);
80 81
81 // Settings overrides. 82 // Settings overrides.
82 void setTextAutosizingEnabled(bool); 83 void setTextAutosizingEnabled(bool);
83 void setDeviceScaleAdjustment(float); 84 void setDeviceScaleAdjustment(float);
84 85
85 void willBeDestroyed(); 86 void willBeDestroyed();
86 void registerModuleAgent(PassOwnPtr<InspectorAgent>); 87 void registerModuleAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>);
87 88
88 void setInspectorFrontendClient(PassOwnPtr<InspectorFrontendClient>); 89 void setInspectorFrontendClient(PassOwnPtr<InspectorFrontendClient>);
89 void didClearDocumentOfWindowObject(LocalFrame*); 90 void didClearDocumentOfWindowObject(LocalFrame*);
90 void setInjectedScriptForOrigin(const String& origin, const String& source); 91 void setInjectedScriptForOrigin(const String& origin, const String& source);
91 92
92 void dispatchMessageFromFrontend(const String& message); 93 void dispatchMessageFromFrontend(const String& message);
93 94
94 void connectFrontend(const String& hostId, InspectorFrontendChannel*); 95 void connectFrontend(const String& hostId, InspectorFrontendChannel*);
95 void disconnectFrontend(); 96 void disconnectFrontend();
96 void reconnectFrontend(); 97 void reconnectFrontend();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void willAddPageOverlay(const GraphicsLayer*); 134 void willAddPageOverlay(const GraphicsLayer*);
134 void didRemovePageOverlay(const GraphicsLayer*); 135 void didRemovePageOverlay(const GraphicsLayer*);
135 136
136 private: 137 private:
137 InspectorController(Page*, InspectorClient*); 138 InspectorController(Page*, InspectorClient*);
138 139
139 void initializeDeferredAgents(); 140 void initializeDeferredAgents();
140 141
141 friend InstrumentingAgents* instrumentationForPage(Page*); 142 friend InstrumentingAgents* instrumentationForPage(Page*);
142 143
143 RefPtr<InstrumentingAgents> m_instrumentingAgents; 144 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents;
144 OwnPtr<InjectedScriptManager> m_injectedScriptManager; 145 OwnPtr<InjectedScriptManager> m_injectedScriptManager;
145 OwnPtr<InspectorCompositeState> m_state; 146 OwnPtr<InspectorCompositeState> m_state;
146 OwnPtr<InspectorOverlay> m_overlay; 147 OwnPtr<InspectorOverlay> m_overlay;
147 148
148 InspectorDOMAgent* m_domAgent; 149 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
149 InspectorPageAgent* m_pageAgent; 150 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
150 InspectorResourceAgent* m_resourceAgent; 151 RawPtrWillBeMember<InspectorTimelineAgent> m_timelineAgent;
151 InspectorCSSAgent* m_cssAgent; 152 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent;
152 InspectorTimelineAgent* m_timelineAgent; 153 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent;
153 InspectorLayerTreeAgent* m_layerTreeAgent; 154 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent;
154 InspectorTracingAgent* m_tracingAgent; 155 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent;
155 156
156 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher; 157 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher;
157 OwnPtr<InspectorFrontendClient> m_inspectorFrontendClient; 158 OwnPtr<InspectorFrontendClient> m_inspectorFrontendClient;
158 OwnPtr<InspectorFrontend> m_inspectorFrontend; 159 OwnPtr<InspectorFrontend> m_inspectorFrontend;
159 Page* m_page; 160 RawPtrWillBeMember<Page> m_page;
160 InspectorClient* m_inspectorClient; 161 InspectorClient* m_inspectorClient;
161 InspectorAgentRegistry m_agents; 162 InspectorAgentRegistry m_agents;
162 bool m_isUnderTest; 163 bool m_isUnderTest;
163 bool m_deferredAgentsInitialized; 164 bool m_deferredAgentsInitialized;
164 String m_hostId; 165 String m_hostId;
165 }; 166 };
166 167
167 } 168 }
168 169
169 170
170 #endif // !defined(InspectorController_h) 171 #endif // !defined(InspectorController_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698