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

Unified Diff: components/prefs/pref_store.h

Issue 1749053002: Move //remoting/remoting_host_win.gypi:* to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update for component build of Windows Created 4 years, 9 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/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);

Powered by Google App Engine
This is Rietveld 408576698