| Index: components/prefs/pref_store.h
|
| diff --git a/components/prefs/pref_store.h b/components/prefs/pref_store.h
|
| index ef2bc494d150b8d2366a72f1dfd36f282e553687..b52aab1123fe69a085fdbcc7e111219683cc1b02 100644
|
| --- a/components/prefs/pref_store.h
|
| +++ b/components/prefs/pref_store.h
|
| @@ -33,14 +33,19 @@ class COMPONENTS_PREFS_EXPORT PrefStore : public base::RefCounted<PrefStore> {
|
| virtual void OnInitializationCompleted(bool succeeded) = 0;
|
|
|
| protected:
|
| - virtual ~Observer() {}
|
| + virtual ~Observer();
|
| };
|
|
|
| - PrefStore() {}
|
| + PrefStore();
|
| +
|
| +#if defined(WIN32) && defined(COMPONENT_BUILD)
|
| + void AddRef() const;
|
| + void Release() const;
|
| +#endif
|
|
|
| // Add and remove observers.
|
| - virtual void AddObserver(Observer* observer) {}
|
| - virtual void RemoveObserver(Observer* observer) {}
|
| + virtual void AddObserver(Observer* observer);
|
| + virtual void RemoveObserver(Observer* observer);
|
| virtual bool HasObservers() const;
|
|
|
| // Whether the store has completed all asynchronous initialization.
|
| @@ -54,7 +59,7 @@ class COMPONENTS_PREFS_EXPORT PrefStore : public base::RefCounted<PrefStore> {
|
|
|
| protected:
|
| friend class base::RefCounted<PrefStore>;
|
| - virtual ~PrefStore() {}
|
| + virtual ~PrefStore();
|
|
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(PrefStore);
|
|
|