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

Unified Diff: content/browser/renderer_host/input/render_widget_host_latency_tracker.h

Issue 2492793004: Add TimeToScrollUpdateSwapBegin2 in RAPPOR (Closed)
Patch Set: add tests 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: content/browser/renderer_host/input/render_widget_host_latency_tracker.h
diff --git a/content/browser/renderer_host/input/render_widget_host_latency_tracker.h b/content/browser/renderer_host/input/render_widget_host_latency_tracker.h
index 1dc74f2c86cf6c788f4be33d4dd37d09104abbeb..e4147b9052ff3a76134d2f39e4be0237f5d38e8b 100644
--- a/content/browser/renderer_host/input/render_widget_host_latency_tracker.h
+++ b/content/browser/renderer_host/input/render_widget_host_latency_tracker.h
@@ -17,11 +17,13 @@
namespace content {
+class RenderWidgetHostDelegate;
+
// Utility class for tracking the latency of events passing through
// a given RenderWidgetHost.
class CONTENT_EXPORT RenderWidgetHostLatencyTracker {
public:
- RenderWidgetHostLatencyTracker();
+ explicit RenderWidgetHostLatencyTracker();
~RenderWidgetHostLatencyTracker();
// Associates the latency tracker with a given route and process.
@@ -68,6 +70,10 @@ class CONTENT_EXPORT RenderWidgetHostLatencyTracker {
// subsystem.
int64_t latency_component_id() const { return latency_component_id_; }
+ // A delegate is used to get the url to be stored in Rappor Sample.
+ // If delegate is null no Rappor sample will be reported.
+ void SetDelegate(RenderWidgetHostDelegate*);
+
private:
int64_t last_event_id_;
int64_t latency_component_id_;
@@ -80,6 +86,8 @@ class CONTENT_EXPORT RenderWidgetHostLatencyTracker {
// default action prevented. Only valid for single finger gestures.
bool touch_start_default_prevented_;
+ RenderWidgetHostDelegate* render_widget_host_delegate_;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostLatencyTracker);
};
« no previous file with comments | « content/browser/renderer_host/DEPS ('k') | content/browser/renderer_host/input/render_widget_host_latency_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698