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

Unified Diff: chrome/renderer/net/net_error_helper.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
« no previous file with comments | « no previous file | content/public/renderer/resource_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/net/net_error_helper.cc
===================================================================
--- chrome/renderer/net/net_error_helper.cc (revision 244611)
+++ chrome/renderer/net/net_error_helper.cc (working copy)
@@ -173,12 +173,13 @@
return;
blink::WebFrame* frame = web_view->mainFrame();
- alt_error_page_fetcher_.reset(
- content::ResourceFetcher::Create(
- url, frame, blink::WebURLRequest::TargetIsMainFrame,
- base::Bind(&NetErrorHelper::OnAlternateErrorPageRetrieved,
- base::Unretained(this))));
+ alt_error_page_fetcher_.reset(content::ResourceFetcher::Create(url));
+ alt_error_page_fetcher_->Start(
+ frame, blink::WebURLRequest::TargetIsMainFrame,
+ base::Bind(&NetErrorHelper::OnAlternateErrorPageRetrieved,
+ base::Unretained(this)));
+
alt_error_page_fetcher_->SetTimeout(
base::TimeDelta::FromSeconds(kAlterErrorPageFetchTimeoutSec));
}
« no previous file with comments | « no previous file | content/public/renderer/resource_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698