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

Side by Side Diff: chrome/browser/chromeos/login/existing_user_controller.h

Issue 1138883003: Disable token handle fetching on some devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 5 years, 7 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/login/existing_user_controller.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_LOGIN_EXISTING_USER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 void OnBootstrapUserContextInitialized(bool success, 240 void OnBootstrapUserContextInitialized(bool success,
241 const UserContext& user_context); 241 const UserContext& user_context);
242 242
243 // Callback invoked when |oauth2_token_initializer_| has finished. 243 // Callback invoked when |oauth2_token_initializer_| has finished.
244 void OnOAuth2TokensFetched(bool success, const UserContext& user_context); 244 void OnOAuth2TokensFetched(bool success, const UserContext& user_context);
245 245
246 // Callback invoked when |token_handle_util_| has finished. 246 // Callback invoked when |token_handle_util_| has finished.
247 void OnTokenHandleObtained(const user_manager::UserID& id, 247 void OnTokenHandleObtained(const user_manager::UserID& id,
248 TokenHandleUtil::TokenHandleStatus status); 248 TokenHandleUtil::TokenHandleStatus status);
249 249
250 // Returns |true| if token handles should be used on this device.
251 bool TokenHandlesEnabled();
252
250 // Public session auto-login timer. 253 // Public session auto-login timer.
251 scoped_ptr<base::OneShotTimer<ExistingUserController> > auto_login_timer_; 254 scoped_ptr<base::OneShotTimer<ExistingUserController> > auto_login_timer_;
252 255
253 // Public session auto-login timeout, in milliseconds. 256 // Public session auto-login timeout, in milliseconds.
254 int public_session_auto_login_delay_; 257 int public_session_auto_login_delay_;
255 258
256 // Username for public session auto-login. 259 // Username for public session auto-login.
257 std::string public_session_auto_login_username_; 260 std::string public_session_auto_login_username_;
258 261
259 // Used to execute login operations. 262 // Used to execute login operations.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 344
342 // Factory of callbacks. 345 // Factory of callbacks.
343 base::WeakPtrFactory<ExistingUserController> weak_factory_; 346 base::WeakPtrFactory<ExistingUserController> weak_factory_;
344 347
345 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); 348 DISALLOW_COPY_AND_ASSIGN(ExistingUserController);
346 }; 349 };
347 350
348 } // namespace chromeos 351 } // namespace chromeos
349 352
350 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 353 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698