Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_RAPPOR_RAPPOR_UTILS_H_ | |
| 6 #define COMPONENTS_RAPPOR_RAPPOR_UTILS_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 class GURL; | |
| 11 | |
| 12 namespace rappor { | |
| 13 | |
| 14 class RapporService; | |
| 15 | |
| 16 // Record the ETLD+1 of a url to a Rappor metric. | |
| 17 // If the service is NULL, this becomes a no-op. | |
| 18 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.
| |
| 19 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.
| |
| 20 const GURL& gurl); | |
| 21 | |
| 22 // Record the ETLD+1 of a host to a Rappor metric. | |
| 23 // If the service is NULL, this becomes a no-op. | |
| 24 void SampleETLDp1FromHost(RapporService* service, | |
| 25 const std::string& metric, | |
| 26 const std::string& host); | |
| 27 | |
| 28 } // namespace rappor | |
| 29 | |
| 30 #endif // COMPONENTS_RAPPOR_RAPPOR_UTILS_H_ | |
| OLD | NEW |