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/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "net/url_request/url_fetcher.h" | 12 #include "net/url_request/url_fetcher.h" |
12 #include "net/url_request/url_fetcher_delegate.h" | 13 #include "net/url_request/url_fetcher_delegate.h" |
13 #include "url/gurl.h" | 14 #include "url/gurl.h" |
14 | 15 |
15 class GoogleServiceAuthError; | 16 class GoogleServiceAuthError; |
16 class OAuth2MintTokenFlowTest; | 17 class OAuth2MintTokenFlowTest; |
17 | 18 |
18 namespace net { | 19 namespace net { |
19 class URLFetcher; | 20 class URLFetcher; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 void BeginApiCall(); | 78 void BeginApiCall(); |
78 void EndApiCall(const net::URLFetcher* source); | 79 void EndApiCall(const net::URLFetcher* source); |
79 | 80 |
80 State state_; | 81 State state_; |
81 scoped_ptr<net::URLFetcher> url_fetcher_; | 82 scoped_ptr<net::URLFetcher> url_fetcher_; |
82 | 83 |
83 DISALLOW_COPY_AND_ASSIGN(OAuth2ApiCallFlow); | 84 DISALLOW_COPY_AND_ASSIGN(OAuth2ApiCallFlow); |
84 }; | 85 }; |
85 | 86 |
86 #endif // GOOGLE_APIS_GAIA_OAUTH2_API_CALL_FLOW_H_ | 87 #endif // GOOGLE_APIS_GAIA_OAUTH2_API_CALL_FLOW_H_ |
OLD | NEW |