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

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: 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 class InstrumentingAgents; 64 class InstrumentingAgents;
65 class IntPoint; 65 class IntPoint;
66 class IntSize; 66 class IntSize;
67 class Page; 67 class Page;
68 class PlatformGestureEvent; 68 class PlatformGestureEvent;
69 class PlatformKeyboardEvent; 69 class PlatformKeyboardEvent;
70 class PlatformMouseEvent; 70 class PlatformMouseEvent;
71 class PlatformTouchEvent; 71 class PlatformTouchEvent;
72 class Node; 72 class Node;
73 73
74 class InspectorController { 74 class InspectorController : public NoBaseWillBeGarbageCollectedFinalized<Inspect orController> {
75 WTF_MAKE_NONCOPYABLE(InspectorController); 75 WTF_MAKE_NONCOPYABLE(InspectorController);
76 WTF_MAKE_FAST_ALLOCATED; 76 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
77 public: 77 public:
78 ~InspectorController(); 78 ~InspectorController();
79 void trace(Visitor*);
79 80
80 static PassOwnPtr<InspectorController> create(Page*, InspectorClient*); 81 static PassOwnPtrWillBeRawPtr<InspectorController> create(Page*, InspectorCl ient*);
81 82
82 // Settings overrides. 83 // Settings overrides.
83 void setTextAutosizingEnabled(bool); 84 void setTextAutosizingEnabled(bool);
84 void setDeviceScaleAdjustment(float); 85 void setDeviceScaleAdjustment(float);
85 86
86 void willBeDestroyed(); 87 void willBeDestroyed();
87 void registerModuleAgent(PassOwnPtr<InspectorAgent>); 88 void registerModuleAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>);
88 89
89 void setInspectorFrontendClient(PassOwnPtr<InspectorFrontendClient>); 90 void setInspectorFrontendClient(PassOwnPtr<InspectorFrontendClient>);
90 void didClearDocumentOfWindowObject(LocalFrame*); 91 void didClearDocumentOfWindowObject(LocalFrame*);
91 void setInjectedScriptForOrigin(const String& origin, const String& source); 92 void setInjectedScriptForOrigin(const String& origin, const String& source);
92 void showContextMenu(float x, float y, PassRefPtr<ContextMenuProvider>); 93 void showContextMenu(float x, float y, PassRefPtr<ContextMenuProvider>);
93 94
94 void dispatchMessageFromFrontend(const String& message); 95 void dispatchMessageFromFrontend(const String& message);
95 96
96 void connectFrontend(const String& hostId, InspectorFrontendChannel*); 97 void connectFrontend(const String& hostId, InspectorFrontendChannel*);
97 void disconnectFrontend(); 98 void disconnectFrontend();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void willAddPageOverlay(const GraphicsLayer*); 136 void willAddPageOverlay(const GraphicsLayer*);
136 void didRemovePageOverlay(const GraphicsLayer*); 137 void didRemovePageOverlay(const GraphicsLayer*);
137 138
138 private: 139 private:
139 InspectorController(Page*, InspectorClient*); 140 InspectorController(Page*, InspectorClient*);
140 141
141 void initializeDeferredAgents(); 142 void initializeDeferredAgents();
142 143
143 friend InstrumentingAgents* instrumentationForPage(Page*); 144 friend InstrumentingAgents* instrumentationForPage(Page*);
144 145
145 RefPtr<InstrumentingAgents> m_instrumentingAgents; 146 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents;
146 OwnPtr<InjectedScriptManager> m_injectedScriptManager; 147 OwnPtr<InjectedScriptManager> m_injectedScriptManager;
147 OwnPtr<InspectorCompositeState> m_state; 148 OwnPtr<InspectorCompositeState> m_state;
148 OwnPtr<InspectorOverlay> m_overlay; 149 OwnPtr<InspectorOverlay> m_overlay;
149 150
150 InspectorDOMAgent* m_domAgent; 151 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
151 InspectorPageAgent* m_pageAgent; 152 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
152 InspectorResourceAgent* m_resourceAgent; 153 RawPtrWillBeMember<InspectorTimelineAgent> m_timelineAgent;
153 InspectorCSSAgent* m_cssAgent; 154 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent;
154 InspectorTimelineAgent* m_timelineAgent; 155 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent;
155 InspectorLayerTreeAgent* m_layerTreeAgent; 156 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent;
156 InspectorTracingAgent* m_tracingAgent; 157 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent;
157 158
158 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher; 159 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher;
159 OwnPtr<InspectorFrontendClient> m_inspectorFrontendClient; 160 OwnPtr<InspectorFrontendClient> m_inspectorFrontendClient;
160 OwnPtr<InspectorFrontend> m_inspectorFrontend; 161 OwnPtr<InspectorFrontend> m_inspectorFrontend;
161 Page* m_page; 162 RawPtrWillBeMember<Page> m_page;
162 InspectorClient* m_inspectorClient; 163 InspectorClient* m_inspectorClient;
163 InspectorAgentRegistry m_agents; 164 InspectorAgentRegistry m_agents;
164 bool m_isUnderTest; 165 bool m_isUnderTest;
165 bool m_deferredAgentsInitialized; 166 bool m_deferredAgentsInitialized;
166 String m_hostId; 167 String m_hostId;
167 }; 168 };
168 169
169 } 170 }
170 171
171 172
172 #endif // !defined(InspectorController_h) 173 #endif // !defined(InspectorController_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorConsoleAgent.cpp ('k') | Source/core/inspector/InspectorController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698