| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CLOUD_POLICY_SUBSYSTEM_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ |
| 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/prefs/pref_member.h" | 10 #include "chrome/browser/prefs/pref_member.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 void Shutdown(); | 87 void Shutdown(); |
| 88 | 88 |
| 89 // Returns the externally visible state and corresponding error details. | 89 // Returns the externally visible state and corresponding error details. |
| 90 PolicySubsystemState state(); | 90 PolicySubsystemState state(); |
| 91 ErrorDetails error_details(); | 91 ErrorDetails error_details(); |
| 92 | 92 |
| 93 // Stops all auto-retrying error handling behavior inside the policy | 93 // Stops all auto-retrying error handling behavior inside the policy |
| 94 // subsystem. | 94 // subsystem. |
| 95 void StopAutoRetry(); | 95 void StopAutoRetry(); |
| 96 | 96 |
| 97 ConfigurationPolicyProvider* GetManagedPolicyProvider(); | |
| 98 ConfigurationPolicyProvider* GetRecommendedPolicyProvider(); | |
| 99 | |
| 100 // Registers cloud policy related prefs. | 97 // Registers cloud policy related prefs. |
| 101 static void RegisterPrefs(PrefService* pref_service); | 98 static void RegisterPrefs(PrefService* pref_service); |
| 102 | 99 |
| 103 // Schedule initialization of the policy backend service. | 100 // Schedule initialization of the policy backend service. |
| 104 void ScheduleServiceInitialization(int64 delay_milliseconds); | 101 void ScheduleServiceInitialization(int64 delay_milliseconds); |
| 105 | 102 |
| 106 private: | 103 private: |
| 107 friend class TestingCloudPolicySubsystem; | 104 friend class TestingCloudPolicySubsystem; |
| 108 | 105 |
| 109 CloudPolicySubsystem(); | 106 CloudPolicySubsystem(); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 scoped_ptr<CloudPolicyController> cloud_policy_controller_; | 142 scoped_ptr<CloudPolicyController> cloud_policy_controller_; |
| 146 | 143 |
| 147 std::string device_management_url_; | 144 std::string device_management_url_; |
| 148 | 145 |
| 149 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); | 146 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); |
| 150 }; | 147 }; |
| 151 | 148 |
| 152 } // namespace policy | 149 } // namespace policy |
| 153 | 150 |
| 154 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ | 151 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ |
| OLD | NEW |