| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // entire login process, even for multiple retries. Authenticator instance | 82 // entire login process, even for multiple retries. Authenticator instance |
| 83 // holds reference to login profile and is later used during fetching of | 83 // holds reference to login profile and is later used during fetching of |
| 84 // OAuth tokens. | 84 // OAuth tokens. |
| 85 // TODO(nkostylev): Cleanup after WebUI login migration is complete. | 85 // TODO(nkostylev): Cleanup after WebUI login migration is complete. |
| 86 virtual scoped_refptr<Authenticator> CreateAuthenticator( | 86 virtual scoped_refptr<Authenticator> CreateAuthenticator( |
| 87 LoginStatusConsumer* consumer) = 0; | 87 LoginStatusConsumer* consumer) = 0; |
| 88 | 88 |
| 89 // Prewarms the authentication network connection. | 89 // Prewarms the authentication network connection. |
| 90 virtual void PrewarmAuthentication() = 0; | 90 virtual void PrewarmAuthentication() = 0; |
| 91 | 91 |
| 92 // Restores authentication session after crash. | |
| 93 virtual void RestoreAuthenticationSession(const std::string& user_name, | |
| 94 Profile* profile) = 0; | |
| 95 | |
| 96 // Given the credentials try to exchange them for | 92 // Given the credentials try to exchange them for |
| 97 // full-fledged Google authentication cookies. | 93 // full-fledged Google authentication cookies. |
| 98 virtual void FetchCookies( | 94 virtual void FetchCookies( |
| 99 Profile* profile, | 95 Profile* profile, |
| 100 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0; | 96 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0; |
| 101 | 97 |
| 102 // Starts process of fetching OAuth2 tokens (based on OAuth1 tokens found | 98 // Starts process of fetching OAuth2 tokens (based on OAuth1 tokens found |
| 103 // in |user_profile|) and kicks off internal services that depend on them. | 99 // in |user_profile|) and kicks off internal services that depend on them. |
| 104 virtual void StartTokenServices(Profile* user_profile) = 0; | 100 virtual void StartTokenServices(Profile* user_profile) = 0; |
| 105 | 101 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 135 // given command line. | 131 // given command line. |
| 136 virtual std::string GetOffTheRecordCommandLine( | 132 virtual std::string GetOffTheRecordCommandLine( |
| 137 const GURL& start_url, | 133 const GURL& start_url, |
| 138 const CommandLine& base_command_line, | 134 const CommandLine& base_command_line, |
| 139 CommandLine* command_line) = 0; | 135 CommandLine* command_line) = 0; |
| 140 }; | 136 }; |
| 141 | 137 |
| 142 } // namespace chromeos | 138 } // namespace chromeos |
| 143 | 139 |
| 144 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ | 140 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ |
| OLD | NEW |