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/common/content_export.h" | 14 #include "content/common/content_export.h" |
15 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
16 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
17 #include "content/public/browser/web_contents_observer.h" | 17 #include "content/public/browser/web_contents_observer.h" |
18 | 18 |
19 namespace cc { | 19 namespace cc { |
20 class CompositorFrameMetadata; | 20 class CompositorFrameMetadata; |
21 } | 21 } |
22 | 22 |
23 namespace content { | 23 namespace content { |
24 | 24 |
25 class DevToolsPowerHandler; | 25 class DevToolsPowerHandler; |
26 class DevToolsTracingHandler; | 26 class DevToolsTracingHandler; |
27 class RendererOverridesHandler; | 27 class RendererOverridesHandler; |
28 class RenderViewHost; | 28 class RenderViewHost; |
| 29 class RenderViewHostImpl; |
29 | 30 |
30 #if defined(OS_ANDROID) | 31 #if defined(OS_ANDROID) |
31 class PowerSaveBlockerImpl; | 32 class PowerSaveBlockerImpl; |
32 #endif | 33 #endif |
33 | 34 |
34 class CONTENT_EXPORT RenderViewDevToolsAgentHost | 35 class CONTENT_EXPORT RenderViewDevToolsAgentHost |
35 : public IPCDevToolsAgentHost, | 36 : public IPCDevToolsAgentHost, |
36 private WebContentsObserver, | 37 private WebContentsObserver, |
37 public NotificationObserver { | 38 public NotificationObserver { |
38 public: | 39 public: |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 bool OnSetTouchEventEmulationEnabled(const IPC::Message& message); | 90 bool OnSetTouchEventEmulationEnabled(const IPC::Message& message); |
90 | 91 |
91 void OnDispatchOnInspectorFrontend(const std::string& message); | 92 void OnDispatchOnInspectorFrontend(const std::string& message); |
92 void OnSaveAgentRuntimeState(const std::string& state); | 93 void OnSaveAgentRuntimeState(const std::string& state); |
93 | 94 |
94 void ClientDetachedFromRenderer(); | 95 void ClientDetachedFromRenderer(); |
95 | 96 |
96 void InnerOnClientAttached(); | 97 void InnerOnClientAttached(); |
97 void InnerClientDetachedFromRenderer(); | 98 void InnerClientDetachedFromRenderer(); |
98 | 99 |
99 RenderViewHost* render_view_host_; | 100 RenderViewHostImpl* render_view_host_; |
100 scoped_ptr<RendererOverridesHandler> overrides_handler_; | 101 scoped_ptr<RendererOverridesHandler> overrides_handler_; |
101 scoped_ptr<DevToolsTracingHandler> tracing_handler_; | 102 scoped_ptr<DevToolsTracingHandler> tracing_handler_; |
102 scoped_ptr<DevToolsPowerHandler> power_handler_; | 103 scoped_ptr<DevToolsPowerHandler> power_handler_; |
103 #if defined(OS_ANDROID) | 104 #if defined(OS_ANDROID) |
104 scoped_ptr<PowerSaveBlockerImpl> power_save_blocker_; | 105 scoped_ptr<PowerSaveBlockerImpl> power_save_blocker_; |
105 #endif | 106 #endif |
106 std::string state_; | 107 std::string state_; |
107 NotificationRegistrar registrar_; | 108 NotificationRegistrar registrar_; |
108 bool reattaching_; | 109 bool reattaching_; |
109 | 110 |
110 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); | 111 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); |
111 }; | 112 }; |
112 | 113 |
113 } // namespace content | 114 } // namespace content |
114 | 115 |
115 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 116 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
OLD | NEW |