OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 GOOGLE_APIS_GAIA_UBERTOKEN_FETCHER_H_ | 5 #ifndef GOOGLE_APIS_GAIA_UBERTOKEN_FETCHER_H_ |
6 #define GOOGLE_APIS_GAIA_UBERTOKEN_FETCHER_H_ | 6 #define GOOGLE_APIS_GAIA_UBERTOKEN_FETCHER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
10 #include "google_apis/gaia/gaia_auth_consumer.h" | 10 #include "google_apis/gaia/gaia_auth_consumer.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 OAuth2TokenService* token_service_; | 84 OAuth2TokenService* token_service_; |
85 UbertokenConsumer* consumer_; | 85 UbertokenConsumer* consumer_; |
86 std::string source_; | 86 std::string source_; |
87 net::URLRequestContextGetter* request_context_; | 87 net::URLRequestContextGetter* request_context_; |
88 GaiaAuthFetcherFactory gaia_auth_fetcher_factory_; | 88 GaiaAuthFetcherFactory gaia_auth_fetcher_factory_; |
89 scoped_ptr<GaiaAuthFetcher> gaia_auth_fetcher_; | 89 scoped_ptr<GaiaAuthFetcher> gaia_auth_fetcher_; |
90 scoped_ptr<OAuth2TokenService::Request> access_token_request_; | 90 scoped_ptr<OAuth2TokenService::Request> access_token_request_; |
91 std::string account_id_; | 91 std::string account_id_; |
92 std::string access_token_; | 92 std::string access_token_; |
93 int retry_number_; | 93 int retry_number_; |
94 base::OneShotTimer<UbertokenFetcher> retry_timer_; | 94 base::OneShotTimer retry_timer_; |
95 bool second_access_token_request_; | 95 bool second_access_token_request_; |
96 | 96 |
97 DISALLOW_COPY_AND_ASSIGN(UbertokenFetcher); | 97 DISALLOW_COPY_AND_ASSIGN(UbertokenFetcher); |
98 }; | 98 }; |
99 | 99 |
100 #endif // GOOGLE_APIS_GAIA_UBERTOKEN_FETCHER_H_ | 100 #endif // GOOGLE_APIS_GAIA_UBERTOKEN_FETCHER_H_ |
OLD | NEW |