Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(605)

Side by Side Diff: google_apis/gaia/oauth2_api_call_flow.h

Issue 182573003: Extract OAuth2AccessTokenFetcher interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing file. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/gtest_prod_util.h"
10 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
11 #include "google_apis/gaia/oauth2_access_token_consumer.h" 12 #include "google_apis/gaia/oauth2_access_token_consumer.h"
12 #include "google_apis/gaia/oauth2_access_token_fetcher.h" 13 #include "google_apis/gaia/oauth2_access_token_fetcher.h"
13 #include "net/url_request/url_fetcher_delegate.h" 14 #include "net/url_request/url_fetcher_delegate.h"
15 #include "url/gurl.h"
14 16
15 class GoogleServiceAuthError; 17 class GoogleServiceAuthError;
16 class OAuth2MintTokenFlowTest; 18 class OAuth2MintTokenFlowTest;
17 19
18 namespace net { 20 namespace net {
19 class URLFetcher; 21 class URLFetcher;
20 class URLRequestContextGetter; 22 class URLRequestContextGetter;
21 } 23 }
22 24
23 // Base class for all classes that implement a flow to call OAuth2 25 // Base class for all classes that implement a flow to call OAuth2
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // Whether we have already tried minting an access token once. 119 // Whether we have already tried minting an access token once.
118 bool tried_mint_access_token_; 120 bool tried_mint_access_token_;
119 121
120 scoped_ptr<net::URLFetcher> url_fetcher_; 122 scoped_ptr<net::URLFetcher> url_fetcher_;
121 scoped_ptr<OAuth2AccessTokenFetcher> oauth2_access_token_fetcher_; 123 scoped_ptr<OAuth2AccessTokenFetcher> oauth2_access_token_fetcher_;
122 124
123 DISALLOW_COPY_AND_ASSIGN(OAuth2ApiCallFlow); 125 DISALLOW_COPY_AND_ASSIGN(OAuth2ApiCallFlow);
124 }; 126 };
125 127
126 #endif // GOOGLE_APIS_GAIA_OAUTH2_API_CALL_FLOW_H_ 128 #endif // GOOGLE_APIS_GAIA_OAUTH2_API_CALL_FLOW_H_
OLDNEW
« no previous file with comments | « google_apis/gaia/oauth2_access_token_fetcher_unittest.cc ('k') | google_apis/gaia/oauth2_api_call_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698