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

Unified Diff: chrome/browser/net/gaia/gaia_oauth_fetcher.h

Issue 10392192: Remove content::URLFetcherDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/browser/net/gaia/gaia_oauth_fetcher.h
diff --git a/chrome/browser/net/gaia/gaia_oauth_fetcher.h b/chrome/browser/net/gaia/gaia_oauth_fetcher.h
index 1a3fecc47e19f12423711a1fb1918f08c7c58634..319891ebc654ebf71f3af42acde861d2c219c1c0 100644
--- a/chrome/browser/net/gaia/gaia_oauth_fetcher.h
+++ b/chrome/browser/net/gaia/gaia_oauth_fetcher.h
@@ -14,8 +14,8 @@
#include "chrome/browser/net/gaia/gaia_oauth_consumer.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
-#include "content/public/common/url_fetcher_delegate.h"
#include "googleurl/src/gurl.h"
+#include "net/url_request/url_fetcher_delegate.h"
struct ChromeCookieDetails;
@@ -45,7 +45,7 @@ typedef std::vector<std::string> ResponseCookies;
//
// This class can handle one request at a time, and all calls through an
// instance should be serialized.
-class GaiaOAuthFetcher : public content::URLFetcherDelegate,
+class GaiaOAuthFetcher : public net::URLFetcherDelegate,
public content::NotificationObserver {
public:
// Defines steps of OAuth process performed by this class.
@@ -136,7 +136,7 @@ class GaiaOAuthFetcher : public content::URLFetcherDelegate,
virtual void OnBrowserClosing(Browser* profile,
bool detail);
- // Implementation of content::URLFetcherDelegate
+ // Implementation of net::URLFetcherDelegate
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
// StartGetOAuthToken (or other Start* routine) been called, but results
@@ -237,13 +237,13 @@ class GaiaOAuthFetcher : public content::URLFetcherDelegate,
const std::string& oauth2_service_scope);
// Create a fetcher useable for making any Gaia OAuth request.
- static content::URLFetcher* CreateGaiaFetcher(
+ static net::URLFetcher* CreateGaiaFetcher(
net::URLRequestContextGetter* getter,
const GURL& gaia_gurl_,
const std::string& body,
const std::string& headers,
bool send_cookies,
- content::URLFetcherDelegate* delegate);
+ net::URLFetcherDelegate* delegate);
bool ShouldAutoFetch(RequestType fetch_step);
@@ -255,7 +255,7 @@ class GaiaOAuthFetcher : public content::URLFetcherDelegate,
content::NotificationRegistrar registrar_;
// While a fetch is going on:
- scoped_ptr<content::URLFetcher> fetcher_;
+ scoped_ptr<net::URLFetcher> fetcher_;
std::string request_body_;
std::string request_headers_;
std::string service_scope_;

Powered by Google App Engine
This is Rietveld 408576698