| 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_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_POLICY_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_CONTROLLER_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 CloudPolicyController(DeviceManagementService* service, | 30 CloudPolicyController(DeviceManagementService* service, |
| 31 CloudPolicyCacheBase* cache, | 31 CloudPolicyCacheBase* cache, |
| 32 DeviceTokenFetcher* token_fetcher, | 32 DeviceTokenFetcher* token_fetcher, |
| 33 CloudPolicyDataStore* data_store, | 33 CloudPolicyDataStore* data_store, |
| 34 PolicyNotifier* notifier); | 34 PolicyNotifier* notifier); |
| 35 virtual ~CloudPolicyController(); | 35 virtual ~CloudPolicyController(); |
| 36 | 36 |
| 37 // Sets the refresh rate at which to re-fetch policy information. | 37 // Sets the refresh rate at which to re-fetch policy information. |
| 38 void SetRefreshRate(int64 refresh_rate_milliseconds); | 38 void SetRefreshRate(int64 refresh_rate_milliseconds); |
| 39 | 39 |
| 40 // Triggers an immediate retry of of the current operation. | 40 // Triggers an immediate retry of the current operation. |
| 41 void Retry(); | 41 void Retry(); |
| 42 | 42 |
| 43 // Stops any pending activity and resets the controller to unenrolled state. | 43 // Stops any pending activity and resets the controller to unenrolled state. |
| 44 void Reset(); | 44 void Reset(); |
| 45 | 45 |
| 46 // DevicePolicyResponseDelegate implementation: | 46 // DevicePolicyResponseDelegate implementation: |
| 47 virtual void HandlePolicyResponse( | 47 virtual void HandlePolicyResponse( |
| 48 const em::DevicePolicyResponse& response) OVERRIDE; | 48 const em::DevicePolicyResponse& response) OVERRIDE; |
| 49 virtual void OnError(DeviceManagementBackend::ErrorCode code) OVERRIDE; | 49 virtual void OnError(DeviceManagementBackend::ErrorCode code) OVERRIDE; |
| 50 | 50 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 int64 effective_policy_refresh_error_delay_ms_; | 121 int64 effective_policy_refresh_error_delay_ms_; |
| 122 | 122 |
| 123 scoped_ptr<DelayedWorkScheduler> scheduler_; | 123 scoped_ptr<DelayedWorkScheduler> scheduler_; |
| 124 | 124 |
| 125 DISALLOW_COPY_AND_ASSIGN(CloudPolicyController); | 125 DISALLOW_COPY_AND_ASSIGN(CloudPolicyController); |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 } // namespace policy | 128 } // namespace policy |
| 129 | 129 |
| 130 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_CONTROLLER_H_ | 130 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_CONTROLLER_H_ |
| OLD | NEW |