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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 void Shutdown(); | 85 void Shutdown(); |
86 | 86 |
87 // Returns the externally visible state and corresponding error details. | 87 // Returns the externally visible state and corresponding error details. |
88 PolicySubsystemState state(); | 88 PolicySubsystemState state(); |
89 ErrorDetails error_details(); | 89 ErrorDetails error_details(); |
90 | 90 |
91 // Stops all auto-retrying error handling behavior inside the policy | 91 // Stops all auto-retrying error handling behavior inside the policy |
92 // subsystem. | 92 // subsystem. |
93 void StopAutoRetry(); | 93 void StopAutoRetry(); |
94 | 94 |
95 ConfigurationPolicyProvider* GetManagedPolicyProvider(); | |
96 ConfigurationPolicyProvider* GetRecommendedPolicyProvider(); | |
97 | |
98 // Registers cloud policy related prefs. | 95 // Registers cloud policy related prefs. |
99 static void RegisterPrefs(PrefService* pref_service); | 96 static void RegisterPrefs(PrefService* pref_service); |
100 | 97 |
101 // Schedule initialization of the policy backend service. | 98 // Schedule initialization of the policy backend service. |
102 void ScheduleServiceInitialization(int64 delay_milliseconds); | 99 void ScheduleServiceInitialization(int64 delay_milliseconds); |
103 | 100 |
104 private: | 101 private: |
105 // Updates the policy controller with a new refresh rate value. | 102 // Updates the policy controller with a new refresh rate value. |
106 void UpdatePolicyRefreshRate(int64 refresh_rate); | 103 void UpdatePolicyRefreshRate(int64 refresh_rate); |
107 | 104 |
(...skipping 21 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 |