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

Unified Diff: content/browser/loader/resource_request_info_impl.cc

Issue 1041993004: content::ResourceDispatcherHostImpl changes for stale-while-revalidate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@s-w-r-yhirano-patch
Patch Set: Fixes from davidben review. Created 5 years, 1 month 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/browser/loader/resource_request_info_impl.cc
diff --git a/content/browser/loader/resource_request_info_impl.cc b/content/browser/loader/resource_request_info_impl.cc
index 26f99f962d81854780ef20d550cacf4ea594b216..883c5f5498fd4caac7aa94c8fb77e6f2099d6a84 100644
--- a/content/browser/loader/resource_request_info_impl.cc
+++ b/content/browser/loader/resource_request_info_impl.cc
@@ -70,7 +70,8 @@ void ResourceRequestInfo::AllocateForTesting(net::URLRequest* request,
base::WeakPtr<ResourceMessageFilter>(), // filter
false, // report_raw_headers
is_async, // is_async
- is_using_lofi); // is_using_lofi
+ is_using_lofi, // is_using_lofi
+ std::string()); // original_headers
info->AssociateWithRequest(request);
}
@@ -130,7 +131,8 @@ ResourceRequestInfoImpl::ResourceRequestInfoImpl(
base::WeakPtr<ResourceMessageFilter> filter,
bool report_raw_headers,
bool is_async,
- bool is_using_lofi)
+ bool is_using_lofi,
+ const std::string& original_headers)
: cross_site_handler_(NULL),
detachable_handler_(NULL),
process_type_(process_type),
@@ -162,7 +164,8 @@ ResourceRequestInfoImpl::ResourceRequestInfoImpl(
filter_(filter),
report_raw_headers_(report_raw_headers),
is_async_(is_async),
- is_using_lofi_(is_using_lofi) {
+ is_using_lofi_(is_using_lofi),
+ original_headers_(original_headers) {
}
ResourceRequestInfoImpl::~ResourceRequestInfoImpl() {

Powered by Google App Engine
This is Rietveld 408576698