| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DEVICE_MANAGEMENT_POLICY_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_POLICY_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_POLICY_PROVIDER_H_ | 6 #define CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_POLICY_PROVIDER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 // ConfigurationPolicyProvider implementation: | 42 // ConfigurationPolicyProvider implementation: |
| 43 virtual bool Provide(ConfigurationPolicyStoreInterface* store); | 43 virtual bool Provide(ConfigurationPolicyStoreInterface* store); |
| 44 | 44 |
| 45 // DevicePolicyResponseDelegate implementation: | 45 // DevicePolicyResponseDelegate implementation: |
| 46 virtual void HandlePolicyResponse( | 46 virtual void HandlePolicyResponse( |
| 47 const em::DevicePolicyResponse& response); | 47 const em::DevicePolicyResponse& response); |
| 48 virtual void OnError(DeviceManagementBackend::ErrorCode code); | 48 virtual void OnError(DeviceManagementBackend::ErrorCode code); |
| 49 | 49 |
| 50 // DeviceTokenFetcher::Observer implementation: | 50 // DeviceTokenFetcher::Observer implementation: |
| 51 void OnTokenSuccess(); | 51 virtual void OnTokenSuccess(); |
| 52 void OnTokenError(); | 52 virtual void OnTokenError(); |
| 53 void OnNotManaged(); | 53 virtual void OnNotManaged(); |
| 54 | 54 |
| 55 // True if a policy request has been sent to the device management backend | 55 // True if a policy request has been sent to the device management backend |
| 56 // server and no response or error has yet been received. | 56 // server and no response or error has yet been received. |
| 57 bool IsPolicyRequestPending() const { return policy_request_pending_; } | 57 bool IsPolicyRequestPending() const { return policy_request_pending_; } |
| 58 | 58 |
| 59 bool waiting_for_initial_policies() const { | 59 bool waiting_for_initial_policies() const { |
| 60 return waiting_for_initial_policies_; | 60 return waiting_for_initial_policies_; |
| 61 } | 61 } |
| 62 | 62 |
| 63 // Tells the provider that the passed in token service reference is about to | 63 // Tells the provider that the passed in token service reference is about to |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 int64 policy_refresh_error_delay_ms_; | 144 int64 policy_refresh_error_delay_ms_; |
| 145 int64 token_fetch_error_delay_ms_; | 145 int64 token_fetch_error_delay_ms_; |
| 146 int64 unmanaged_device_refresh_rate_ms_; | 146 int64 unmanaged_device_refresh_rate_ms_; |
| 147 | 147 |
| 148 DISALLOW_COPY_AND_ASSIGN(DeviceManagementPolicyProvider); | 148 DISALLOW_COPY_AND_ASSIGN(DeviceManagementPolicyProvider); |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 } // namespace policy | 151 } // namespace policy |
| 152 | 152 |
| 153 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_POLICY_PROVIDER_H_ | 153 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_POLICY_PROVIDER_H_ |
| OLD | NEW |