OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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_ |
OLD | NEW |