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_MOCK_AUTHENTICATOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 virtual void CompleteOffTheRecordLogin(const GURL& start_url) {} | 101 virtual void CompleteOffTheRecordLogin(const GURL& start_url) {} |
102 | 102 |
103 virtual void SetFirstLoginPrefs(PrefService* prefs) {} | 103 virtual void SetFirstLoginPrefs(PrefService* prefs) {} |
104 | 104 |
105 virtual scoped_refptr<Authenticator> CreateAuthenticator( | 105 virtual scoped_refptr<Authenticator> CreateAuthenticator( |
106 LoginStatusConsumer* consumer); | 106 LoginStatusConsumer* consumer); |
107 | 107 |
108 virtual void PrewarmAuthentication() {} | 108 virtual void PrewarmAuthentication() {} |
109 | 109 |
| 110 virtual void RestoreAuthenticationSession(const std::string& user_name, |
| 111 Profile* profile) {} |
| 112 |
110 virtual void FetchCookies( | 113 virtual void FetchCookies( |
111 Profile* profile, | 114 Profile* profile, |
112 const GaiaAuthConsumer::ClientLoginResult& credentials) {} | 115 const GaiaAuthConsumer::ClientLoginResult& credentials) {} |
113 | 116 |
114 virtual void StartTokenServices(Profile* profile) {} | 117 virtual void StartTokenServices(Profile* profile) {} |
115 | 118 |
116 virtual void StartSync( | 119 virtual void StartSync( |
117 Profile* profile, | 120 Profile* profile, |
118 const GaiaAuthConsumer::ClientLoginResult& credentials) {} | 121 const GaiaAuthConsumer::ClientLoginResult& credentials) {} |
119 | 122 |
(...skipping 17 matching lines...) Expand all Loading... |
137 std::string expected_password_; | 140 std::string expected_password_; |
138 std::string auth_token_; | 141 std::string auth_token_; |
139 chromeos::BackgroundView* background_view_; | 142 chromeos::BackgroundView* background_view_; |
140 | 143 |
141 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); | 144 DISALLOW_COPY_AND_ASSIGN(MockLoginUtils); |
142 }; | 145 }; |
143 | 146 |
144 } // namespace chromeos | 147 } // namespace chromeos |
145 | 148 |
146 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ | 149 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ |
OLD | NEW |