| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 virtual void CompleteLogin(const std::string& username, | 38 virtual void CompleteLogin(const std::string& username, |
| 39 const std::string& credentials) = 0; | 39 const std::string& credentials) = 0; |
| 40 | 40 |
| 41 // Invoked after the tmpfs is successfully mounted. | 41 // Invoked after the tmpfs is successfully mounted. |
| 42 // Launches a browser in the off the record (incognito) mode. | 42 // Launches a browser in the off the record (incognito) mode. |
| 43 virtual void CompleteOffTheRecordLogin() = 0; | 43 virtual void CompleteOffTheRecordLogin() = 0; |
| 44 | 44 |
| 45 // Creates and returns the authenticator to use. The caller owns the returned | 45 // Creates and returns the authenticator to use. The caller owns the returned |
| 46 // Authenticator and must delete it when done. | 46 // Authenticator and must delete it when done. |
| 47 virtual Authenticator* CreateAuthenticator(LoginStatusConsumer* consumer) = 0; | 47 virtual Authenticator* CreateAuthenticator(LoginStatusConsumer* consumer) = 0; |
| 48 | |
| 49 // Used to postpone browser launch via DoBrowserLaunch() if some post | |
| 50 // login screen is to be shown. | |
| 51 virtual void EnableBrowserLaunch(bool enable) = 0; | |
| 52 | |
| 53 // Returns if browser launch enabled now or not. | |
| 54 virtual bool IsBrowserLaunchEnabled() const = 0; | |
| 55 | |
| 56 // Returns auth token for 'cp' Contacts service. | |
| 57 virtual const std::string& GetAuthToken() const = 0; | |
| 58 }; | 48 }; |
| 59 | 49 |
| 60 } // namespace chromeos | 50 } // namespace chromeos |
| 61 | 51 |
| 62 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ | 52 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ |
| OLD | NEW |