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

Unified Diff: chrome/common/net/gaia/oauth2_access_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_access_token_fetcher.h
diff --git a/chrome/common/net/gaia/oauth2_access_token_fetcher.h b/chrome/common/net/gaia/oauth2_access_token_fetcher.h
index ce5e5dd2294654d1bca6d36e4c24b190ceb2d39e..4f5874fe596cf216292990c67e07f3d668282310 100644
--- a/chrome/common/net/gaia/oauth2_access_token_fetcher.h
+++ b/chrome/common/net/gaia/oauth2_access_token_fetcher.h
@@ -7,17 +7,18 @@
#pragma once
#include <string>
+#include <vector>
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/common/net/gaia/oauth2_access_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 OAuth2AccessTokenFetcherTest;
namespace net {
+class URLFetcher;
class URLRequestContextGetter;
class URLRequestStatus;
}
@@ -40,7 +41,7 @@ class URLRequestStatus;
//
// This class can handle one request at a time. To parallelize requests,
// create multiple instances.
-class OAuth2AccessTokenFetcher : public content::URLFetcherDelegate {
+class OAuth2AccessTokenFetcher : public net::URLFetcherDelegate {
public:
OAuth2AccessTokenFetcher(OAuth2AccessTokenConsumer* consumer,
net::URLRequestContextGetter* getter);
@@ -59,7 +60,7 @@ class OAuth2AccessTokenFetcher : public content::URLFetcherDelegate {
void CancelRequest();
- // Implementation of content::URLFetcherDelegate
+ // Implementation of net::URLFetcherDelegate
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
private:
@@ -94,7 +95,7 @@ class OAuth2AccessTokenFetcher : public content::URLFetcherDelegate {
State state_;
// While a fetch is in progress.
- scoped_ptr<content::URLFetcher> fetcher_;
+ scoped_ptr<net::URLFetcher> fetcher_;
std::string client_id_;
std::string client_secret_;
std::string refresh_token_;
« no previous file with comments | « chrome/common/net/gaia/mock_url_fetcher_factory.h ('k') | chrome/common/net/gaia/oauth2_access_token_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698