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

Unified Diff: chrome/common/net/gaia/gaia_auth_fetcher.cc

Issue 8373021: Convert URLFetcher::Delegates to use an interface in content/public/common. Also remove the old U... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync and remove unncessary forward declares Created 9 years, 2 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/gaia_auth_fetcher.cc
===================================================================
--- chrome/common/net/gaia/gaia_auth_fetcher.cc (revision 106929)
+++ chrome/common/net/gaia/gaia_auth_fetcher.cc (working copy)
@@ -16,6 +16,7 @@
#include "chrome/common/net/gaia/gaia_urls.h"
#include "chrome/common/net/gaia/google_service_auth_error.h"
#include "chrome/common/net/http_return.h"
+#include "content/common/net/url_fetcher.h"
#include "net/base/escape.h"
#include "net/base/load_flags.h"
#include "net/url_request/url_request_context_getter.h"
@@ -129,7 +130,7 @@
const std::string& body,
const GURL& gaia_gurl,
bool send_cookies,
- URLFetcher::Delegate* delegate) {
+ content::URLFetcherDelegate* delegate) {
URLFetcher* to_return =
URLFetcher::Create(0,
@@ -579,13 +580,13 @@
}
}
-void GaiaAuthFetcher::OnURLFetchComplete(const URLFetcher* source,
- const GURL& url,
- const net::URLRequestStatus& status,
- int response_code,
- const net::ResponseCookies& cookies,
- const std::string& data) {
+void GaiaAuthFetcher::OnURLFetchComplete(const URLFetcher* source) {
fetch_pending_ = false;
+ const GURL& url = source->url();
+ const net::URLRequestStatus& status = source->status();
+ int response_code = source->response_code();
+ std::string data;
+ source->GetResponseAsString(&data);
if (url == client_login_gurl_) {
OnClientLoginFetched(data, status, response_code);
} else if (url == issue_auth_token_gurl_) {

Powered by Google App Engine
This is Rietveld 408576698