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 |
92 // Given the credentials try to exchange them for | 96 // Given the credentials try to exchange them for |
93 // full-fledged Google authentication cookies. | 97 // full-fledged Google authentication cookies. |
94 virtual void FetchCookies( | 98 virtual void FetchCookies( |
95 Profile* profile, | 99 Profile* profile, |
96 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0; | 100 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0; |
97 | 101 |
98 // Starts process of fetching OAuth2 tokens (based on OAuth1 tokens found | 102 // Starts process of fetching OAuth2 tokens (based on OAuth1 tokens found |
99 // in |user_profile|) and kicks off internal services that depend on them. | 103 // in |user_profile|) and kicks off internal services that depend on them. |
100 virtual void StartTokenServices(Profile* user_profile) = 0; | 104 virtual void StartTokenServices(Profile* user_profile) = 0; |
101 | 105 |
(...skipping 29 matching lines...) Expand all Loading... |
131 // given command line. | 135 // given command line. |
132 virtual std::string GetOffTheRecordCommandLine( | 136 virtual std::string GetOffTheRecordCommandLine( |
133 const GURL& start_url, | 137 const GURL& start_url, |
134 const CommandLine& base_command_line, | 138 const CommandLine& base_command_line, |
135 CommandLine* command_line) = 0; | 139 CommandLine* command_line) = 0; |
136 }; | 140 }; |
137 | 141 |
138 } // namespace chromeos | 142 } // namespace chromeos |
139 | 143 |
140 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ | 144 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ |
OLD | NEW |