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

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: move first run session init and browser launch out of EUC 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 virtual void OnProfilePrepared(Profile* profile,
33 bool browser_launched) = 0;
Denis Kuznetsov (DE-MUC) 2014/10/16 12:21:42 Please add comment about parameter. It is not clea
Nikita (slow) 2014/10/17 13:17:41 Done.
33 34
34 #if defined(ENABLE_RLZ) 35 #if defined(ENABLE_RLZ)
35 // Called after post-profile RLZ initialization. 36 // Called after post-profile RLZ initialization.
36 virtual void OnRlzInitialized() {} 37 virtual void OnRlzInitialized() {}
37 #endif 38 #endif
38 protected: 39 protected:
39 virtual ~Delegate() {} 40 virtual ~Delegate() {}
40 }; 41 };
41 42
42 // Get LoginUtils singleton object. If it was not set before, new default 43 // 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. 92 // Might not return if restart is possible right now.
92 // Returns true if restart was scheduled. 93 // Returns true if restart was scheduled.
93 // Returns false if no restart is needed, 94 // Returns false if no restart is needed,
94 virtual bool RestartToApplyPerSessionFlagsIfNeed(Profile* profile, 95 virtual bool RestartToApplyPerSessionFlagsIfNeed(Profile* profile,
95 bool early_restart) = 0; 96 bool early_restart) = 0;
96 }; 97 };
97 98
98 } // namespace chromeos 99 } // namespace chromeos
99 100
100 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ 101 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698