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

Unified Diff: chrome/browser/sync/glue/http_bridge.cc

Issue 8375039: Create a content::UrlFetcher interface that lives in content/public/common and convert users to i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments 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
« no previous file with comments | « chrome/browser/sync/glue/http_bridge.h ('k') | chrome/browser/sync/glue/http_bridge_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/http_bridge.cc
===================================================================
--- chrome/browser/sync/glue/http_bridge.cc (revision 107061)
+++ chrome/browser/sync/glue/http_bridge.cc (working copy)
@@ -219,10 +219,10 @@
fetch_state_.url_poster = URLFetcher::Create(0, url_for_request_,
URLFetcher::POST, this);
- fetch_state_.url_poster->set_request_context(context_getter_for_request_);
- fetch_state_.url_poster->set_upload_data(content_type_, request_content_);
- fetch_state_.url_poster->set_extra_request_headers(extra_headers_);
- fetch_state_.url_poster->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES);
+ fetch_state_.url_poster->SetRequestContext(context_getter_for_request_);
+ fetch_state_.url_poster->SetUploadData(content_type_, request_content_);
+ fetch_state_.url_poster->SetExtraRequestHeaders(extra_headers_);
+ fetch_state_.url_poster->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES);
fetch_state_.url_poster->Start();
}
@@ -266,7 +266,7 @@
http_post_completed_.Signal();
}
-void HttpBridge::OnURLFetchComplete(const URLFetcher *source) {
+void HttpBridge::OnURLFetchComplete(const content::URLFetcher *source) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
base::AutoLock lock(fetch_state_lock_);
if (fetch_state_.aborted)
@@ -274,12 +274,12 @@
fetch_state_.request_completed = true;
fetch_state_.request_succeeded =
- (net::URLRequestStatus::SUCCESS == source->status().status());
- fetch_state_.http_response_code = source->response_code();
- fetch_state_.error_code = source->status().error();
+ (net::URLRequestStatus::SUCCESS == source->GetStatus().status());
+ fetch_state_.http_response_code = source->GetResponseCode();
+ fetch_state_.error_code = source->GetStatus().error();
source->GetResponseAsString(&fetch_state_.response_content);
- fetch_state_.response_headers = source->response_headers();
+ fetch_state_.response_headers = source->GetResponseHeaders();
// End of the line for url_poster_. It lives only on the IO loop.
// We defer deletion because we're inside a callback from a component of the
« no previous file with comments | « chrome/browser/sync/glue/http_bridge.h ('k') | chrome/browser/sync/glue/http_bridge_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698