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 13 matching lines...) Expand all Loading... |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
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/InspectorNetworkAgent.h" |
34 #include "core/inspector/InspectorPageAgent.h" | 35 #include "core/inspector/InspectorPageAgent.h" |
35 #include "core/inspector/InspectorSession.h" | 36 #include "core/inspector/InspectorSession.h" |
36 #include "core/inspector/InspectorTracingAgent.h" | 37 #include "core/inspector/InspectorTracingAgent.h" |
37 #include "platform/heap/Handle.h" | 38 #include "platform/heap/Handle.h" |
38 #include "public/platform/WebSize.h" | 39 #include "public/platform/WebSize.h" |
39 #include "public/platform/WebThread.h" | 40 #include "public/platform/WebThread.h" |
40 #include "public/web/WebDevToolsAgent.h" | 41 #include "public/web/WebDevToolsAgent.h" |
41 #include "web/InspectorEmulationAgent.h" | 42 #include "web/InspectorEmulationAgent.h" |
42 #include "wtf/Forward.h" | 43 #include "wtf/Forward.h" |
43 #include "wtf/Vector.h" | 44 #include "wtf/Vector.h" |
(...skipping 16 matching lines...) Expand all Loading... |
60 class WebInputEvent; | 61 class WebInputEvent; |
61 class WebLayerTreeView; | 62 class WebLayerTreeView; |
62 class WebLocalFrameImpl; | 63 class WebLocalFrameImpl; |
63 class WebString; | 64 class WebString; |
64 class WebViewImpl; | 65 class WebViewImpl; |
65 | 66 |
66 class WebDevToolsAgentImpl final | 67 class WebDevToolsAgentImpl final |
67 : public GarbageCollectedFinalized<WebDevToolsAgentImpl> | 68 : public GarbageCollectedFinalized<WebDevToolsAgentImpl> |
68 , public WebDevToolsAgent | 69 , public WebDevToolsAgent |
69 , public InspectorEmulationAgent::Client | 70 , public InspectorEmulationAgent::Client |
| 71 , public InspectorNetworkAgent::Client |
70 , public InspectorTracingAgent::Client | 72 , public InspectorTracingAgent::Client |
71 , public InspectorPageAgent::Client | 73 , public InspectorPageAgent::Client |
72 , public InspectorSession::Client | 74 , public InspectorSession::Client |
73 , private WebThread::TaskObserver { | 75 , private WebThread::TaskObserver { |
74 public: | 76 public: |
75 static WebDevToolsAgentImpl* create(WebLocalFrameImpl*, WebDevToolsAgentClie
nt*); | 77 static WebDevToolsAgentImpl* create(WebLocalFrameImpl*, WebDevToolsAgentClie
nt*); |
76 ~WebDevToolsAgentImpl() override; | 78 ~WebDevToolsAgentImpl() override; |
77 DECLARE_VIRTUAL_TRACE(); | 79 DECLARE_VIRTUAL_TRACE(); |
78 | 80 |
79 void willBeDestroyed(); | 81 void willBeDestroyed(); |
(...skipping 27 matching lines...) Expand all Loading... |
107 | 109 |
108 // InspectorTracingAgent::Client implementation. | 110 // InspectorTracingAgent::Client implementation. |
109 void enableTracing(const WTF::String& categoryFilter) override; | 111 void enableTracing(const WTF::String& categoryFilter) override; |
110 void disableTracing() override; | 112 void disableTracing() override; |
111 void showReloadingBlanket() override; | 113 void showReloadingBlanket() override; |
112 void hideReloadingBlanket() override; | 114 void hideReloadingBlanket() override; |
113 | 115 |
114 // InspectorEmulationAgent::Client implementation. | 116 // InspectorEmulationAgent::Client implementation. |
115 void setCPUThrottlingRate(double) override; | 117 void setCPUThrottlingRate(double) override; |
116 | 118 |
| 119 // InspectorNetworkAgent::Client implementation. |
| 120 void showCertificateViewer(const AtomicString&) override; |
| 121 |
117 // InspectorPageAgent::Client implementation. | 122 // InspectorPageAgent::Client implementation. |
118 void pageLayoutInvalidated(bool resized) override; | 123 void pageLayoutInvalidated(bool resized) override; |
119 void configureOverlay(bool suspended, const String& message) override; | 124 void configureOverlay(bool suspended, const String& message) override; |
120 void waitForCreateWindow(LocalFrame*) override; | 125 void waitForCreateWindow(LocalFrame*) override; |
121 | 126 |
122 // InspectorSession::Client implementation. | 127 // InspectorSession::Client implementation. |
123 void sendProtocolMessage(int sessionId, int callId, const String& response,
const String& state) override; | 128 void sendProtocolMessage(int sessionId, int callId, const String& response,
const String& state) override; |
124 | 129 |
125 // WebThread::TaskObserver implementation. | 130 // WebThread::TaskObserver implementation. |
126 void willProcessTask() override; | 131 void willProcessTask() override; |
(...skipping 24 matching lines...) Expand all Loading... |
151 Member<InspectorTracingAgent> m_tracingAgent; | 156 Member<InspectorTracingAgent> m_tracingAgent; |
152 | 157 |
153 Member<InspectorSession> m_session; | 158 Member<InspectorSession> m_session; |
154 bool m_includeViewAgents; | 159 bool m_includeViewAgents; |
155 int m_layerTreeId; | 160 int m_layerTreeId; |
156 }; | 161 }; |
157 | 162 |
158 } // namespace blink | 163 } // namespace blink |
159 | 164 |
160 #endif | 165 #endif |
OLD | NEW |