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

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

Issue 656283002: [session_manager] Move user session initialization code out of ExistingUserController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update FakeLoginUtils to launch browser 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 (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_LOGIN_UTILS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 11 matching lines...) Expand all
22 class Authenticator; 22 class Authenticator;
23 class LoginDisplayHost; 23 class LoginDisplayHost;
24 class AuthStatusConsumer; 24 class AuthStatusConsumer;
25 class UserContext; 25 class UserContext;
26 26
27 class LoginUtils { 27 class LoginUtils {
28 public: 28 public:
29 class Delegate { 29 class Delegate {
30 public: 30 public:
31 // Called after profile is loaded and prepared for the session. 31 // Called after profile is loaded and prepared for the session.
32 virtual void OnProfilePrepared(Profile* profile) = 0; 32 // |browser_launched| will be true is browser has been launched, otherwise
33 // it will return false and client is responsible on launching browser.
34 virtual void OnProfilePrepared(Profile* profile,
35 bool browser_launched) = 0;
33 36
34 #if defined(ENABLE_RLZ) 37 #if defined(ENABLE_RLZ)
35 // Called after post-profile RLZ initialization. 38 // Called after post-profile RLZ initialization.
36 virtual void OnRlzInitialized() {} 39 virtual void OnRlzInitialized() {}
37 #endif 40 #endif
38 protected: 41 protected:
39 virtual ~Delegate() {} 42 virtual ~Delegate() {}
40 }; 43 };
41 44
42 // Get LoginUtils singleton object. If it was not set before, new default 45 // Get LoginUtils singleton object. If it was not set before, new default
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Might not return if restart is possible right now. 94 // Might not return if restart is possible right now.
92 // Returns true if restart was scheduled. 95 // Returns true if restart was scheduled.
93 // Returns false if no restart is needed, 96 // Returns false if no restart is needed,
94 virtual bool RestartToApplyPerSessionFlagsIfNeed(Profile* profile, 97 virtual bool RestartToApplyPerSessionFlagsIfNeed(Profile* profile,
95 bool early_restart) = 0; 98 bool early_restart) = 0;
96 }; 99 };
97 100
98 } // namespace chromeos 101 } // namespace chromeos
99 102
100 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ 103 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698