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

Unified Diff: content/browser/renderer_host/render_widget_host_delegate.h

Issue 2510803003: Pass RapporService to content/browser/ (Closed)
Patch Set: Add a test for the current url API Created 4 years, 1 month 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/render_widget_host_delegate.h
diff --git a/content/browser/renderer_host/render_widget_host_delegate.h b/content/browser/renderer_host/render_widget_host_delegate.h
index 46129fdd012affd19c87fbf2b028bc03bc6fb141..964a1e54ad6fd0a428650adc85355eee3444fcbd 100644
--- a/content/browser/renderer_host/render_widget_host_delegate.h
+++ b/content/browser/renderer_host/render_widget_host_delegate.h
@@ -30,6 +30,10 @@ class Rect;
class Size;
}
+namespace rappor {
+class RapporService;
+}
+
namespace content {
class BrowserAccessibilityManager;
@@ -219,6 +223,13 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
// Allow the delegate to handle the cursor update. Returns true if handled.
virtual bool OnUpdateDragCursor();
+ // Returns the RapporService from browser process for the metric reporting
+ // purposes per url. See getRapporCommittedUrl for getting the url.
Charlie Reis 2016/11/16 23:55:21 nit: I'm not sure what "for the metric reporting p
Navid Zolghadr 2016/12/01 18:27:15 Removed this API altogether.
+ virtual ::rappor::RapporService* getRapporService();
Charlie Reis 2016/11/16 23:55:21 nit: Capitalize. There's no uses of this method i
Navid Zolghadr 2016/11/17 20:05:49 Here is one use of this: https://codereview.chromi
+
+ // Returns the Url of the current page to be used in Rappor metric reporting.
+ virtual std::string getRapporCommittedUrl();
Charlie Reis 2016/11/16 23:55:21 nit: Capitalize. As above, I'm concerned about pu
Navid Zolghadr 2016/12/01 18:27:15 Actually RenderFrameHostDelegate already has a met
+
protected:
virtual ~RenderWidgetHostDelegate() {}
};

Powered by Google App Engine
This is Rietveld 408576698