| 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 DevToolsProtocolHandlerImpl; |
| 26 class DevToolsTracingHandler; | 27 class DevToolsTracingHandler; |
| 27 class RendererOverridesHandler; | 28 class RendererOverridesHandler; |
| 28 class RenderViewHost; | 29 class RenderViewHost; |
| 29 class RenderViewHostImpl; | 30 class RenderViewHostImpl; |
| 30 | 31 |
| 31 #if defined(OS_ANDROID) | 32 #if defined(OS_ANDROID) |
| 32 class PowerSaveBlockerImpl; | 33 class PowerSaveBlockerImpl; |
| 33 #endif | 34 #endif |
| 34 | 35 |
| 35 class CONTENT_EXPORT RenderViewDevToolsAgentHost | 36 class CONTENT_EXPORT RenderViewDevToolsAgentHost |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void OnSaveAgentRuntimeState(const std::string& state); | 100 void OnSaveAgentRuntimeState(const std::string& state); |
| 100 void OnEnableTracing(const std::string& category_filter); | 101 void OnEnableTracing(const std::string& category_filter); |
| 101 void OnDisableTracing(); | 102 void OnDisableTracing(); |
| 102 | 103 |
| 103 void ClientDetachedFromRenderer(); | 104 void ClientDetachedFromRenderer(); |
| 104 | 105 |
| 105 void InnerOnClientAttached(); | 106 void InnerOnClientAttached(); |
| 106 void InnerClientDetachedFromRenderer(); | 107 void InnerClientDetachedFromRenderer(); |
| 107 | 108 |
| 108 RenderViewHostImpl* render_view_host_; | 109 RenderViewHostImpl* render_view_host_; |
| 110 scoped_ptr<DevToolsProtocolHandlerImpl> handler_impl_; |
| 109 scoped_ptr<RendererOverridesHandler> overrides_handler_; | 111 scoped_ptr<RendererOverridesHandler> overrides_handler_; |
| 110 scoped_ptr<DevToolsTracingHandler> tracing_handler_; | 112 scoped_ptr<DevToolsTracingHandler> tracing_handler_; |
| 111 scoped_ptr<DevToolsPowerHandler> power_handler_; | 113 scoped_ptr<DevToolsPowerHandler> power_handler_; |
| 112 #if defined(OS_ANDROID) | 114 #if defined(OS_ANDROID) |
| 113 scoped_ptr<PowerSaveBlockerImpl> power_save_blocker_; | 115 scoped_ptr<PowerSaveBlockerImpl> power_save_blocker_; |
| 114 #endif | 116 #endif |
| 115 std::string state_; | 117 std::string state_; |
| 116 NotificationRegistrar registrar_; | 118 NotificationRegistrar registrar_; |
| 117 bool reattaching_; | 119 bool reattaching_; |
| 118 | 120 |
| 119 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); | 121 DISALLOW_COPY_AND_ASSIGN(RenderViewDevToolsAgentHost); |
| 120 }; | 122 }; |
| 121 | 123 |
| 122 } // namespace content | 124 } // namespace content |
| 123 | 125 |
| 124 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ | 126 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_VIEW_DEVTOOLS_AGENT_HOST_H_ |
| OLD | NEW |