| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // Username for the wildcard login check if applicable, empty otherwise. | 143 // Username for the wildcard login check if applicable, empty otherwise. |
| 144 std::string wildcard_username_; | 144 std::string wildcard_username_; |
| 145 | 145 |
| 146 // Path where policy for components will be cached. | 146 // Path where policy for components will be cached. |
| 147 base::FilePath component_policy_cache_path_; | 147 base::FilePath component_policy_cache_path_; |
| 148 | 148 |
| 149 // Whether to wait for a policy fetch to complete before reporting | 149 // Whether to wait for a policy fetch to complete before reporting |
| 150 // IsInitializationComplete(). | 150 // IsInitializationComplete(). |
| 151 bool wait_for_policy_fetch_; | 151 bool wait_for_policy_fetch_; |
| 152 | 152 |
| 153 // A timer that puts a hard limit on the maximum time to wait for the intial | 153 // A timer that puts a hard limit on the maximum time to wait for the initial |
| 154 // policy fetch. | 154 // policy fetch. |
| 155 base::Timer policy_fetch_timeout_; | 155 base::Timer policy_fetch_timeout_; |
| 156 | 156 |
| 157 // The pref service to pass to the refresh scheduler on initialization. | 157 // The pref service to pass to the refresh scheduler on initialization. |
| 158 PrefService* local_state_; | 158 PrefService* local_state_; |
| 159 | 159 |
| 160 // Used to fetch the policy OAuth token, when necessary. This object holds | 160 // Used to fetch the policy OAuth token, when necessary. This object holds |
| 161 // a callback with an unretained reference to the manager, when it exists. | 161 // a callback with an unretained reference to the manager, when it exists. |
| 162 scoped_ptr<PolicyOAuth2TokenFetcher> token_fetcher_; | 162 scoped_ptr<PolicyOAuth2TokenFetcher> token_fetcher_; |
| 163 | 163 |
| 164 // Keeps alive the wildcard checker while its running. | 164 // Keeps alive the wildcard checker while its running. |
| 165 scoped_ptr<WildcardLoginChecker> wildcard_login_checker_; | 165 scoped_ptr<WildcardLoginChecker> wildcard_login_checker_; |
| 166 | 166 |
| 167 // The access token passed to OnAccessTokenAvailable. It is stored here so | 167 // The access token passed to OnAccessTokenAvailable. It is stored here so |
| 168 // that it can be used if OnInitializationCompleted is called later. | 168 // that it can be used if OnInitializationCompleted is called later. |
| 169 std::string access_token_; | 169 std::string access_token_; |
| 170 | 170 |
| 171 // Timestamps for collecting timing UMA stats. | 171 // Timestamps for collecting timing UMA stats. |
| 172 base::Time time_init_started_; | 172 base::Time time_init_started_; |
| 173 base::Time time_init_completed_; | 173 base::Time time_init_completed_; |
| 174 base::Time time_token_available_; | 174 base::Time time_token_available_; |
| 175 base::Time time_client_registered_; | 175 base::Time time_client_registered_; |
| 176 | 176 |
| 177 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS); | 177 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerChromeOS); |
| 178 }; | 178 }; |
| 179 | 179 |
| 180 } // namespace policy | 180 } // namespace policy |
| 181 | 181 |
| 182 #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 |