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

Side by Side Diff: chrome/browser/chromeos/settings/cros_settings.h

Issue 2824283003: Fix autoupdate_EndToEndTest on veyron_rialto (Closed)
Patch Set: done Created 3 years, 7 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
OLDNEW
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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 bool AddSettingsProvider(std::unique_ptr<CrosSettingsProvider> provider); 110 bool AddSettingsProvider(std::unique_ptr<CrosSettingsProvider> provider);
111 std::unique_ptr<CrosSettingsProvider> RemoveSettingsProvider( 111 std::unique_ptr<CrosSettingsProvider> RemoveSettingsProvider(
112 CrosSettingsProvider* provider); 112 CrosSettingsProvider* provider);
113 113
114 // Add an observer Callback for changes for the given |path|. 114 // Add an observer Callback for changes for the given |path|.
115 using ObserverSubscription = base::CallbackList<void(void)>::Subscription; 115 using ObserverSubscription = base::CallbackList<void(void)>::Subscription;
116 std::unique_ptr<ObserverSubscription> AddSettingsObserver( 116 std::unique_ptr<ObserverSubscription> AddSettingsObserver(
117 const std::string& path, 117 const std::string& path,
118 const base::Closure& callback) WARN_UNUSED_RESULT; 118 const base::Closure& callback) WARN_UNUSED_RESULT;
119 119
120 // Clears all the system setting change callbacks for the specified path.
121 void ClearSettingsObservers(const std::string& path);
122
120 // Returns the provider that handles settings with the |path| or prefix. 123 // Returns the provider that handles settings with the |path| or prefix.
121 CrosSettingsProvider* GetProvider(const std::string& path) const; 124 CrosSettingsProvider* GetProvider(const std::string& path) const;
122 125
123 private: 126 private:
124 friend class CrosSettingsTest; 127 friend class CrosSettingsTest;
125 128
126 // Fires system setting change callback. 129 // Fires system setting change callback.
127 void FireObservers(const std::string& path); 130 void FireObservers(const std::string& path);
128 131
129 // List of ChromeOS system settings providers. 132 // List of ChromeOS system settings providers.
(...skipping 14 matching lines...) Expand all
144 ScopedTestCrosSettings(); 147 ScopedTestCrosSettings();
145 ~ScopedTestCrosSettings(); 148 ~ScopedTestCrosSettings();
146 149
147 private: 150 private:
148 DISALLOW_COPY_AND_ASSIGN(ScopedTestCrosSettings); 151 DISALLOW_COPY_AND_ASSIGN(ScopedTestCrosSettings);
149 }; 152 };
150 153
151 } // namespace chromeos 154 } // namespace chromeos
152 155
153 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_CROS_SETTINGS_H_ 156 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_CROS_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698