Index: chrome/browser/rappor/sampling.h |
diff --git a/chrome/browser/rappor/sampling.h b/chrome/browser/rappor/sampling.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8915c1d32e4833384c100d0827b2de7f735e7cbb |
--- /dev/null |
+++ b/chrome/browser/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_RAPPOR_SAMPLING_H_ |
+#define CHROME_BROWSER_RAPPOR_SAMPLING_H_ |
+ |
+#include <string> |
+ |
+class GURL; |
+ |
+namespace rappor { |
+ |
+// Record the ETLD+1 of a url to a Rappor metric. |
Peter Kasting
2014/06/09 00:51:14
Nit: Record -> Records (2 places)
I would probabl
Steven Holte
2014/06/09 17:54:29
Done.
|
+// If the service is NULL, this becomes a no-op. |
Peter Kasting
2014/06/09 00:51:14
Tiny nit: Minor, but I think this might be a littl
Steven Holte
2014/06/09 17:54:29
Done.
|
+void SampleDomainAndRegistryFromGURL(const std::string& metric, |
+ const GURL& gurl); |
+ |
+// Record the ETLD+1 of a host to a Rappor metric. |
+// If the service is NULL, this becomes a no-op. |
+void SampleDomainAndRegistryFromHost(const std::string& metric, |
+ const std::string& host); |
+ |
+} // namespace rappor |
+ |
+#endif // CHROME_BROWSER_RAPPOR_SAMPLING_H_ |