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

Unified Diff: components/subresource_filter/content/renderer/subresource_filter_agent.h

Issue 2556433003: Support optional performance measuring in SubresourceFilter. (Closed)
Patch Set: Link TODO to a bug. Created 4 years 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: components/subresource_filter/content/renderer/subresource_filter_agent.h
diff --git a/components/subresource_filter/content/renderer/subresource_filter_agent.h b/components/subresource_filter/content/renderer/subresource_filter_agent.h
index 864e197d5ad40fe37e913d1c5d205cda33707b76..43beacd3799feeaade7970203e34fdea2de7e0af 100644
--- a/components/subresource_filter/content/renderer/subresource_filter_agent.h
+++ b/components/subresource_filter/content/renderer/subresource_filter_agent.h
@@ -58,7 +58,8 @@ class SubresourceFilterAgent
private:
void OnActivateForProvisionalLoad(ActivationState activation_state,
- const GURL& url);
+ const GURL& url,
+ bool measure_performance);
void RecordHistogramsOnLoadCommitted();
void RecordHistogramsOnLoadFinished();
@@ -75,6 +76,7 @@ class SubresourceFilterAgent
ActivationState activation_state_for_provisional_load_;
GURL url_for_provisional_load_;
+ bool measure_performance_ = false;
base::WeakPtr<DocumentSubresourceFilter> filter_for_last_committed_load_;
DISALLOW_COPY_AND_ASSIGN(SubresourceFilterAgent);

Powered by Google App Engine
This is Rietveld 408576698