OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHROMEOS_SETTINGS_CROS_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SETTINGS_CROS_SETTINGS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_CROS_SETTINGS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_CROS_SETTINGS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
100 ~CrosSettings(); | 100 ~CrosSettings(); |
101 | 101 |
102 // Fires system setting change notification. | 102 // Fires system setting change notification. |
103 void FireObservers(const std::string& path); | 103 void FireObservers(const std::string& path); |
104 | 104 |
105 // List of ChromeOS system settings providers. | 105 // List of ChromeOS system settings providers. |
106 std::vector<CrosSettingsProvider*> providers_; | 106 std::vector<CrosSettingsProvider*> providers_; |
107 | 107 |
108 // A map from settings names to a list of observers. Observers get fired in | 108 // A map from settings names to a list of observers. Observers get fired in |
109 // the order they are added. | 109 // the order they are added. |
110 typedef ObserverList<content::NotificationObserver, true> | 110 typedef ObserverList<content::NotificationObserver, false> |
pastarmovj
2012/11/28 09:57:16
Why did you do that? Is this observer not removed
bartfab (slow)
2012/11/28 12:30:17
As discussed offline: I need UserManager to be a C
| |
111 NotificationObserverList; | 111 NotificationObserverList; |
112 typedef base::hash_map<std::string, NotificationObserverList*> | 112 typedef base::hash_map<std::string, NotificationObserverList*> |
113 SettingsObserverMap; | 113 SettingsObserverMap; |
114 SettingsObserverMap settings_observers_; | 114 SettingsObserverMap settings_observers_; |
115 | 115 |
116 DISALLOW_COPY_AND_ASSIGN(CrosSettings); | 116 DISALLOW_COPY_AND_ASSIGN(CrosSettings); |
117 }; | 117 }; |
118 | 118 |
119 } // namespace chromeos | 119 } // namespace chromeos |
120 | 120 |
121 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_CROS_SETTINGS_H_ | 121 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_CROS_SETTINGS_H_ |
OLD | NEW |