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

Unified Diff: chrome/browser/metrics/rappor/sampling.h

Issue 311133006: Add more Rappor metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 6 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 | « chrome/browser/metrics/rappor/OWNERS ('k') | chrome/browser/metrics/rappor/sampling.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/rappor/sampling.h
diff --git a/chrome/browser/metrics/rappor/sampling.h b/chrome/browser/metrics/rappor/sampling.h
new file mode 100644
index 0000000000000000000000000000000000000000..9b5d581cad1c37ea995ec72987b37fd0ffa059b3
--- /dev/null
+++ b/chrome/browser/metrics/rappor/sampling.h
@@ -0,0 +1,26 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_METRICS_RAPPOR_SAMPLING_H_
+#define CHROME_BROWSER_METRICS_RAPPOR_SAMPLING_H_
+
+#include <string>
+
+class GURL;
+
+namespace rappor {
+
+// Records the domain and registry of a url to a Rappor metric.
+// If the Rappor service is NULL, such as during tests, this call does nothing.
+void SampleDomainAndRegistryFromGURL(const std::string& metric,
+ const GURL& gurl);
+
+// Records the domain and registry of a host to a Rappor metric.
+// If the Rappor service is NULL, such as during tests, this call does nothing.
+void SampleDomainAndRegistryFromHost(const std::string& metric,
+ const std::string& host);
+
+} // namespace rappor
+
+#endif // CHROME_BROWSER_METRICS_RAPPOR_SAMPLING_H_
« no previous file with comments | « chrome/browser/metrics/rappor/OWNERS ('k') | chrome/browser/metrics/rappor/sampling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698