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

Unified Diff: base/metrics/user_metrics.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
« no previous file with comments | « no previous file | base/metrics/user_metrics.cc » ('j') | content/renderer/renderer_blink_platform_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/user_metrics.h
diff --git a/base/metrics/user_metrics.h b/base/metrics/user_metrics.h
index bcfefb809942e203590dfd9db7672cc56f861c7c..79b84c424afe1c87e3c97e746ca08efdaa207841 100644
--- a/base/metrics/user_metrics.h
+++ b/base/metrics/user_metrics.h
@@ -48,6 +48,11 @@ BASE_EXPORT void RecordAction(const UserMetricsAction& action);
// tools/metrics/actions/extract_actions.py.
BASE_EXPORT void RecordComputedAction(const std::string& action);
+// This function records a sample string along with the metric using RAPPOR.
+BASE_EXPORT void RecordRappor(
+ const std::string& metric,
+ const std::string& sample);
Ilya Sherman 2015/03/25 20:51:02 RAPPOR is not a concept that current exists in bas
+
// Called with the action string.
typedef base::Callback<void(const std::string&)> ActionCallback;
@@ -55,6 +60,12 @@ typedef base::Callback<void(const std::string&)> ActionCallback;
BASE_EXPORT void AddActionCallback(const ActionCallback& callback);
BASE_EXPORT void RemoveActionCallback(const ActionCallback& callback);
+typedef base::Callback<void(
+ const std::string&,
+ const std::string&)> RapporCallback;
+
+BASE_EXPORT void AddRapporCallback(const RapporCallback& callback);
+
} // namespace base
#endif // BASE_METRICS_USER_METRICS_H_
« no previous file with comments | « no previous file | base/metrics/user_metrics.cc » ('j') | content/renderer/renderer_blink_platform_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698