| 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 15 matching lines...) Expand all Loading... |
| 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/InspectorRuntimeAgent.h" | 35 #include "core/inspector/InspectorRuntimeAgent.h" |
| 36 #include "core/inspector/InspectorStateClient.h" | |
| 37 #include "core/inspector/InspectorTracingAgent.h" | 36 #include "core/inspector/InspectorTracingAgent.h" |
| 38 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
| 39 #include "public/platform/WebSize.h" | 38 #include "public/platform/WebSize.h" |
| 40 #include "public/platform/WebThread.h" | 39 #include "public/platform/WebThread.h" |
| 41 #include "public/web/WebDevToolsAgent.h" | 40 #include "public/web/WebDevToolsAgent.h" |
| 42 #include "web/InspectorEmulationAgent.h" | 41 #include "web/InspectorEmulationAgent.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" |
| 46 | 45 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 64 class WebFrameWidgetImpl; | 63 class WebFrameWidgetImpl; |
| 65 class WebInputEvent; | 64 class WebInputEvent; |
| 66 class WebLayerTreeView; | 65 class WebLayerTreeView; |
| 67 class WebLocalFrameImpl; | 66 class WebLocalFrameImpl; |
| 68 class WebString; | 67 class WebString; |
| 69 class WebViewImpl; | 68 class WebViewImpl; |
| 70 | 69 |
| 71 class WebDevToolsAgentImpl final | 70 class WebDevToolsAgentImpl final |
| 72 : public NoBaseWillBeGarbageCollectedFinalized<WebDevToolsAgentImpl> | 71 : public NoBaseWillBeGarbageCollectedFinalized<WebDevToolsAgentImpl> |
| 73 , public WebDevToolsAgent | 72 , public WebDevToolsAgent |
| 74 , public InspectorStateClient | |
| 75 , public InspectorEmulationAgent::Client | 73 , public InspectorEmulationAgent::Client |
| 76 , public InspectorTracingAgent::Client | 74 , public InspectorTracingAgent::Client |
| 77 , public InspectorRuntimeAgent::Client | 75 , public InspectorRuntimeAgent::Client |
| 78 , public InspectorFrontendChannel | 76 , public InspectorFrontendChannel |
| 79 , private WebThread::TaskObserver { | 77 , private WebThread::TaskObserver { |
| 80 public: | 78 public: |
| 81 static PassOwnPtrWillBeRawPtr<WebDevToolsAgentImpl> create(WebLocalFrameImpl
*, WebDevToolsAgentClient*); | 79 static PassOwnPtrWillBeRawPtr<WebDevToolsAgentImpl> create(WebLocalFrameImpl
*, WebDevToolsAgentClient*); |
| 82 ~WebDevToolsAgentImpl() override; | 80 ~WebDevToolsAgentImpl() override; |
| 83 void dispose(); | 81 void dispose(); |
| 84 DECLARE_VIRTUAL_TRACE(); | 82 DECLARE_VIRTUAL_TRACE(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 105 void detach() override; | 103 void detach() override; |
| 106 void continueProgram() override; | 104 void continueProgram() override; |
| 107 void dispatchOnInspectorBackend(int sessionId, const WebString& message) ove
rride; | 105 void dispatchOnInspectorBackend(int sessionId, const WebString& message) ove
rride; |
| 108 void inspectElementAt(const WebPoint&) override; | 106 void inspectElementAt(const WebPoint&) override; |
| 109 void evaluateInWebInspector(long callId, const WebString& script) override; | 107 void evaluateInWebInspector(long callId, const WebString& script) override; |
| 110 WebString evaluateInWebInspectorOverlay(const WebString& script) override; | 108 WebString evaluateInWebInspectorOverlay(const WebString& script) override; |
| 111 | 109 |
| 112 private: | 110 private: |
| 113 WebDevToolsAgentImpl(WebLocalFrameImpl*, WebDevToolsAgentClient*, PassOwnPtr
WillBeRawPtr<InspectorOverlay>); | 111 WebDevToolsAgentImpl(WebLocalFrameImpl*, WebDevToolsAgentClient*, PassOwnPtr
WillBeRawPtr<InspectorOverlay>); |
| 114 | 112 |
| 115 // InspectorStateClient implementation. | |
| 116 void updateInspectorStateCookie(const WTF::String&) override; | |
| 117 | |
| 118 // InspectorTracingAgent::Client implementation. | 113 // InspectorTracingAgent::Client implementation. |
| 119 void enableTracing(const WTF::String& categoryFilter) override; | 114 void enableTracing(const WTF::String& categoryFilter) override; |
| 120 void disableTracing() override; | 115 void disableTracing() override; |
| 121 | 116 |
| 122 // InspectorEmulationAgent::Client implementation. | 117 // InspectorEmulationAgent::Client implementation. |
| 123 void setCPUThrottlingRate(double) override; | 118 void setCPUThrottlingRate(double) override; |
| 124 | 119 |
| 125 // InspectorRuntimeAgent::Client implementation. | 120 // InspectorRuntimeAgent::Client implementation. |
| 126 void resumeStartup() override; | 121 void resumeStartup() override; |
| 127 | 122 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 139 WebDevToolsAgentClient* m_client; | 134 WebDevToolsAgentClient* m_client; |
| 140 RawPtrWillBeMember<WebLocalFrameImpl> m_webLocalFrameImpl; | 135 RawPtrWillBeMember<WebLocalFrameImpl> m_webLocalFrameImpl; |
| 141 bool m_attached; | 136 bool m_attached; |
| 142 #if ENABLE(ASSERT) | 137 #if ENABLE(ASSERT) |
| 143 bool m_hasBeenDisposed; | 138 bool m_hasBeenDisposed; |
| 144 #endif | 139 #endif |
| 145 | 140 |
| 146 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; | 141 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
| 147 OwnPtr<InjectedScriptManager> m_injectedScriptManager; | 142 OwnPtr<InjectedScriptManager> m_injectedScriptManager; |
| 148 OwnPtrWillBeMember<InspectorResourceContentLoader> m_resourceContentLoader; | 143 OwnPtrWillBeMember<InspectorResourceContentLoader> m_resourceContentLoader; |
| 149 OwnPtr<InspectorCompositeState> m_state; | |
| 150 OwnPtrWillBeMember<InspectorOverlay> m_overlay; | 144 OwnPtrWillBeMember<InspectorOverlay> m_overlay; |
| 151 OwnPtrWillBeMember<InspectedFrames> m_inspectedFrames; | 145 OwnPtrWillBeMember<InspectedFrames> m_inspectedFrames; |
| 152 | 146 |
| 153 RawPtrWillBeMember<InspectorInspectorAgent> m_inspectorAgent; | 147 RawPtrWillBeMember<InspectorInspectorAgent> m_inspectorAgent; |
| 154 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; | 148 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; |
| 155 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 149 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
| 156 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; | 150 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; |
| 157 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; | 151 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; |
| 158 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; | 152 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; |
| 159 RawPtrWillBeMember<PageRuntimeAgent> m_pageRuntimeAgent; | 153 RawPtrWillBeMember<PageRuntimeAgent> m_pageRuntimeAgent; |
| 160 RawPtrWillBeMember<PageConsoleAgent> m_pageConsoleAgent; | 154 RawPtrWillBeMember<PageConsoleAgent> m_pageConsoleAgent; |
| 161 | 155 |
| 162 RefPtrWillBeMember<InspectorBackendDispatcher> m_inspectorBackendDispatcher; | 156 RefPtrWillBeMember<InspectorBackendDispatcher> m_inspectorBackendDispatcher; |
| 163 OwnPtr<InspectorFrontend> m_inspectorFrontend; | 157 OwnPtr<InspectorFrontend> m_inspectorFrontend; |
| 164 InspectorAgentRegistry m_agents; | 158 InspectorAgentRegistry m_agents; |
| 165 bool m_deferredAgentsInitialized; | 159 bool m_deferredAgentsInitialized; |
| 166 | 160 |
| 167 typedef Vector<std::pair<int, RefPtr<JSONObject>>> NotificationQueue; | 161 typedef Vector<std::pair<int, RefPtr<JSONObject>>> NotificationQueue; |
| 168 NotificationQueue m_notificationQueue; | 162 NotificationQueue m_notificationQueue; |
| 169 int m_sessionId; | 163 int m_sessionId; |
| 170 String m_stateCookie; | 164 String m_stateCookie; |
| 165 bool m_stateMuted; |
| 171 | 166 |
| 172 friend class DebuggerTask; | 167 friend class DebuggerTask; |
| 173 }; | 168 }; |
| 174 | 169 |
| 175 } // namespace blink | 170 } // namespace blink |
| 176 | 171 |
| 177 #endif | 172 #endif |
| OLD | NEW |