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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 // Prewarms the authentication network connection. | 75 // Prewarms the authentication network connection. |
76 virtual void PrewarmAuthentication() = 0; | 76 virtual void PrewarmAuthentication() = 0; |
77 | 77 |
78 // Given the credentials try to exchange them for | 78 // Given the credentials try to exchange them for |
79 // full-fledged Google authentication cookies. | 79 // full-fledged Google authentication cookies. |
80 virtual void FetchCookies( | 80 virtual void FetchCookies( |
81 Profile* profile, | 81 Profile* profile, |
82 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0; | 82 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0; |
83 | 83 |
| 84 // Starts OAuth2 token retrieval and kicks off services that depend on it. |
| 85 virtual void StartTokenServices(Profile* profile) = 0; |
| 86 |
84 // Supply credentials for sync and others to use. | 87 // Supply credentials for sync and others to use. |
85 virtual void StartSync( | 88 virtual void StartSync( |
86 Profile* profile, | 89 Profile* profile, |
87 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0; | 90 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0; |
88 | 91 |
89 // Sets the current background view. | 92 // Sets the current background view. |
90 virtual void SetBackgroundView(BackgroundView* background_view) = 0; | 93 virtual void SetBackgroundView(BackgroundView* background_view) = 0; |
91 | 94 |
92 // Gets the current background view. | 95 // Gets the current background view. |
93 virtual BackgroundView* GetBackgroundView() = 0; | 96 virtual BackgroundView* GetBackgroundView() = 0; |
(...skipping 13 matching lines...) Expand all Loading... |
107 // given command line. | 110 // given command line. |
108 virtual std::string GetOffTheRecordCommandLine( | 111 virtual std::string GetOffTheRecordCommandLine( |
109 const GURL& start_url, | 112 const GURL& start_url, |
110 const CommandLine& base_command_line, | 113 const CommandLine& base_command_line, |
111 CommandLine* command_line) = 0; | 114 CommandLine* command_line) = 0; |
112 }; | 115 }; |
113 | 116 |
114 } // namespace chromeos | 117 } // namespace chromeos |
115 | 118 |
116 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ | 119 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ |
OLD | NEW |