OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 WebDevToolsAgentImpl_h | 31 #ifndef WebDevToolsAgentImpl_h |
32 #define WebDevToolsAgentImpl_h | 32 #define WebDevToolsAgentImpl_h |
33 | 33 |
34 #include "core/inspector/InspectorFrontendChannel.h" | 34 #include "core/inspector/InspectorFrontendChannel.h" |
35 #include "core/inspector/InspectorInputAgent.h" | |
36 #include "core/inspector/InspectorRuntimeAgent.h" | 35 #include "core/inspector/InspectorRuntimeAgent.h" |
37 #include "core/inspector/InspectorStateClient.h" | 36 #include "core/inspector/InspectorStateClient.h" |
38 #include "core/inspector/InspectorTracingAgent.h" | 37 #include "core/inspector/InspectorTracingAgent.h" |
39 #include "platform/heap/Handle.h" | 38 #include "platform/heap/Handle.h" |
40 #include "public/platform/WebSize.h" | 39 #include "public/platform/WebSize.h" |
41 #include "public/platform/WebThread.h" | 40 #include "public/platform/WebThread.h" |
42 #include "public/web/WebDevToolsAgent.h" | 41 #include "public/web/WebDevToolsAgent.h" |
43 #include "wtf/Forward.h" | 42 #include "wtf/Forward.h" |
44 #include "wtf/OwnPtr.h" | 43 #include "wtf/OwnPtr.h" |
45 #include "wtf/Vector.h" | 44 #include "wtf/Vector.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 void attach(const WebString& hostId) override; | 97 void attach(const WebString& hostId) override; |
99 void reattach(const WebString& hostId, const WebString& savedState) override
; | 98 void reattach(const WebString& hostId, const WebString& savedState) override
; |
100 void detach() override; | 99 void detach() override; |
101 void continueProgram() override; | 100 void continueProgram() override; |
102 void dispatchOnInspectorBackend(const WebString& message) override; | 101 void dispatchOnInspectorBackend(const WebString& message) override; |
103 void inspectElementAt(const WebPoint&) override; | 102 void inspectElementAt(const WebPoint&) override; |
104 void evaluateInWebInspector(long callId, const WebString& script) override; | 103 void evaluateInWebInspector(long callId, const WebString& script) override; |
105 void setLayerTreeId(int) override; | 104 void setLayerTreeId(int) override; |
106 | 105 |
107 private: | 106 private: |
108 WebDevToolsAgentImpl(WebLocalFrameImpl*, WebDevToolsAgentClient*, InspectorO
verlay*, PassOwnPtr<InspectorInputAgent::Client>); | 107 WebDevToolsAgentImpl(WebLocalFrameImpl*, WebDevToolsAgentClient*, InspectorO
verlay*); |
109 | 108 |
110 // InspectorStateClient implementation. | 109 // InspectorStateClient implementation. |
111 void updateInspectorStateCookie(const WTF::String&) override; | 110 void updateInspectorStateCookie(const WTF::String&) override; |
112 | 111 |
113 // InspectorTracingAgent::Client implementation. | 112 // InspectorTracingAgent::Client implementation. |
114 void enableTracing(const WTF::String& categoryFilter) override; | 113 void enableTracing(const WTF::String& categoryFilter) override; |
115 void disableTracing() override; | 114 void disableTracing() override; |
116 | 115 |
117 // InspectorRuntimeAgent::Client implementation. | 116 // InspectorRuntimeAgent::Client implementation. |
118 void resumeStartup() override; | 117 void resumeStartup() override; |
(...skipping 16 matching lines...) Expand all Loading... |
135 WebLocalFrameImpl* m_webLocalFrameImpl; | 134 WebLocalFrameImpl* m_webLocalFrameImpl; |
136 bool m_attached; | 135 bool m_attached; |
137 #if ENABLE(ASSERT) | 136 #if ENABLE(ASSERT) |
138 bool m_hasBeenDisposed; | 137 bool m_hasBeenDisposed; |
139 #endif | 138 #endif |
140 | 139 |
141 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; | 140 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
142 OwnPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; | 141 OwnPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; |
143 OwnPtrWillBeMember<InspectorCompositeState> m_state; | 142 OwnPtrWillBeMember<InspectorCompositeState> m_state; |
144 RawPtrWillBeMember<InspectorOverlay> m_overlay; | 143 RawPtrWillBeMember<InspectorOverlay> m_overlay; |
145 OwnPtr<InspectorInputAgent::Client> m_inputClient; | |
146 OwnPtrWillBeMember<AsyncCallTracker> m_asyncCallTracker; | 144 OwnPtrWillBeMember<AsyncCallTracker> m_asyncCallTracker; |
147 | 145 |
148 RawPtrWillBeMember<InspectorInspectorAgent> m_inspectorAgent; | 146 RawPtrWillBeMember<InspectorInspectorAgent> m_inspectorAgent; |
149 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; | 147 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; |
150 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 148 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
151 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; | 149 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; |
152 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; | 150 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; |
153 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; | 151 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; |
154 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; | 152 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; |
155 RawPtrWillBeMember<PageRuntimeAgent> m_pageRuntimeAgent; | 153 RawPtrWillBeMember<PageRuntimeAgent> m_pageRuntimeAgent; |
156 RawPtrWillBeMember<PageConsoleAgent> m_pageConsoleAgent; | 154 RawPtrWillBeMember<PageConsoleAgent> m_pageConsoleAgent; |
157 | 155 |
158 RefPtrWillBeMember<InspectorBackendDispatcher> m_inspectorBackendDispatcher; | 156 RefPtrWillBeMember<InspectorBackendDispatcher> m_inspectorBackendDispatcher; |
159 OwnPtr<InspectorFrontend> m_inspectorFrontend; | 157 OwnPtr<InspectorFrontend> m_inspectorFrontend; |
160 InspectorAgentRegistry m_agents; | 158 InspectorAgentRegistry m_agents; |
161 bool m_deferredAgentsInitialized; | 159 bool m_deferredAgentsInitialized; |
162 | 160 |
163 typedef Vector<RefPtr<JSONObject>> NotificationQueue; | 161 typedef Vector<RefPtr<JSONObject>> NotificationQueue; |
164 NotificationQueue m_notificationQueue; | 162 NotificationQueue m_notificationQueue; |
165 String m_stateCookie; | 163 String m_stateCookie; |
166 | 164 |
167 friend class DebuggerTask; | 165 friend class DebuggerTask; |
168 }; | 166 }; |
169 | 167 |
170 } // namespace blink | 168 } // namespace blink |
171 | 169 |
172 #endif | 170 #endif |
OLD | NEW |