| 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/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // OAuth tokens. | 99 // OAuth tokens. |
| 100 // TODO(nkostylev): Cleanup after WebUI login migration is complete. | 100 // TODO(nkostylev): Cleanup after WebUI login migration is complete. |
| 101 virtual scoped_refptr<Authenticator> CreateAuthenticator( | 101 virtual scoped_refptr<Authenticator> CreateAuthenticator( |
| 102 LoginStatusConsumer* consumer) = 0; | 102 LoginStatusConsumer* consumer) = 0; |
| 103 | 103 |
| 104 // Restores authentication session after crash. | 104 // Restores authentication session after crash. |
| 105 virtual void RestoreAuthenticationSession(Profile* profile) = 0; | 105 virtual void RestoreAuthenticationSession(Profile* profile) = 0; |
| 106 | 106 |
| 107 // Initialize RLZ. | 107 // Initialize RLZ. |
| 108 virtual void InitRlzDelayed(Profile* user_profile) = 0; | 108 virtual void InitRlzDelayed(Profile* user_profile) = 0; |
| 109 |
| 110 // Initiates process restart if needed. |
| 111 // Might not return if restart is possible right now. |
| 112 // Returns true if restart was scheduled. |
| 113 // Returns false if no restart is needed, |
| 114 virtual bool RestartToApplyPerSessionFlagsIfNeed(Profile* profile) = 0; |
| 109 }; | 115 }; |
| 110 | 116 |
| 111 } // namespace chromeos | 117 } // namespace chromeos |
| 112 | 118 |
| 113 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ | 119 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ |
| OLD | NEW |