| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 // CloudPolicyService::Observer: | 90 // CloudPolicyService::Observer: |
| 91 virtual void OnInitializationCompleted(CloudPolicyService* service) OVERRIDE; | 91 virtual void OnInitializationCompleted(CloudPolicyService* service) OVERRIDE; |
| 92 | 92 |
| 93 // CloudPolicyClient::Observer: | 93 // CloudPolicyClient::Observer: |
| 94 virtual void OnPolicyFetched(CloudPolicyClient* client) OVERRIDE; | 94 virtual void OnPolicyFetched(CloudPolicyClient* client) OVERRIDE; |
| 95 virtual void OnRegistrationStateChanged(CloudPolicyClient* client) OVERRIDE; | 95 virtual void OnRegistrationStateChanged(CloudPolicyClient* client) OVERRIDE; |
| 96 virtual void OnClientError(CloudPolicyClient* client) OVERRIDE; | 96 virtual void OnClientError(CloudPolicyClient* client) OVERRIDE; |
| 97 | 97 |
| 98 // ComponentCloudPolicyService::Delegate: | 98 // ComponentCloudPolicyService::Delegate: |
| 99 virtual void OnComponentCloudPolicyRefreshNeeded() OVERRIDE; | |
| 100 virtual void OnComponentCloudPolicyUpdated() OVERRIDE; | 99 virtual void OnComponentCloudPolicyUpdated() OVERRIDE; |
| 101 | 100 |
| 102 private: | 101 private: |
| 103 void CreateComponentCloudPolicyService( | 102 void CreateComponentCloudPolicyService( |
| 104 const scoped_refptr<net::URLRequestContextGetter>& request_context); | 103 const scoped_refptr<net::URLRequestContextGetter>& request_context); |
| 105 | 104 |
| 106 // Fetches a policy token using the authentication context of the signin | 105 // Fetches a policy token using the authentication context of the signin |
| 107 // Profile, and calls back to OnOAuth2PolicyTokenFetched when done. | 106 // Profile, and calls back to OnOAuth2PolicyTokenFetched when done. |
| 108 void FetchPolicyOAuthTokenUsingSigninProfile(); | 107 void FetchPolicyOAuthTokenUsingSigninProfile(); |
| 109 | 108 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 base::Time time_init_completed_; | 160 base::Time time_init_completed_; |
| 162 base::Time time_token_available_; | 161 base::Time time_token_available_; |
| 163 base::Time time_client_registered_; | 162 base::Time time_client_registered_; |
| 164 | 163 |
| 165 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS); | 164 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS); |
| 166 }; | 165 }; |
| 167 | 166 |
| 168 } // namespace policy | 167 } // namespace policy |
| 169 | 168 |
| 170 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ | 169 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ |
| OLD | NEW |