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

Unified Diff: content/public/renderer/content_renderer_client.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: Comments and cleanup 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/content_renderer_client.h
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index ca4d51db881f8d8310f9e2fac5d4ce8c79d77974..a3398b62c1c97cf11db1c7c0aad8114ca10c1df8 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -291,6 +291,10 @@ class CONTENT_EXPORT ContentRendererClient {
// Returns a user agent override specific for |url|, or empty string if
// default user agent should be used.
virtual std::string GetUserAgentOverrideForURL(const GURL& url);
+
+ // Allows renderer to record metrics to RAPPOR.
+ virtual void RecordRappor(
+ const std::string& metric, const std::string& sample);
jam 2015/04/02 16:24:14 nit: for void methods, just define this inline wit
kojii 2015/04/03 06:50:53 Done.
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698