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

Unified Diff: chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.h

Issue 8775064: Make PerTabPrefsTabHelper into PrefsTabHelper, move all prefs code into it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: this one instead 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
Index: chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.h
diff --git a/chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.h b/chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.h
deleted file mode 100644
index a187c00da83d4cbbc00a777c80759597b4108f6a..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_TAB_CONTENTS_PER_TAB_PREFS_TAB_HELPER_H_
-#define CHROME_BROWSER_UI_TAB_CONTENTS_PER_TAB_PREFS_TAB_HELPER_H_
-#pragma once
-
-#include "chrome/browser/prefs/pref_change_registrar.h"
-#include "content/browser/tab_contents/tab_contents_observer.h"
-
-class PrefService;
-class TabContentsWrapper;
-struct WebPreferences;
-
-// Per-tab class to override user preferences.
-class PerTabPrefsTabHelper : public TabContentsObserver {
- public:
- explicit PerTabPrefsTabHelper(TabContentsWrapper* tab_contents);
- virtual ~PerTabPrefsTabHelper();
-
- PrefService* prefs() { return prefs_.get(); }
-
- virtual void OverrideWebPreferences(WebPreferences* prefs);
-
- protected:
- void RegisterPerTabUserPrefs(PrefService* prefs);
-
- // TabContentsObserver overrides:
- virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE;
- virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE;
-
- private:
- // Our owning TabContentsWrapper.
- TabContentsWrapper* wrapper_;
-
- scoped_ptr<PrefService> prefs_;
- PrefChangeRegistrar pref_change_registrar_;
-
- DISALLOW_COPY_AND_ASSIGN(PerTabPrefsTabHelper);
-};
-
-#endif // CHROME_BROWSER_UI_TAB_CONTENTS_PER_TAB_PREFS_TAB_HELPER_H_
« no previous file with comments | « chrome/browser/ui/prefs/prefs_tab_helper_unittest.cc ('k') | chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698