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