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

Unified Diff: content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc

Issue 140823010: ResourceFetcher: Add POST support and the ability to set headers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Gack Created 6 years, 11 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: content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc
===================================================================
--- content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc (revision 244609)
+++ content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc (working copy)
@@ -29,10 +29,11 @@
id_(id),
http_status_code_(0),
image_url_(image_url) {
- fetcher_.reset(ResourceFetcher::Create(
- image_url, frame, target_type,
+ fetcher_.reset(ResourceFetcher::Create(image_url));
+ fetcher_->Start(
+ frame, target_type,
base::Bind(&MultiResolutionImageResourceFetcher::OnURLFetchComplete,
- base::Unretained(this))));
+ base::Unretained(this)));
}
MultiResolutionImageResourceFetcher::~MultiResolutionImageResourceFetcher() {
« no previous file with comments | « content/renderer/fetchers/image_resource_fetcher.cc ('k') | content/renderer/fetchers/resource_fetcher_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698