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

Unified Diff: components/subresource_filter/content/browser/subframe_navigation_filtering_throttle.h

Issue 2861053004: [subresource_filter] Add metrics for all NavigationThrottle delays (Closed)
Patch Set: microseconds Created 3 years, 7 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
Index: components/subresource_filter/content/browser/subframe_navigation_filtering_throttle.h
diff --git a/components/subresource_filter/content/browser/subframe_navigation_filtering_throttle.h b/components/subresource_filter/content/browser/subframe_navigation_filtering_throttle.h
index e0c8aefc902946f5b5d09c20c893f2ee1f255d8c..1757b576132fff427bb901aba026e0a2e77a2904 100644
--- a/components/subresource_filter/content/browser/subframe_navigation_filtering_throttle.h
+++ b/components/subresource_filter/content/browser/subframe_navigation_filtering_throttle.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "base/time/time.h"
#include "components/subresource_filter/content/browser/async_document_subresource_filter.h"
#include "content/public/browser/navigation_throttle.h"
@@ -46,6 +47,10 @@ class SubframeNavigationFilteringThrottle : public content::NavigationThrottle {
// Must outlive this class.
AsyncDocumentSubresourceFilter* parent_frame_filter_;
+ base::TimeTicks last_defer_timestamp_;
+ base::TimeDelta total_defer_time_;
+ bool disallowed_ = false;
+
base::WeakPtrFactory<SubframeNavigationFilteringThrottle> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(SubframeNavigationFilteringThrottle);

Powered by Google App Engine
This is Rietveld 408576698