| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UTILS_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UTILS_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 #include <vector> | |
| 10 | |
| 11 class Authenticator; | |
| 12 class LoginStatusConsumer; | |
| 13 | |
| 14 namespace views { | |
| 15 class Widget; | |
| 16 } | |
| 17 | |
| 18 namespace chromeos { | |
| 19 | |
| 20 namespace login_utils { | |
| 21 | |
| 22 // Invoked after the user has successfully logged in. This launches a browser | |
| 23 // and does other bookkeeping after logging in. | |
| 24 void CompleteLogin(const std::string& username, | |
| 25 std::vector<std::string> cookies); | |
| 26 | |
| 27 // Creates and returns the authenticator to use. The caller owns the returned | |
| 28 // Authenticator and must delete it when done. | |
| 29 Authenticator* CreateAuthenticator(LoginStatusConsumer* consumer); | |
| 30 | |
| 31 } // namespace login_utils | |
| 32 | |
| 33 } // namespace chromeos | |
| 34 | |
| 35 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UTILS_H_ | |
| OLD | NEW |