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

Unified Diff: chrome/browser/prefs/pref_notifier_impl.h

Issue 8568019: Introduce per-tab preferences service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/prefs/pref_notifier_impl.h
diff --git a/chrome/browser/prefs/pref_notifier_impl.h b/chrome/browser/prefs/pref_notifier_impl.h
index b16ad1144fa02f0701cf2c5377c6fe4be433200a..416fd3b89dbb0582fe126a424d3eeaebe89c4d6e 100644
--- a/chrome/browser/prefs/pref_notifier_impl.h
+++ b/chrome/browser/prefs/pref_notifier_impl.h
@@ -13,6 +13,7 @@
#include "base/threading/non_thread_safe.h"
#include "chrome/browser/prefs/pref_notifier.h"
+class PrefModelAssociator;
class PrefService;
namespace content {
@@ -23,9 +24,12 @@ class NotificationObserver;
class PrefNotifierImpl : public PrefNotifier,
public base::NonThreadSafe {
public:
- explicit PrefNotifierImpl(PrefService* pref_service);
+ PrefNotifierImpl();
virtual ~PrefNotifierImpl();
+ void SetPrefModelAssociator(PrefModelAssociator* associator);
+ void SetPrefService(PrefService* pref_service);
+
// If the pref at the given path changes, we call the observer's Observe
// method with PREF_CHANGED.
void AddPrefObserver(const char* path, content::NotificationObserver* obs);
@@ -53,6 +57,8 @@ class PrefNotifierImpl : public PrefNotifier,
// Weak reference; the notifier is owned by the PrefService.
PrefService* pref_service_;
+ PrefModelAssociator* pref_model_associator_;
+
PrefObserverMap pref_observers_;
DISALLOW_COPY_AND_ASSIGN(PrefNotifierImpl);

Powered by Google App Engine
This is Rietveld 408576698