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

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

Issue 2581043003: Add page-level aggregation of SubresourceFilter time metrics. (Closed)
Patch Set: Rebase. Make tests work with and without PersistentHistograms. 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 43beacd3799feeaade7970203e34fdea2de7e0af..4290bc9f181986154375b743dab6b828d4966d7a 100644
--- a/components/subresource_filter/content/renderer/subresource_filter_agent.h
+++ b/components/subresource_filter/content/renderer/subresource_filter_agent.h
@@ -56,6 +56,12 @@ class SubresourceFilterAgent
// the most recently committed load. Not called if all resources are allowed.
virtual void SignalFirstSubresourceDisallowedForCommittedLoad();
+ // Informs the browser about the time spent by DocumentSubresourceFilter in
+ // allowLoad calls while evaluating subresource loads for the current frame.
+ virtual void SendDocumentLoadStatistics(
+ base::TimeDelta evaluation_total_wall_duration,
+ base::TimeDelta evaluation_total_cpu_duration);
+
private:
void OnActivateForProvisionalLoad(ActivationState activation_state,
const GURL& url,

Powered by Google App Engine
This is Rietveld 408576698