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

Unified Diff: content/public/renderer/render_thread.h

Issue 1014543003: Add an IPC method for Blink to call RapporService::RecordSample() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed to ETLD_PLUS_ONE Created 5 years, 9 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/public/renderer/render_thread.h
diff --git a/content/public/renderer/render_thread.h b/content/public/renderer/render_thread.h
index 407128b33313dcb4be77e7a2815260d9c5721bf9..05121c54eb8c5544d2177b29b056a26932c255d8 100644
--- a/content/public/renderer/render_thread.h
+++ b/content/public/renderer/render_thread.h
@@ -97,6 +97,11 @@ class CONTENT_EXPORT RenderThread : virtual public ChildThread {
// actions in chrome/tools/extract_actions.py.
virtual void RecordComputedAction(const std::string& action) = 0;
+ // Sends over a metric and sample string to be recorded by RAPPOR.
+ virtual void RecordRappor(
+ const std::string& metric,
+ const std::string& sample) = 0;
+
// Asks the host to create a block of shared memory for the renderer.
// The shared memory allocated by the host is returned back.
virtual scoped_ptr<base::SharedMemory> HostAllocateSharedMemoryBuffer(

Powered by Google App Engine
This is Rietveld 408576698