| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 virtual bool CheckPolicySettings(const PolicyMap& policies, | 300 virtual bool CheckPolicySettings(const PolicyMap& policies, |
| 301 PolicyErrorMap* errors) OVERRIDE; | 301 PolicyErrorMap* errors) OVERRIDE; |
| 302 virtual void ApplyPolicySettings(const PolicyMap& policies, | 302 virtual void ApplyPolicySettings(const PolicyMap& policies, |
| 303 PrefValueMap* prefs) OVERRIDE; | 303 PrefValueMap* prefs) OVERRIDE; |
| 304 | 304 |
| 305 private: | 305 private: |
| 306 DISALLOW_COPY_AND_ASSIGN(JavascriptPolicyHandler); | 306 DISALLOW_COPY_AND_ASSIGN(JavascriptPolicyHandler); |
| 307 }; | 307 }; |
| 308 | 308 |
| 309 // Handles RestoreOnStartup policy. | 309 // Handles RestoreOnStartup policy. |
| 310 class RestoreOnStartupPolicyHandler : public SimplePolicyHandler { | 310 class RestoreOnStartupPolicyHandler : public TypeCheckingPolicyHandler { |
| 311 public: | 311 public: |
| 312 RestoreOnStartupPolicyHandler(); | 312 RestoreOnStartupPolicyHandler(); |
| 313 virtual ~RestoreOnStartupPolicyHandler(); | 313 virtual ~RestoreOnStartupPolicyHandler(); |
| 314 | 314 |
| 315 // ConfigurationPolicyHandler methods: | 315 // ConfigurationPolicyHandler methods: |
| 316 virtual bool CheckPolicySettings(const PolicyMap& policies, | 316 virtual bool CheckPolicySettings(const PolicyMap& policies, |
| 317 PolicyErrorMap* errors) OVERRIDE; | 317 PolicyErrorMap* errors) OVERRIDE; |
| 318 virtual void ApplyPolicySettings(const PolicyMap& policies, |
| 319 PrefValueMap* prefs) OVERRIDE; |
| 318 | 320 |
| 319 private: | 321 private: |
| 322 void ApplyPolicySettingsFromHomePage(const PolicyMap& policies, |
| 323 PrefValueMap* prefs); |
| 324 |
| 320 DISALLOW_COPY_AND_ASSIGN(RestoreOnStartupPolicyHandler); | 325 DISALLOW_COPY_AND_ASSIGN(RestoreOnStartupPolicyHandler); |
| 321 }; | 326 }; |
| 322 | 327 |
| 323 } // namespace policy | 328 } // namespace policy |
| 324 | 329 |
| 325 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ | 330 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ |
| OLD | NEW |