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

Unified Diff: components/dom_distiller/content/distiller_page_web_contents.h

Issue 373623002: Convert remaining WebContentsObservers loading callbacks to use RFH. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CrOS test Created 6 years, 5 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: components/dom_distiller/content/distiller_page_web_contents.h
diff --git a/components/dom_distiller/content/distiller_page_web_contents.h b/components/dom_distiller/content/distiller_page_web_contents.h
index aed9789cf55249188c0d0460aa68e7804e04774e..d7388544f5d144c0afbd131b9f1b357c8f22b857 100644
--- a/components/dom_distiller/content/distiller_page_web_contents.h
+++ b/components/dom_distiller/content/distiller_page_web_contents.h
@@ -13,12 +13,6 @@
#include "content/public/browser/web_contents_observer.h"
#include "url/gurl.h"
-namespace content {
-class RenderViewHost;
-}
-
-using content::RenderViewHost;
-
namespace dom_distiller {
class SourcePageHandleWebContents : public SourcePageHandle {
@@ -58,15 +52,13 @@ class DistillerPageWebContents : public DistillerPage,
virtual ~DistillerPageWebContents();
// content::WebContentsObserver implementation.
- virtual void DocumentLoadedInFrame(int64 frame_id,
- RenderViewHost* render_view_host) OVERRIDE;
+ virtual void DocumentLoadedInFrame(
+ content::RenderFrameHost* render_frame_host) OVERRIDE;
- virtual void DidFailLoad(int64 frame_id,
+ virtual void DidFailLoad(content::RenderFrameHost* render_frame_host,
const GURL& validated_url,
- bool is_main_frame,
int error_code,
- const base::string16& error_description,
- RenderViewHost* render_view_host) OVERRIDE;
+ const base::string16& error_description) OVERRIDE;
protected:
virtual void DistillPageImpl(const GURL& url,

Powered by Google App Engine
This is Rietveld 408576698