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 DevToolsTracingHandler; | 26 class DevToolsTracingHandler; |
26 class RendererOverridesHandler; | 27 class RendererOverridesHandler; |
27 class RenderViewHost; | 28 class RenderViewHost; |
28 | 29 |
29 #if defined(OS_ANDROID) | 30 #if defined(OS_ANDROID) |
30 class PowerSaveBlockerImpl; | 31 class PowerSaveBlockerImpl; |
31 #endif | 32 #endif |
32 | 33 |
33 class CONTENT_EXPORT RenderViewDevToolsAgentHost | 34 class CONTENT_EXPORT RenderViewDevToolsAgentHost |
34 : public IPCDevToolsAgentHost, | 35 : public IPCDevToolsAgentHost, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 void OnDispatchOnInspectorFrontend(const std::string& message); | 89 void OnDispatchOnInspectorFrontend(const std::string& message); |
89 void OnSaveAgentRuntimeState(const std::string& state); | 90 void OnSaveAgentRuntimeState(const std::string& state); |
90 void OnClearBrowserCache(); | 91 void OnClearBrowserCache(); |
91 void OnClearBrowserCookies(); | 92 void OnClearBrowserCookies(); |
92 | 93 |
93 void ClientDetachedFromRenderer(); | 94 void ClientDetachedFromRenderer(); |
94 | 95 |
95 RenderViewHost* render_view_host_; | 96 RenderViewHost* render_view_host_; |
96 scoped_ptr<RendererOverridesHandler> overrides_handler_; | 97 scoped_ptr<RendererOverridesHandler> overrides_handler_; |
97 scoped_ptr<DevToolsTracingHandler> tracing_handler_; | 98 scoped_ptr<DevToolsTracingHandler> tracing_handler_; |
| 99 scoped_ptr<DevToolsPowerHandler> power_handler_; |
98 #if defined(OS_ANDROID) | 100 #if defined(OS_ANDROID) |
99 scoped_ptr<PowerSaveBlockerImpl> power_save_blocker_; | 101 scoped_ptr<PowerSaveBlockerImpl> power_save_blocker_; |
100 #endif | 102 #endif |
101 std::string state_; | 103 std::string state_; |
102 NotificationRegistrar registrar_; | 104 NotificationRegistrar registrar_; |
103 | 105 |
104 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); | 106 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); |
105 }; | 107 }; |
106 | 108 |
107 } // namespace content | 109 } // namespace content |
108 | 110 |
109 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 111 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
OLD | NEW |