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..e4e8f0371a84562d30df6f3989e8c3fb2e7f16a8 100644 |
--- a/content/public/renderer/content_renderer_client.h |
+++ b/content/public/renderer/content_renderer_client.h |
@@ -291,6 +291,15 @@ 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); |
+ |
+ // Records a sample string to a Rappor privacy-preserving metric. |
+ // See: https://www.chromium.org/developers/design-documents/rappor |
+ virtual void RecordRappor(const std::string& metric, |
+ const std::string& sample) {} |
+ |
+ // Records a domain and registry of a url to a Rappor privacy-preserving |
+ // metric. See: https://www.chromium.org/developers/design-documents/rappor |
+ virtual void RecordRapporURL(const std::string& metric, const GURL& url) {} |
}; |
} // namespace content |