| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 virtual ~LoginUtils() {} | 50 virtual ~LoginUtils() {} |
| 51 | 51 |
| 52 // Loads and prepares profile for the session. Fires |delegate| in the end. | 52 // Loads and prepares profile for the session. Fires |delegate| in the end. |
| 53 // If |pending_requests| is true, there's a pending online auth request. | 53 // If |pending_requests| is true, there's a pending online auth request. |
| 54 virtual void PrepareProfile( | 54 virtual void PrepareProfile( |
| 55 const std::string& username, | 55 const std::string& username, |
| 56 const std::string& password, | 56 const std::string& password, |
| 57 const GaiaAuthConsumer::ClientLoginResult& credentials, | 57 const GaiaAuthConsumer::ClientLoginResult& credentials, |
| 58 bool pending_requests, | 58 bool pending_requests, |
| 59 bool using_oauth, | 59 bool using_oauth, |
| 60 bool has_cookies, |
| 60 Delegate* delegate) = 0; | 61 Delegate* delegate) = 0; |
| 61 | 62 |
| 62 // Invoked after the tmpfs is successfully mounted. | 63 // Invoked after the tmpfs is successfully mounted. |
| 63 // Asks session manager to restart Chrome in Browse Without Sign In mode. | 64 // Asks session manager to restart Chrome in Browse Without Sign In mode. |
| 64 // |start_url| is url for launched browser to open. | 65 // |start_url| is url for launched browser to open. |
| 65 virtual void CompleteOffTheRecordLogin(const GURL& start_url) = 0; | 66 virtual void CompleteOffTheRecordLogin(const GURL& start_url) = 0; |
| 66 | 67 |
| 67 // Invoked when the user is logging in for the first time, or is logging in as | 68 // Invoked when the user is logging in for the first time, or is logging in as |
| 68 // a guest user. | 69 // a guest user. |
| 69 virtual void SetFirstLoginPrefs(PrefService* prefs) = 0; | 70 virtual void SetFirstLoginPrefs(PrefService* prefs) = 0; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // given command line. | 111 // given command line. |
| 111 virtual std::string GetOffTheRecordCommandLine( | 112 virtual std::string GetOffTheRecordCommandLine( |
| 112 const GURL& start_url, | 113 const GURL& start_url, |
| 113 const CommandLine& base_command_line, | 114 const CommandLine& base_command_line, |
| 114 CommandLine* command_line) = 0; | 115 CommandLine* command_line) = 0; |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 } // namespace chromeos | 118 } // namespace chromeos |
| 118 | 119 |
| 119 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ | 120 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ |
| OLD | NEW |