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

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

Issue 2877673003: Expose UkmService to content/ (Closed)
Patch Set: Use ukm::SourceId instead of int32 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: 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 a4177e92f2727a07ec85686f3b9117e056e31b3c..ca56a9df9870e4bf1731152d5125f5295c423c70 100644
--- a/content/browser/renderer_host/render_widget_host_delegate.h
+++ b/content/browser/renderer_host/render_widget_host_delegate.h
@@ -10,6 +10,7 @@
#include <vector>
#include "build/build_config.h"
+#include "components/ukm/public/ukm_recorder.h"
#include "content/common/content_export.h"
#include "content/common/drag_event_source_info.h"
#include "content/public/common/drop_data.h"
@@ -32,6 +33,10 @@ namespace rappor {
class Sample;
}
+namespace ukm {
+class UkmRecorder;
+}
+
namespace content {
class BrowserAccessibilityManager;
@@ -244,6 +249,11 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
// if the eTLD+1 is not known for |render_widget_host|.
virtual bool AddDomainInfoToRapporSample(rappor::Sample* sample);
+ // Update UkmRecorder for the given source with the URL. This is used for
+ // URL-keyed metrics to set the url for a report.
+ virtual void UpdateUrlForUkmSource(ukm::UkmRecorder* service,
+ ukm::SourceId ukm_source_id);
+
// Notifies the delegate that a focused editable element has been touched
// inside this RenderWidgetHost. If |editable| is true then the focused
// element accepts text input.
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/browser/renderer_host/render_widget_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698