Index: components/rappor/rappor_utils.h |
diff --git a/components/rappor/rappor_utils.h b/components/rappor/rappor_utils.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..757abd8aec0c172f3f4eeae87279c4da82e80abc |
--- /dev/null |
+++ b/components/rappor/rappor_utils.h |
@@ -0,0 +1,30 @@ |
+// 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 COMPONENTS_RAPPOR_RAPPOR_UTILS_H_ |
+#define COMPONENTS_RAPPOR_RAPPOR_UTILS_H_ |
+ |
+#include <string> |
+ |
+class GURL; |
+ |
+namespace rappor { |
+ |
+class RapporService; |
+ |
+// Record the ETLD+1 of a url to a Rappor metric. |
+// If the service is NULL, this becomes a no-op. |
+void SampleETLDp1FromGURL(RapporService* service, |
Peter Kasting
2014/06/05 23:37:14
Please don't abbreviate "plus 1" like this in func
Steven Holte
2014/06/06 01:54:25
Done.
|
+ const std::string& metric, |
Peter Kasting
2014/06/05 23:37:14
Nit: Indenting (multiple places)
Steven Holte
2014/06/06 01:54:25
Done.
|
+ 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 SampleETLDp1FromHost(RapporService* service, |
+ const std::string& metric, |
+ const std::string& host); |
+ |
+} // namespace rappor |
+ |
+#endif // COMPONENTS_RAPPOR_RAPPOR_UTILS_H_ |