OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_OAUTH2_LOGIN_VERIFIER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_VERIFIER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_VERIFIER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_VERIFIER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // Decides how to proceed on GAIA |error|. If the error looks temporary, | 92 // Decides how to proceed on GAIA |error|. If the error looks temporary, |
93 // retries |task| after certain delay until max retry count is reached. | 93 // retries |task| after certain delay until max retry count is reached. |
94 void RetryOnError(const char* operation_id, | 94 void RetryOnError(const char* operation_id, |
95 const GoogleServiceAuthError& error, | 95 const GoogleServiceAuthError& error, |
96 const base::Closure& task_to_retry, | 96 const base::Closure& task_to_retry, |
97 const ErrorHandler& error_handler); | 97 const ErrorHandler& error_handler); |
98 | 98 |
99 OAuth2LoginVerifier::Delegate* delegate_; | 99 OAuth2LoginVerifier::Delegate* delegate_; |
100 scoped_refptr<net::URLRequestContextGetter> system_request_context_; | 100 scoped_refptr<net::URLRequestContextGetter> system_request_context_; |
101 scoped_refptr<net::URLRequestContextGetter> user_request_context_; | 101 scoped_refptr<net::URLRequestContextGetter> user_request_context_; |
102 scoped_ptr<GaiaAuthFetcher> gaia_system_fetcher_; | |
103 scoped_ptr<GaiaAuthFetcher> gaia_fetcher_; | 102 scoped_ptr<GaiaAuthFetcher> gaia_fetcher_; |
104 std::string access_token_; | 103 std::string access_token_; |
105 std::string gaia_token_; | 104 std::string gaia_token_; |
106 scoped_ptr<OAuth2TokenService::Request> login_token_request_; | 105 scoped_ptr<OAuth2TokenService::Request> login_token_request_; |
107 // The retry counter. Increment this only when failure happened. | 106 // The retry counter. Increment this only when failure happened. |
108 int retry_count_; | 107 int retry_count_; |
109 | 108 |
110 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginVerifier); | 109 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginVerifier); |
111 }; | 110 }; |
112 | 111 |
113 } // namespace chromeos | 112 } // namespace chromeos |
114 | 113 |
115 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_VERIFIER_H_ | 114 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_VERIFIER_H_ |
OLD | NEW |