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

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

Issue 451623002: Getting rid of net::LOAD_ENABLE_LOAD_TIMING (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed content/browser/loader/resource_scheduler_unittest.cc. Created 6 years, 4 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 | « content/browser/loader/resource_loader.cc ('k') | content/browser/loader/resource_request_info_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_request_info_impl.h
diff --git a/content/browser/loader/resource_request_info_impl.h b/content/browser/loader/resource_request_info_impl.h
index 70465f7b10b4338fad6131ba4ba99019ace38a21..54dd85dbaa814e9d6ea3531eb8ff49c2d63d5149 100644
--- a/content/browser/loader/resource_request_info_impl.h
+++ b/content/browser/loader/resource_request_info_impl.h
@@ -56,6 +56,7 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
bool is_stream,
bool allow_download,
bool has_user_gesture,
+ bool enable_load_timing,
blink::WebReferrerPolicy referrer_policy,
blink::WebPageVisibilityState visibility_state,
ResourceContext* context,
@@ -152,6 +153,8 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
int memory_cost() const { return memory_cost_; }
void set_memory_cost(int cost) { memory_cost_ = cost; }
+ bool is_load_timing_enabled() const { return enable_load_timing_; }
+
private:
FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest,
DeletedFilterDetached);
@@ -175,6 +178,7 @@ class ResourceRequestInfoImpl : public ResourceRequestInfo,
bool is_stream_;
bool allow_download_;
bool has_user_gesture_;
+ bool enable_load_timing_;
bool was_ignored_by_handler_;
ResourceType resource_type_;
PageTransition transition_type_;
« no previous file with comments | « content/browser/loader/resource_loader.cc ('k') | content/browser/loader/resource_request_info_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698