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

Unified Diff: chrome/common/net/gaia/oauth2_mint_token_fetcher.h

Issue 10392192: Remove content::URLFetcherDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More cleanup Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/net/gaia/oauth2_mint_token_fetcher.h
diff --git a/chrome/common/net/gaia/oauth2_mint_token_fetcher.h b/chrome/common/net/gaia/oauth2_mint_token_fetcher.h
index e709a7a2dc89179694b973dbe1e44d122be34cbf..fedd09c84b2db4bbdd1d60be78d122ed64e55987 100644
--- a/chrome/common/net/gaia/oauth2_mint_token_fetcher.h
+++ b/chrome/common/net/gaia/oauth2_mint_token_fetcher.h
@@ -12,13 +12,13 @@
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/common/net/gaia/oauth2_mint_token_consumer.h"
-#include "content/public/common/url_fetcher.h"
-#include "content/public/common/url_fetcher_delegate.h"
#include "googleurl/src/gurl.h"
+#include "net/url_request/url_fetcher_delegate.h"
class OAuth2MintTokenFetcherTest;
namespace net {
+class URLFetcher;
class URLRequestContextGetter;
class URLRequestStatus;
}
@@ -39,7 +39,7 @@ class URLRequestStatus;
//
// This class can handle one request at a time. To parallelize requests,
// create multiple instances.
-class OAuth2MintTokenFetcher : public content::URLFetcherDelegate {
+class OAuth2MintTokenFetcher : public net::URLFetcherDelegate {
public:
OAuth2MintTokenFetcher(OAuth2MintTokenConsumer* consumer,
net::URLRequestContextGetter* getter,
@@ -54,7 +54,7 @@ class OAuth2MintTokenFetcher : public content::URLFetcherDelegate {
void CancelRequest();
- // Implementation of content::URLFetcherDelegate
+ // Implementation of net::URLFetcherDelegate
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
private:
@@ -89,7 +89,7 @@ class OAuth2MintTokenFetcher : public content::URLFetcherDelegate {
State state_;
// While a fetch is in progress.
- scoped_ptr<content::URLFetcher> fetcher_;
+ scoped_ptr<net::URLFetcher> fetcher_;
std::string oauth_login_access_token_;
std::string client_id_;
std::vector<std::string> scopes_;
« no previous file with comments | « chrome/common/net/gaia/oauth2_api_call_flow_unittest.cc ('k') | chrome/common/net/gaia/oauth2_mint_token_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698