| 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 |
| 106 protected: | 109 protected: |
| 107 // CloudPolicyManager: | 110 // CloudPolicyManager: |
| 108 void GetChromePolicy(PolicyMap* policy_map) override; | 111 void GetChromePolicy(PolicyMap* policy_map) override; |
| 109 | 112 |
| 110 private: | 113 private: |
| 111 // Fetches a policy token using the refresh token if available, or the | 114 // Fetches a policy token using the refresh token if available, or the |
| 112 // authentication context of the signin context, and calls back | 115 // authentication context of the signin context, and calls back |
| 113 // OnOAuth2PolicyTokenFetched when done. | 116 // OnOAuth2PolicyTokenFetched when done. |
| 114 void FetchPolicyOAuthToken(); | 117 void FetchPolicyOAuthToken(); |
| 115 | 118 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 base::Time time_init_completed_; | 176 base::Time time_init_completed_; |
| 174 base::Time time_token_available_; | 177 base::Time time_token_available_; |
| 175 base::Time time_client_registered_; | 178 base::Time time_client_registered_; |
| 176 | 179 |
| 177 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS); | 180 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS); |
| 178 }; | 181 }; |
| 179 | 182 |
| 180 } // namespace policy | 183 } // namespace policy |
| 181 | 184 |
| 182 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ | 185 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ |
| OLD | NEW |