| OLD | NEW |
| 1 // Copyright (c) 2010 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 CHROME_BROWSER_PREFS_PREF_NOTIFIER_H_ | 5 #ifndef CHROME_BROWSER_PREFS_PREF_NOTIFIER_H_ |
| 6 #define CHROME_BROWSER_PREFS_PREF_NOTIFIER_H_ | 6 #define CHROME_BROWSER_PREFS_PREF_NOTIFIER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 // Delegate interface used by PrefValueStore to notify its owner about changes | 11 // Delegate interface used by PrefValueStore to notify its owner about changes |
| 12 // to the preference values. | 12 // to the preference values. |
| 13 // TODO(mnissler, danno): Move this declaration to pref_value_store.h once we've | 13 // TODO(mnissler, danno): Move this declaration to pref_value_store.h once we've |
| 14 // cleaned up all public uses of this interface. | 14 // cleaned up all public uses of this interface. |
| 15 class PrefNotifier { | 15 class PrefNotifier { |
| 16 public: | 16 public: |
| 17 virtual ~PrefNotifier() {} | 17 virtual ~PrefNotifier() {} |
| 18 | 18 |
| 19 // Sends out a change notification for the preference identified by | 19 // Sends out a change notification for the preference identified by |
| 20 // |pref_name|. | 20 // |pref_name|. |
| 21 virtual void OnPreferenceChanged(const std::string& pref_name) = 0; | 21 virtual void OnPreferenceChanged(const std::string& pref_name) = 0; |
| 22 | 22 |
| 23 // Broadcasts the intialization completed notification. | 23 // Broadcasts the intialization completed notification. |
| 24 virtual void OnInitializationCompleted() = 0; | 24 virtual void OnInitializationCompleted(bool succeeded) = 0; |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 #endif // CHROME_BROWSER_PREFS_PREF_NOTIFIER_H_ | 27 #endif // CHROME_BROWSER_PREFS_PREF_NOTIFIER_H_ |
| OLD | NEW |