| 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 GOOGLE_APIS_GAIA_OAUTH2_API_CALL_FLOW_H_ | 5 #ifndef GOOGLE_APIS_GAIA_OAUTH2_API_CALL_FLOW_H_ |
| 6 #define GOOGLE_APIS_GAIA_OAUTH2_API_CALL_FLOW_H_ | 6 #define GOOGLE_APIS_GAIA_OAUTH2_API_CALL_FLOW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "google_apis/gaia/oauth2_access_token_consumer.h" | 11 #include "google_apis/gaia/oauth2_access_token_consumer.h" |
| 12 #include "google_apis/gaia/oauth2_access_token_fetcher.h" | 12 #include "google_apis/gaia/oauth2_access_token_fetcher.h" |
| 13 #include "google_apis/gaia/oauth2_mint_token_consumer.h" | |
| 14 #include "google_apis/gaia/oauth2_mint_token_fetcher.h" | |
| 15 #include "net/url_request/url_fetcher_delegate.h" | 13 #include "net/url_request/url_fetcher_delegate.h" |
| 16 | 14 |
| 17 class GoogleServiceAuthError; | 15 class GoogleServiceAuthError; |
| 18 class OAuth2MintTokenFlowTest; | 16 class OAuth2MintTokenFlowTest; |
| 19 | 17 |
| 20 namespace net { | 18 namespace net { |
| 21 class URLFetcher; | 19 class URLFetcher; |
| 22 class URLRequestContextGetter; | 20 class URLRequestContextGetter; |
| 23 } | 21 } |
| 24 | 22 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // Whether we have already tried minting an access token once. | 117 // Whether we have already tried minting an access token once. |
| 120 bool tried_mint_access_token_; | 118 bool tried_mint_access_token_; |
| 121 | 119 |
| 122 scoped_ptr<net::URLFetcher> url_fetcher_; | 120 scoped_ptr<net::URLFetcher> url_fetcher_; |
| 123 scoped_ptr<OAuth2AccessTokenFetcher> oauth2_access_token_fetcher_; | 121 scoped_ptr<OAuth2AccessTokenFetcher> oauth2_access_token_fetcher_; |
| 124 | 122 |
| 125 DISALLOW_COPY_AND_ASSIGN(OAuth2ApiCallFlow); | 123 DISALLOW_COPY_AND_ASSIGN(OAuth2ApiCallFlow); |
| 126 }; | 124 }; |
| 127 | 125 |
| 128 #endif // GOOGLE_APIS_GAIA_OAUTH2_API_CALL_FLOW_H_ | 126 #endif // GOOGLE_APIS_GAIA_OAUTH2_API_CALL_FLOW_H_ |
| OLD | NEW |