Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: content/browser/devtools/protocol/page_handler.h

Issue 1043173003: [DevTools] Move Page and Emulation handlers to RenderFrameHostImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698