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

Side by Side Diff: chrome/browser/chromeos/login/session/user_session_manager.h

Issue 1425093004: Revert of This CL replaces user_manager::UserID with AccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@468875--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Create-AccountID-structure-part2--user_names
Patch Set: Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SESSION_USER_SESSION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/singleton.h" 13 #include "base/memory/singleton.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "chrome/browser/chromeos/base/locale_util.h" 16 #include "chrome/browser/chromeos/base/locale_util.h"
17 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager.h" 17 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager.h"
18 #include "chrome/browser/chromeos/login/signin/token_handle_util.h" 18 #include "chrome/browser/chromeos/login/signin/token_handle_util.h"
19 #include "chromeos/dbus/session_manager_client.h" 19 #include "chromeos/dbus/session_manager_client.h"
20 #include "chromeos/login/auth/authenticator.h" 20 #include "chromeos/login/auth/authenticator.h"
21 #include "chromeos/login/auth/user_context.h" 21 #include "chromeos/login/auth/user_context.h"
22 #include "components/user_manager/user.h" 22 #include "components/user_manager/user.h"
23 #include "components/user_manager/user_manager.h" 23 #include "components/user_manager/user_manager.h"
24 #include "net/base/network_change_notifier.h" 24 #include "net/base/network_change_notifier.h"
25 #include "ui/base/ime/chromeos/input_method_manager.h" 25 #include "ui/base/ime/chromeos/input_method_manager.h"
26 26
27 class AccountId;
28 class GURL; 27 class GURL;
29 class PrefRegistrySimple; 28 class PrefRegistrySimple;
30 class PrefService; 29 class PrefService;
31 class Profile; 30 class Profile;
32 class TokenHandleFetcher; 31 class TokenHandleFetcher;
33 32
34 namespace net { 33 namespace net {
35 class URLRequestContextGetter; 34 class URLRequestContextGetter;
36 } 35 }
37 36
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 // Initializes basic preferences for newly created profile. Any other 293 // Initializes basic preferences for newly created profile. Any other
295 // early profile initialization that needs to happen before 294 // early profile initialization that needs to happen before
296 // ProfileManager::DoFinalInit() gets called is done here. 295 // ProfileManager::DoFinalInit() gets called is done here.
297 void InitProfilePreferences(Profile* profile, 296 void InitProfilePreferences(Profile* profile,
298 const UserContext& user_context); 297 const UserContext& user_context);
299 298
300 // Callback for Profile::CREATE_STATUS_INITIALIZED profile state. 299 // Callback for Profile::CREATE_STATUS_INITIALIZED profile state.
301 // Profile is created, extensions and promo resources are initialized. 300 // Profile is created, extensions and promo resources are initialized.
302 void UserProfileInitialized(Profile* profile, 301 void UserProfileInitialized(Profile* profile,
303 bool is_incognito_profile, 302 bool is_incognito_profile,
304 const AccountId& account_id); 303 const std::string& user_id);
305 304
306 // Callback to resume profile creation after transferring auth data from 305 // Callback to resume profile creation after transferring auth data from
307 // the authentication profile. 306 // the authentication profile.
308 void CompleteProfileCreateAfterAuthTransfer(Profile* profile); 307 void CompleteProfileCreateAfterAuthTransfer(Profile* profile);
309 308
310 // Finalized profile preparation. 309 // Finalized profile preparation.
311 void FinalizePrepareProfile(Profile* profile); 310 void FinalizePrepareProfile(Profile* profile);
312 311
313 // Starts out-of-box flow with the specified screen. 312 // Starts out-of-box flow with the specified screen.
314 void ActivateWizard(const std::string& screen_name); 313 void ActivateWizard(const std::string& screen_name);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 void DoBrowserLaunchInternal(Profile* profile, 361 void DoBrowserLaunchInternal(Profile* profile,
363 LoginDisplayHost* login_host, 362 LoginDisplayHost* login_host,
364 bool locale_pref_checked); 363 bool locale_pref_checked);
365 364
366 static void RunCallbackOnLocaleLoaded( 365 static void RunCallbackOnLocaleLoaded(
367 const base::Closure& callback, 366 const base::Closure& callback,
368 InputEventsBlocker* input_events_blocker, 367 InputEventsBlocker* input_events_blocker,
369 const locale_util::LanguageSwitchResult& result); 368 const locale_util::LanguageSwitchResult& result);
370 369
371 // Callback invoked when |token_handle_util_| has finished. 370 // Callback invoked when |token_handle_util_| has finished.
372 void OnTokenHandleObtained(const AccountId& account_id, bool success); 371 void OnTokenHandleObtained(const user_manager::UserID& id, bool success);
373 372
374 // Returns |true| if token handles should be used on this device. 373 // Returns |true| if token handles should be used on this device.
375 bool TokenHandlesEnabled(); 374 bool TokenHandlesEnabled();
376 375
377 void CreateTokenUtilIfMissing(); 376 void CreateTokenUtilIfMissing();
378 377
379 // Test API methods. 378 // Test API methods.
380 379
381 // Injects |user_context| that will be used to create StubAuthenticator 380 // Injects |user_context| that will be used to create StubAuthenticator
382 // instance when CreateAuthenticator() is called. 381 // instance when CreateAuthenticator() is called.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 bool waiting_for_child_account_status_; 476 bool waiting_for_child_account_status_;
478 477
479 base::WeakPtrFactory<UserSessionManager> weak_factory_; 478 base::WeakPtrFactory<UserSessionManager> weak_factory_;
480 479
481 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); 480 DISALLOW_COPY_AND_ASSIGN(UserSessionManager);
482 }; 481 };
483 482
484 } // namespace chromeos 483 } // namespace chromeos
485 484
486 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ 485 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698