OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_OAUTH_LOGIN_VERIFIER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_VERIFIER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_VERIFIER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_VERIFIER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "chrome/browser/net/gaia/gaia_oauth_consumer.h" | 13 #include "chrome/browser/net/gaia/gaia_oauth_consumer.h" |
14 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h" | 14 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h" |
15 #include "chrome/common/net/gaia/gaia_auth_consumer.h" | 15 #include "google_apis/gaia/gaia_auth_consumer.h" |
16 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" | 16 #include "google_apis/gaia/gaia_auth_fetcher.h" |
17 | 17 |
18 class Profile; | 18 class Profile; |
19 | 19 |
20 namespace chromeos { | 20 namespace chromeos { |
21 | 21 |
22 // Verifies OAuth1 access token by performing OAuthLogin. Fetches user cookies | 22 // Verifies OAuth1 access token by performing OAuthLogin. Fetches user cookies |
23 // on successful OAuth authentication. | 23 // on successful OAuth authentication. |
24 class OAuthLoginVerifier : public base::SupportsWeakPtr<OAuthLoginVerifier>, | 24 class OAuthLoginVerifier : public base::SupportsWeakPtr<OAuthLoginVerifier>, |
25 public GaiaOAuthConsumer, | 25 public GaiaOAuthConsumer, |
26 public GaiaAuthConsumer { | 26 public GaiaAuthConsumer { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 Profile* user_profile_; | 97 Profile* user_profile_; |
98 int verification_count_; | 98 int verification_count_; |
99 VerificationStep step_; | 99 VerificationStep step_; |
100 | 100 |
101 DISALLOW_COPY_AND_ASSIGN(OAuthLoginVerifier); | 101 DISALLOW_COPY_AND_ASSIGN(OAuthLoginVerifier); |
102 }; | 102 }; |
103 | 103 |
104 } // namespace chromeos | 104 } // namespace chromeos |
105 | 105 |
106 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_VERIFIER_H_ | 106 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH_LOGIN_VERIFIER_H_ |
OLD | NEW |