Index: content/browser/devtools/protocol/page_handler.h |
diff --git a/content/browser/devtools/protocol/page_handler.h b/content/browser/devtools/protocol/page_handler.h |
index 57494396d2368117cbbd07b3fe5cd76d7492cc8b..06f79bdf29f018b5833fbd335fab6425656b8aa1 100644 |
--- a/content/browser/devtools/protocol/page_handler.h |
+++ b/content/browser/devtools/protocol/page_handler.h |
@@ -17,7 +17,8 @@ class SkBitmap; |
namespace content { |
-class RenderViewHostImpl; |
+class RenderWidgetHostImpl; |
+class WebContentsImpl; |
namespace devtools { |
namespace page { |
@@ -37,7 +38,7 @@ class PageHandler { |
PageHandler(); |
virtual ~PageHandler(); |
- void SetRenderViewHost(RenderViewHostImpl* host); |
+ void SetWebContents(WebContentsImpl* web_contents); |
void SetClient(scoped_ptr<Client> client); |
void Detached(); |
void OnSwapCompositorFrame(const cc::CompositorFrameMetadata& frame_metadata); |
@@ -80,6 +81,7 @@ class PageHandler { |
Response SetColorPickerEnabled(bool enabled); |
private: |
+ RenderWidgetHostImpl* GetRenderWidgetHost(); |
void NotifyScreencastVisibility(bool visible); |
void InnerSwapCompositorFrame(); |
void ScreencastFrameCaptured(const cc::CompositorFrameMetadata& metadata, |
@@ -113,7 +115,7 @@ class PageHandler { |
scoped_ptr<ColorPicker> color_picker_; |
- RenderViewHostImpl* host_; |
+ WebContentsImpl* web_contents_; |
scoped_ptr<Client> client_; |
ScreencastListener* screencast_listener_; |
base::WeakPtrFactory<PageHandler> weak_factory_; |