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

Unified Diff: chrome/browser/ui/alternate_error_tab_observer.h

Issue 9030010: Move most of the remaining users of WebContentsObserver::tab_contents() to use web_contents(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
« no previous file with comments | « chrome/browser/translate/translate_tab_helper.cc ('k') | chrome/browser/ui/alternate_error_tab_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/alternate_error_tab_observer.h
===================================================================
--- chrome/browser/ui/alternate_error_tab_observer.h (revision 115777)
+++ chrome/browser/ui/alternate_error_tab_observer.h (working copy)
@@ -10,18 +10,21 @@
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/web_contents_observer.h"
-class TabContentsWrapper;
+class Profile;
// Per-tab class to implement alternate error page functionality.
class AlternateErrorPageTabObserver : public content::WebContentsObserver,
public content::NotificationObserver {
public:
- explicit AlternateErrorPageTabObserver(TabContentsWrapper* wrapper);
+ explicit AlternateErrorPageTabObserver(content::WebContents* web_contents);
virtual ~AlternateErrorPageTabObserver();
static void RegisterUserPrefs(PrefService* prefs);
private:
+ // Helper to return the profile for this tab.
+ Profile* GetProfile() const;
+
// content::WebContentsObserver overrides:
virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE;
@@ -39,9 +42,6 @@
// Send the alternate error page URL to the renderer.
void UpdateAlternateErrorPageURL(RenderViewHost* rvh);
- // Our owning TabContentsWrapper.
- TabContentsWrapper* wrapper_;
-
content::NotificationRegistrar registrar_;
PrefChangeRegistrar pref_change_registrar_;
« no previous file with comments | « chrome/browser/translate/translate_tab_helper.cc ('k') | chrome/browser/ui/alternate_error_tab_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698