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

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

Issue 148843002: Make an online wildcard login check for enterprise devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix failing test. Created 6 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 | Annotate | Revision Log
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 bool GetInteger(const std::string& path, int* out_value) const; 79 bool GetInteger(const std::string& path, int* out_value) const;
80 bool GetDouble(const std::string& path, double* out_value) const; 80 bool GetDouble(const std::string& path, double* out_value) const;
81 bool GetString(const std::string& path, std::string* out_value) const; 81 bool GetString(const std::string& path, std::string* out_value) const;
82 bool GetList(const std::string& path, 82 bool GetList(const std::string& path,
83 const base::ListValue** out_value) const; 83 const base::ListValue** out_value) const;
84 bool GetDictionary(const std::string& path, 84 bool GetDictionary(const std::string& path,
85 const base::DictionaryValue** out_value) const; 85 const base::DictionaryValue** out_value) const;
86 86
87 // Helper function for the whitelist op. Implemented here because we will need 87 // Helper function for the whitelist op. Implemented here because we will need
88 // this in a few places. The functions searches for |email| in the pref |path| 88 // this in a few places. The functions searches for |email| in the pref |path|
89 // It respects whitelists so foo@bar.baz will match *@bar.baz too. 89 // It respects whitelists so foo@bar.baz will match *@bar.baz too. If the
90 bool FindEmailInList(const std::string& path, const std::string& email) const; 90 // match was via a wildcard, |wildcard_match| is set to true.
91 bool FindEmailInList(const std::string& path,
92 const std::string& email,
93 bool* wildcard_match) const;
91 94
92 // Adding/removing of providers. 95 // Adding/removing of providers.
93 bool AddSettingsProvider(CrosSettingsProvider* provider); 96 bool AddSettingsProvider(CrosSettingsProvider* provider);
94 bool RemoveSettingsProvider(CrosSettingsProvider* provider); 97 bool RemoveSettingsProvider(CrosSettingsProvider* provider);
95 98
96 // Add an observer Callback for changes for the given |path|. 99 // Add an observer Callback for changes for the given |path|.
97 typedef base::CallbackList<void(void)>::Subscription ObserverSubscription; 100 typedef base::CallbackList<void(void)>::Subscription ObserverSubscription;
98 scoped_ptr<ObserverSubscription> AddSettingsObserver( 101 scoped_ptr<ObserverSubscription> AddSettingsObserver(
99 const std::string& path, 102 const std::string& path,
100 const base::Closure& callback); 103 const base::Closure& callback);
(...skipping 26 matching lines...) Expand all
127 ScopedTestCrosSettings(); 130 ScopedTestCrosSettings();
128 ~ScopedTestCrosSettings(); 131 ~ScopedTestCrosSettings();
129 132
130 private: 133 private:
131 DISALLOW_COPY_AND_ASSIGN(ScopedTestCrosSettings); 134 DISALLOW_COPY_AND_ASSIGN(ScopedTestCrosSettings);
132 }; 135 };
133 136
134 } // namespace chromeos 137 } // namespace chromeos
135 138
136 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_CROS_SETTINGS_H_ 139 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_CROS_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698