OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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_COMMON_NET_GAIA_GAIA_AUTHENTICATOR2_H_ | 5 #ifndef CHROME_COMMON_NET_GAIA_GAIA_AUTHENTICATOR2_H_ |
6 #define CHROME_COMMON_NET_GAIA_GAIA_AUTHENTICATOR2_H_ | 6 #define CHROME_COMMON_NET_GAIA_GAIA_AUTHENTICATOR2_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| 11 #include "base/scoped_ptr.h" |
11 #include "chrome/common/net/gaia/gaia_auth_consumer.h" | 12 #include "chrome/common/net/gaia/gaia_auth_consumer.h" |
12 #include "chrome/common/net/url_fetcher.h" | 13 #include "chrome/common/net/url_fetcher.h" |
13 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
14 | 15 |
15 // Authenticate a user against the Google Accounts ClientLogin API | 16 // Authenticate a user against the Google Accounts ClientLogin API |
16 // with various capabilities and return results to a GaiaAuthConsumer. | 17 // with various capabilities and return results to a GaiaAuthConsumer. |
17 // | 18 // |
18 // In the future, we will also issue auth tokens from this class. | 19 // In the future, we will also issue auth tokens from this class. |
19 // This class should be used on a single thread, but it can be whichever thread | 20 // This class should be used on a single thread, but it can be whichever thread |
20 // that you like. | 21 // that you like. |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 148 |
148 friend class GaiaAuthenticator2Test; | 149 friend class GaiaAuthenticator2Test; |
149 FRIEND_TEST_ALL_PREFIXES(GaiaAuthenticator2Test, LoginNetFailure); | 150 FRIEND_TEST_ALL_PREFIXES(GaiaAuthenticator2Test, LoginNetFailure); |
150 FRIEND_TEST_ALL_PREFIXES(GaiaAuthenticator2Test, CheckNormalErrorCode); | 151 FRIEND_TEST_ALL_PREFIXES(GaiaAuthenticator2Test, CheckNormalErrorCode); |
151 FRIEND_TEST_ALL_PREFIXES(GaiaAuthenticator2Test, CheckTwoFactorResponse); | 152 FRIEND_TEST_ALL_PREFIXES(GaiaAuthenticator2Test, CheckTwoFactorResponse); |
152 | 153 |
153 DISALLOW_COPY_AND_ASSIGN(GaiaAuthenticator2); | 154 DISALLOW_COPY_AND_ASSIGN(GaiaAuthenticator2); |
154 }; | 155 }; |
155 | 156 |
156 #endif // CHROME_COMMON_NET_GAIA_GAIA_AUTHENTICATOR2_H_ | 157 #endif // CHROME_COMMON_NET_GAIA_GAIA_AUTHENTICATOR2_H_ |
OLD | NEW |