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

Side by Side Diff: components/prefs/pref_notifier.h

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « components/prefs/pref_member.h ('k') | components/prefs/pref_notifier_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_PREFS_PREF_NOTIFIER_H_ 5 #ifndef BASE_PREFS_PREF_NOTIFIER_H_
6 #define COMPONENTS_PREFS_PREF_NOTIFIER_H_ 6 #define BASE_PREFS_PREF_NOTIFIER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 // Delegate interface used by PrefValueStore to notify its owner about changes 10 // Delegate interface used by PrefValueStore to notify its owner about changes
11 // to the preference values. 11 // to the preference values.
12 // TODO(mnissler, danno): Move this declaration to pref_value_store.h once we've 12 // TODO(mnissler, danno): Move this declaration to pref_value_store.h once we've
13 // cleaned up all public uses of this interface. 13 // cleaned up all public uses of this interface.
14 class PrefNotifier { 14 class PrefNotifier {
15 public: 15 public:
16 virtual ~PrefNotifier() {} 16 virtual ~PrefNotifier() {}
17 17
18 // Sends out a change notification for the preference identified by 18 // Sends out a change notification for the preference identified by
19 // |pref_name|. 19 // |pref_name|.
20 virtual void OnPreferenceChanged(const std::string& pref_name) = 0; 20 virtual void OnPreferenceChanged(const std::string& pref_name) = 0;
21 21
22 // Broadcasts the intialization completed notification. 22 // Broadcasts the intialization completed notification.
23 virtual void OnInitializationCompleted(bool succeeded) = 0; 23 virtual void OnInitializationCompleted(bool succeeded) = 0;
24 }; 24 };
25 25
26 #endif // COMPONENTS_PREFS_PREF_NOTIFIER_H_ 26 #endif // BASE_PREFS_PREF_NOTIFIER_H_
OLDNEW
« no previous file with comments | « components/prefs/pref_member.h ('k') | components/prefs/pref_notifier_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698