| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void OnInitializationCompleted(CloudPolicyService* service) override; | 96 void OnInitializationCompleted(CloudPolicyService* service) override; |
| 97 | 97 |
| 98 // CloudPolicyClient::Observer: | 98 // CloudPolicyClient::Observer: |
| 99 void OnPolicyFetched(CloudPolicyClient* client) override; | 99 void OnPolicyFetched(CloudPolicyClient* client) override; |
| 100 void OnRegistrationStateChanged(CloudPolicyClient* client) override; | 100 void OnRegistrationStateChanged(CloudPolicyClient* client) override; |
| 101 void OnClientError(CloudPolicyClient* client) override; | 101 void OnClientError(CloudPolicyClient* client) override; |
| 102 | 102 |
| 103 // ComponentCloudPolicyService::Delegate: | 103 // ComponentCloudPolicyService::Delegate: |
| 104 void OnComponentCloudPolicyUpdated() override; | 104 void OnComponentCloudPolicyUpdated() override; |
| 105 | 105 |
| 106 // CloudPolicyManager: | |
| 107 void OnStoreLoaded(CloudPolicyStore* cloud_policy_store) override; | |
| 108 | |
| 109 protected: | 106 protected: |
| 110 // CloudPolicyManager: | 107 // CloudPolicyManager: |
| 111 void GetChromePolicy(PolicyMap* policy_map) override; | 108 void GetChromePolicy(PolicyMap* policy_map) override; |
| 112 | 109 |
| 113 private: | 110 private: |
| 114 // Fetches a policy token using the refresh token if available, or the | 111 // Fetches a policy token using the refresh token if available, or the |
| 115 // authentication context of the signin context, and calls back | 112 // authentication context of the signin context, and calls back |
| 116 // OnOAuth2PolicyTokenFetched when done. | 113 // OnOAuth2PolicyTokenFetched when done. |
| 117 void FetchPolicyOAuthToken(); | 114 void FetchPolicyOAuthToken(); |
| 118 | 115 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 base::Time time_init_completed_; | 173 base::Time time_init_completed_; |
| 177 base::Time time_token_available_; | 174 base::Time time_token_available_; |
| 178 base::Time time_client_registered_; | 175 base::Time time_client_registered_; |
| 179 | 176 |
| 180 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS); | 177 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS); |
| 181 }; | 178 }; |
| 182 | 179 |
| 183 } // namespace policy | 180 } // namespace policy |
| 184 | 181 |
| 185 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ | 182 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ |
| OLD | NEW |