Index: base/prefs/public/pref_observer.h |
diff --git a/base/prefs/public/pref_observer.h b/base/prefs/public/pref_observer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..26922439d34b76f73bb9e95eef22c16c8dded798 |
--- /dev/null |
+++ b/base/prefs/public/pref_observer.h |
@@ -0,0 +1,19 @@ |
+// Copyright (c) 2012 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 BASE_PREFS_PUBLIC_PREF_OBSERVER_H_ |
+#define BASE_PREFS_PUBLIC_PREF_OBSERVER_H_ |
+ |
+#include <string> |
+ |
+class PrefServiceBase; |
+ |
+// TODO(joi): Switch to base::Callback and remove this. |
+class PrefObserver { |
+ public: |
+ virtual void OnPreferenceChanged(PrefServiceBase* service, |
+ const std::string& pref_name) = 0; |
+}; |
+ |
+#endif // BASE_PREFS_PUBLIC_PREF_OBSERVER_H_ |