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