| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 void Shutdown(); | 84 void Shutdown(); |
| 85 | 85 |
| 86 // Returns the externally visible state and corresponding error details. | 86 // Returns the externally visible state and corresponding error details. |
| 87 PolicySubsystemState state(); | 87 PolicySubsystemState state(); |
| 88 ErrorDetails error_details(); | 88 ErrorDetails error_details(); |
| 89 | 89 |
| 90 // Stops all auto-retrying error handling behavior inside the policy | 90 // Stops all auto-retrying error handling behavior inside the policy |
| 91 // subsystem. | 91 // subsystem. |
| 92 void StopAutoRetry(); | 92 void StopAutoRetry(); |
| 93 | 93 |
| 94 ConfigurationPolicyProvider* GetManagedPolicyProvider(); | |
| 95 ConfigurationPolicyProvider* GetRecommendedPolicyProvider(); | |
| 96 | |
| 97 // Registers cloud policy related prefs. | 94 // Registers cloud policy related prefs. |
| 98 static void RegisterPrefs(PrefService* pref_service); | 95 static void RegisterPrefs(PrefService* pref_service); |
| 99 | 96 |
| 100 // Schedule initialization of the policy backend service. | 97 // Schedule initialization of the policy backend service. |
| 101 void ScheduleServiceInitialization(int64 delay_milliseconds); | 98 void ScheduleServiceInitialization(int64 delay_milliseconds); |
| 102 | 99 |
| 103 private: | 100 private: |
| 104 // Updates the policy controller with a new refresh rate value. | 101 // Updates the policy controller with a new refresh rate value. |
| 105 void UpdatePolicyRefreshRate(); | 102 void UpdatePolicyRefreshRate(); |
| 106 | 103 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 129 scoped_ptr<DeviceTokenFetcher> device_token_fetcher_; | 126 scoped_ptr<DeviceTokenFetcher> device_token_fetcher_; |
| 130 scoped_ptr<CloudPolicyCacheBase> cloud_policy_cache_; | 127 scoped_ptr<CloudPolicyCacheBase> cloud_policy_cache_; |
| 131 scoped_ptr<CloudPolicyController> cloud_policy_controller_; | 128 scoped_ptr<CloudPolicyController> cloud_policy_controller_; |
| 132 | 129 |
| 133 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); | 130 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); |
| 134 }; | 131 }; |
| 135 | 132 |
| 136 } // namespace policy | 133 } // namespace policy |
| 137 | 134 |
| 138 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ | 135 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ |
| OLD | NEW |