Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h

Issue 519643002: Default values for enterprise users are supported. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug fixed. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698