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_POLICY_CONFIGURATION_POLICY_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ |
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ | 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
282 // Returns whether the default search URL is set and valid. On success, both | 282 // Returns whether the default search URL is set and valid. On success, both |
283 // outparams (which must be non-NULL) are filled with the search URL. | 283 // outparams (which must be non-NULL) are filled with the search URL. |
284 bool DefaultSearchURLIsValid(const PolicyMap& policies, | 284 bool DefaultSearchURLIsValid(const PolicyMap& policies, |
285 const Value** url_value, | 285 const Value** url_value, |
286 std::string* url_string); | 286 std::string* url_string); |
287 | 287 |
288 // Make sure that the |path| if present in |prefs_|. If not, set it to | 288 // Make sure that the |path| if present in |prefs_|. If not, set it to |
289 // a blank string. | 289 // a blank string. |
290 void EnsureStringPrefExists(PrefValueMap* prefs, const std::string& path); | 290 void EnsureStringPrefExists(PrefValueMap* prefs, const std::string& path); |
291 | 291 |
292 // Make sure that the |path| if present in |prefs_| and is a ListValue. If | |
Joao da Silva
2012/09/28 11:46:10
typo: *is present in |prefs_| ... Same in the comm
beaudoin
2012/10/02 17:43:29
Done.
| |
293 // not, set it to an empty list. | |
294 void EnsureListPrefExists(PrefValueMap* prefs, const std::string& path); | |
295 | |
292 // The ConfigurationPolicyHandler handlers for each default search policy. | 296 // The ConfigurationPolicyHandler handlers for each default search policy. |
293 std::vector<ConfigurationPolicyHandler*> handlers_; | 297 std::vector<ConfigurationPolicyHandler*> handlers_; |
294 | 298 |
295 DISALLOW_COPY_AND_ASSIGN(DefaultSearchPolicyHandler); | 299 DISALLOW_COPY_AND_ASSIGN(DefaultSearchPolicyHandler); |
296 }; | 300 }; |
297 | 301 |
298 // ConfigurationPolicyHandler for the proxy policies. | 302 // ConfigurationPolicyHandler for the proxy policies. |
299 class ProxyPolicyHandler : public ConfigurationPolicyHandler { | 303 class ProxyPolicyHandler : public ConfigurationPolicyHandler { |
300 public: | 304 public: |
301 // Constants for the "Proxy Server Mode" defined in the policies. | 305 // Constants for the "Proxy Server Mode" defined in the policies. |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
411 virtual void ApplyPolicySettings(const PolicyMap& policies, | 415 virtual void ApplyPolicySettings(const PolicyMap& policies, |
412 PrefValueMap* prefs) OVERRIDE; | 416 PrefValueMap* prefs) OVERRIDE; |
413 | 417 |
414 private: | 418 private: |
415 DISALLOW_COPY_AND_ASSIGN(DisabledPluginsByVersionPolicyHandler); | 419 DISALLOW_COPY_AND_ASSIGN(DisabledPluginsByVersionPolicyHandler); |
416 }; | 420 }; |
417 | 421 |
418 } // namespace policy | 422 } // namespace policy |
419 | 423 |
420 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ | 424 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ |
OLD | NEW |