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" | |
19 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
20 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
21 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
22 #include "content/public/browser/web_contents_observer.h" | 17 #include "content/public/browser/web_contents_observer.h" |
23 | 18 |
24 namespace cc { | 19 namespace cc { |
25 class CompositorFrameMetadata; | 20 class CompositorFrameMetadata; |
26 } | 21 } |
27 | 22 |
28 namespace content { | 23 namespace content { |
29 | 24 |
30 class DevToolsProtocolHandlerImpl; | 25 class DevToolsProtocolHandlerImpl; |
31 class DevToolsTracingHandler; | |
32 class RenderViewHost; | 26 class RenderViewHost; |
33 class RenderViewHostImpl; | 27 class RenderViewHostImpl; |
34 | 28 |
35 #if defined(OS_ANDROID) | 29 #if defined(OS_ANDROID) |
36 class PowerSaveBlockerImpl; | 30 class PowerSaveBlockerImpl; |
37 #endif | 31 #endif |
38 | 32 |
| 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 |
39 class CONTENT_EXPORT RenderViewDevToolsAgentHost | 42 class CONTENT_EXPORT RenderViewDevToolsAgentHost |
40 : public IPCDevToolsAgentHost, | 43 : public IPCDevToolsAgentHost, |
41 private WebContentsObserver, | 44 private WebContentsObserver, |
42 public NotificationObserver { | 45 public NotificationObserver { |
43 public: | 46 public: |
44 static void OnCancelPendingNavigation(RenderViewHost* pending, | 47 static void OnCancelPendingNavigation(RenderViewHost* pending, |
45 RenderViewHost* current); | 48 RenderViewHost* current); |
46 | 49 |
47 RenderViewDevToolsAgentHost(RenderViewHost*); | 50 RenderViewDevToolsAgentHost(RenderViewHost*); |
48 | 51 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 114 |
112 void InnerOnClientAttached(); | 115 void InnerOnClientAttached(); |
113 void InnerClientDetachedFromRenderer(); | 116 void InnerClientDetachedFromRenderer(); |
114 | 117 |
115 RenderViewHostImpl* render_view_host_; | 118 RenderViewHostImpl* render_view_host_; |
116 scoped_ptr<devtools::dom::DOMHandler> dom_handler_; | 119 scoped_ptr<devtools::dom::DOMHandler> dom_handler_; |
117 scoped_ptr<devtools::input::InputHandler> input_handler_; | 120 scoped_ptr<devtools::input::InputHandler> input_handler_; |
118 scoped_ptr<devtools::network::NetworkHandler> network_handler_; | 121 scoped_ptr<devtools::network::NetworkHandler> network_handler_; |
119 scoped_ptr<devtools::page::PageHandler> page_handler_; | 122 scoped_ptr<devtools::page::PageHandler> page_handler_; |
120 scoped_ptr<devtools::power::PowerHandler> power_handler_; | 123 scoped_ptr<devtools::power::PowerHandler> power_handler_; |
| 124 scoped_ptr<devtools::tracing::TracingHandler> tracing_handler_; |
121 scoped_ptr<DevToolsProtocolHandlerImpl> handler_impl_; | 125 scoped_ptr<DevToolsProtocolHandlerImpl> handler_impl_; |
122 scoped_ptr<DevToolsTracingHandler> tracing_handler_; | |
123 #if defined(OS_ANDROID) | 126 #if defined(OS_ANDROID) |
124 scoped_ptr<PowerSaveBlockerImpl> power_save_blocker_; | 127 scoped_ptr<PowerSaveBlockerImpl> power_save_blocker_; |
125 #endif | 128 #endif |
126 std::string state_; | 129 std::string state_; |
127 NotificationRegistrar registrar_; | 130 NotificationRegistrar registrar_; |
128 bool reattaching_; | 131 bool reattaching_; |
129 | 132 |
130 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); | 133 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); |
131 }; | 134 }; |
132 | 135 |
133 } // namespace content | 136 } // namespace content |
134 | 137 |
135 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 138 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
OLD | NEW |