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 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef InspectorController_h | 31 #ifndef InspectorController_h |
32 #define InspectorController_h | 32 #define InspectorController_h |
33 | 33 |
34 #include "core/inspector/InspectorBaseAgent.h" | 34 #include "core/inspector/InspectorBaseAgent.h" |
| 35 #include "platform/heap/Handle.h" |
35 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
36 #include "wtf/HashMap.h" | 37 #include "wtf/HashMap.h" |
37 #include "wtf/Noncopyable.h" | 38 #include "wtf/Noncopyable.h" |
38 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
39 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
40 | 41 |
41 namespace blink { | 42 namespace blink { |
42 | 43 |
43 class ContextMenuProvider; | 44 class ContextMenuProvider; |
44 class DOMWrapperWorld; | 45 class DOMWrapperWorld; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 81 |
81 static PassOwnPtrWillBeRawPtr<InspectorController> create(Page*, InspectorCl
ient*); | 82 static PassOwnPtrWillBeRawPtr<InspectorController> create(Page*, InspectorCl
ient*); |
82 | 83 |
83 // Settings overrides. | 84 // Settings overrides. |
84 void setTextAutosizingEnabled(bool); | 85 void setTextAutosizingEnabled(bool); |
85 void setDeviceScaleAdjustment(float); | 86 void setDeviceScaleAdjustment(float); |
86 | 87 |
87 void willBeDestroyed(); | 88 void willBeDestroyed(); |
88 void registerModuleAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>); | 89 void registerModuleAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>); |
89 | 90 |
90 void setInspectorFrontendClient(PassOwnPtr<InspectorFrontendClient>); | 91 void setInspectorFrontendClient(PassOwnPtrWillBeRawPtr<InspectorFrontendClie
nt>); |
91 void didClearDocumentOfWindowObject(LocalFrame*); | 92 void didClearDocumentOfWindowObject(LocalFrame*); |
92 void setInjectedScriptForOrigin(const String& origin, const String& source); | 93 void setInjectedScriptForOrigin(const String& origin, const String& source); |
93 void showContextMenu(float x, float y, PassRefPtr<ContextMenuProvider>); | 94 void showContextMenu(float x, float y, PassRefPtr<ContextMenuProvider>); |
94 | 95 |
95 void dispatchMessageFromFrontend(const String& message); | 96 void dispatchMessageFromFrontend(const String& message); |
96 | 97 |
97 void connectFrontend(const String& hostId, InspectorFrontendChannel*); | 98 void connectFrontend(const String& hostId, InspectorFrontendChannel*); |
98 void disconnectFrontend(); | 99 void disconnectFrontend(); |
99 void reconnectFrontend(); | 100 void reconnectFrontend(); |
100 void reuseFrontend(const String& hostId, InspectorFrontendChannel*, const St
ring& inspectorStateCookie); | 101 void reuseFrontend(const String& hostId, InspectorFrontendChannel*, const St
ring& inspectorStateCookie); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 151 |
151 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; | 152 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; |
152 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 153 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
153 RawPtrWillBeMember<InspectorTimelineAgent> m_timelineAgent; | 154 RawPtrWillBeMember<InspectorTimelineAgent> m_timelineAgent; |
154 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; | 155 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; |
155 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; | 156 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; |
156 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; | 157 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; |
157 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; | 158 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; |
158 | 159 |
159 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher; | 160 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher; |
160 OwnPtr<InspectorFrontendClient> m_inspectorFrontendClient; | 161 OwnPtrWillBeMember<InspectorFrontendClient> m_inspectorFrontendClient; |
161 OwnPtr<InspectorFrontend> m_inspectorFrontend; | 162 OwnPtr<InspectorFrontend> m_inspectorFrontend; |
162 RawPtrWillBeMember<Page> m_page; | 163 RawPtrWillBeMember<Page> m_page; |
163 InspectorClient* m_inspectorClient; | 164 InspectorClient* m_inspectorClient; |
164 InspectorAgentRegistry m_agents; | 165 InspectorAgentRegistry m_agents; |
165 bool m_isUnderTest; | 166 bool m_isUnderTest; |
166 bool m_deferredAgentsInitialized; | 167 bool m_deferredAgentsInitialized; |
167 String m_hostId; | 168 String m_hostId; |
168 }; | 169 }; |
169 | 170 |
170 } | 171 } |
171 | 172 |
172 | 173 |
173 #endif // !defined(InspectorController_h) | 174 #endif // !defined(InspectorController_h) |
OLD | NEW |