OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "content/browser/devtools/ipc_devtools_agent_host.h" | 13 #include "content/browser/devtools/ipc_devtools_agent_host.h" |
| 14 #include "content/browser/devtools/protocol/dom_handler.h" |
| 15 #include "content/browser/devtools/protocol/input_handler.h" |
| 16 #include "content/browser/devtools/protocol/network_handler.h" |
| 17 #include "content/browser/devtools/protocol/page_handler.h" |
| 18 #include "content/browser/devtools/protocol/power_handler.h" |
14 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
15 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
16 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
17 #include "content/public/browser/web_contents_observer.h" | 22 #include "content/public/browser/web_contents_observer.h" |
18 | 23 |
19 namespace cc { | 24 namespace cc { |
20 class CompositorFrameMetadata; | 25 class CompositorFrameMetadata; |
21 } | 26 } |
22 | 27 |
23 namespace content { | 28 namespace content { |
24 | 29 |
25 class DevToolsProtocolHandlerImpl; | 30 class DevToolsProtocolHandlerImpl; |
| 31 class DevToolsTracingHandler; |
26 class RenderViewHost; | 32 class RenderViewHost; |
27 class RenderViewHostImpl; | 33 class RenderViewHostImpl; |
28 | 34 |
29 #if defined(OS_ANDROID) | 35 #if defined(OS_ANDROID) |
30 class PowerSaveBlockerImpl; | 36 class PowerSaveBlockerImpl; |
31 #endif | 37 #endif |
32 | 38 |
33 namespace devtools { | |
34 namespace dom { class DOMHandler; } | |
35 namespace input { class InputHandler; } | |
36 namespace network { class NetworkHandler; } | |
37 namespace page { class PageHandler; } | |
38 namespace power { class PowerHandler; } | |
39 namespace tracing { class TracingHandler; } | |
40 } | |
41 | |
42 class CONTENT_EXPORT RenderViewDevToolsAgentHost | 39 class CONTENT_EXPORT RenderViewDevToolsAgentHost |
43 : public IPCDevToolsAgentHost, | 40 : public IPCDevToolsAgentHost, |
44 private WebContentsObserver, | 41 private WebContentsObserver, |
45 public NotificationObserver { | 42 public NotificationObserver { |
46 public: | 43 public: |
47 static void OnCancelPendingNavigation(RenderViewHost* pending, | 44 static void OnCancelPendingNavigation(RenderViewHost* pending, |
48 RenderViewHost* current); | 45 RenderViewHost* current); |
49 | 46 |
50 RenderViewDevToolsAgentHost(RenderViewHost*); | 47 RenderViewDevToolsAgentHost(RenderViewHost*); |
51 | 48 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 111 |
115 void InnerOnClientAttached(); | 112 void InnerOnClientAttached(); |
116 void InnerClientDetachedFromRenderer(); | 113 void InnerClientDetachedFromRenderer(); |
117 | 114 |
118 RenderViewHostImpl* render_view_host_; | 115 RenderViewHostImpl* render_view_host_; |
119 scoped_ptr<devtools::dom::DOMHandler> dom_handler_; | 116 scoped_ptr<devtools::dom::DOMHandler> dom_handler_; |
120 scoped_ptr<devtools::input::InputHandler> input_handler_; | 117 scoped_ptr<devtools::input::InputHandler> input_handler_; |
121 scoped_ptr<devtools::network::NetworkHandler> network_handler_; | 118 scoped_ptr<devtools::network::NetworkHandler> network_handler_; |
122 scoped_ptr<devtools::page::PageHandler> page_handler_; | 119 scoped_ptr<devtools::page::PageHandler> page_handler_; |
123 scoped_ptr<devtools::power::PowerHandler> power_handler_; | 120 scoped_ptr<devtools::power::PowerHandler> power_handler_; |
124 scoped_ptr<devtools::tracing::TracingHandler> tracing_handler_; | |
125 scoped_ptr<DevToolsProtocolHandlerImpl> handler_impl_; | 121 scoped_ptr<DevToolsProtocolHandlerImpl> handler_impl_; |
| 122 scoped_ptr<DevToolsTracingHandler> tracing_handler_; |
126 #if defined(OS_ANDROID) | 123 #if defined(OS_ANDROID) |
127 scoped_ptr<PowerSaveBlockerImpl> power_save_blocker_; | 124 scoped_ptr<PowerSaveBlockerImpl> power_save_blocker_; |
128 #endif | 125 #endif |
129 std::string state_; | 126 std::string state_; |
130 NotificationRegistrar registrar_; | 127 NotificationRegistrar registrar_; |
131 bool reattaching_; | 128 bool reattaching_; |
132 | 129 |
133 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); | 130 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); |
134 }; | 131 }; |
135 | 132 |
136 } // namespace content | 133 } // namespace content |
137 | 134 |
138 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 135 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
OLD | NEW |