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

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

Issue 651843003: [cros-login-refactor] Move CompleteOffTheRecordLogin to UserSessionManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 6 years, 2 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
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 "chromeos/dbus/session_manager_client.h" 18 #include "chromeos/dbus/session_manager_client.h"
19 #include "chromeos/ime/input_method_manager.h" 19 #include "chromeos/ime/input_method_manager.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 25
26 class GURL;
26 class PrefRegistrySimple; 27 class PrefRegistrySimple;
27 class PrefService; 28 class PrefService;
28 class Profile; 29 class Profile;
29 30
30 namespace user_manager { 31 namespace user_manager {
31 32
32 class User; 33 class User;
33 34
34 } // namespace user_manager 35 } // namespace user_manager
35 36
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 public: 76 public:
76 // Returns UserSessionManager instance. 77 // Returns UserSessionManager instance.
77 static UserSessionManager* GetInstance(); 78 static UserSessionManager* GetInstance();
78 79
79 // Called when user is logged in to override base::DIR_HOME path. 80 // Called when user is logged in to override base::DIR_HOME path.
80 static void OverrideHomedir(); 81 static void OverrideHomedir();
81 82
82 // Registers session related preferences. 83 // Registers session related preferences.
83 static void RegisterPrefs(PrefRegistrySimple* registry); 84 static void RegisterPrefs(PrefRegistrySimple* registry);
84 85
86 // Invoked after the tmpfs is successfully mounted.
87 // Asks session_manager to restart Chrome in Guest session mode.
88 // |start_url| is an optional URL to be opened in Guest session browser.
89 void CompleteGuestSessionLogin(const GURL& start_url);
90
85 // Start user session given |user_context| and |authenticator| which holds 91 // Start user session given |user_context| and |authenticator| which holds
86 // authentication context (profile). 92 // authentication context (profile).
87 void StartSession(const UserContext& user_context, 93 void StartSession(const UserContext& user_context,
88 scoped_refptr<Authenticator> authenticator, 94 scoped_refptr<Authenticator> authenticator,
89 bool has_auth_cookies, 95 bool has_auth_cookies,
90 bool has_active_session, 96 bool has_active_session,
91 UserSessionManagerDelegate* delegate); 97 UserSessionManagerDelegate* delegate);
92 98
93 // Perform additional actions once system wide notification 99 // Perform additional actions once system wide notification
94 // "UserLoggedIn" has been sent. 100 // "UserLoggedIn" has been sent.
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 scoped_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_; 318 scoped_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_;
313 bool running_easy_unlock_key_ops_; 319 bool running_easy_unlock_key_ops_;
314 base::Closure easy_unlock_key_ops_finished_callback_; 320 base::Closure easy_unlock_key_ops_finished_callback_;
315 321
316 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); 322 DISALLOW_COPY_AND_ASSIGN(UserSessionManager);
317 }; 323 };
318 324
319 } // namespace chromeos 325 } // namespace chromeos
320 326
321 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ 327 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698