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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // Called once the policy access token is available, and starts the | 108 // Called once the policy access token is available, and starts the |
109 // registration with the policy server if the token was successfully fetched. | 109 // registration with the policy server if the token was successfully fetched. |
110 void OnOAuth2PolicyTokenFetched(const std::string& policy_token, | 110 void OnOAuth2PolicyTokenFetched(const std::string& policy_token, |
111 const GoogleServiceAuthError& error); | 111 const GoogleServiceAuthError& error); |
112 | 112 |
113 // Completion handler for the explicit policy fetch triggered on startup in | 113 // Completion handler for the explicit policy fetch triggered on startup in |
114 // case |wait_for_policy_fetch_| is true. |success| is true if the fetch was | 114 // case |wait_for_policy_fetch_| is true. |success| is true if the fetch was |
115 // successful. | 115 // successful. |
116 void OnInitialPolicyFetchComplete(bool success); | 116 void OnInitialPolicyFetchComplete(bool success); |
117 | 117 |
| 118 // Called when |policy_fetch_timeout_| times out, to cancel the blocking |
| 119 // wait for the initial policy fetch. |
| 120 void OnBlockingFetchTimeout(); |
| 121 |
118 // Cancels waiting for the policy fetch and flags the | 122 // Cancels waiting for the policy fetch and flags the |
119 // ConfigurationPolicyProvider ready (assuming all other initialization tasks | 123 // ConfigurationPolicyProvider ready (assuming all other initialization tasks |
120 // have completed). | 124 // have completed). |
121 void CancelWaitForPolicyFetch(); | 125 void CancelWaitForPolicyFetch(); |
122 | 126 |
123 void StartRefreshSchedulerIfReady(); | 127 void StartRefreshSchedulerIfReady(); |
124 | 128 |
125 // Owns the store, note that CloudPolicyManager just keeps a plain pointer. | 129 // Owns the store, note that CloudPolicyManager just keeps a plain pointer. |
126 scoped_ptr<CloudPolicyStore> store_; | 130 scoped_ptr<CloudPolicyStore> store_; |
127 | 131 |
(...skipping 27 matching lines...) Expand all Loading... |
155 base::Time time_init_completed_; | 159 base::Time time_init_completed_; |
156 base::Time time_token_available_; | 160 base::Time time_token_available_; |
157 base::Time time_client_registered_; | 161 base::Time time_client_registered_; |
158 | 162 |
159 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS); | 163 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS); |
160 }; | 164 }; |
161 | 165 |
162 } // namespace policy | 166 } // namespace policy |
163 | 167 |
164 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ | 168 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_CLOUD_POLICY_MANAGER_CHROMEOS_H_ |
OLD | NEW |