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 CHROME_BROWSER_RAPPOR_SAMPLING_H_ | |
| 6 #define CHROME_BROWSER_RAPPOR_SAMPLING_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 class GURL; | |
| 11 | |
| 12 namespace rappor { | |
| 13 | |
| 14 // 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.
| |
| 15 // 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.
| |
| 16 void SampleDomainAndRegistryFromGURL(const std::string& metric, | |
| 17 const GURL& gurl); | |
| 18 | |
| 19 // Record the ETLD+1 of a host to a Rappor metric. | |
| 20 // If the service is NULL, this becomes a no-op. | |
| 21 void SampleDomainAndRegistryFromHost(const std::string& metric, | |
| 22 const std::string& host); | |
| 23 | |
| 24 } // namespace rappor | |
| 25 | |
| 26 #endif // CHROME_BROWSER_RAPPOR_SAMPLING_H_ | |
| OLD | NEW |