OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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_AUTOFILL_CORE_BROWSER_AUTOFILL_UKM_H_ | |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_UKM_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "components/autofill/core/browser/autofill_metrics.h" | |
10 | |
11 class GURL; | |
12 | |
13 namespace ukm { | |
14 class UkmService; | |
15 } // namespace ukm | |
16 | |
17 namespace autofill { | |
18 | |
19 // A class to log Autofill related Url Keyed Metrics. | |
20 class AutofillUkm { | |
Mathieu
2017/03/09 18:40:49
I don't think we need the class, right? LogUkm cou
sebsg
2017/03/09 19:57:04
Done.
| |
21 public: | |
22 // Logs the the |ukm| with the specified |url| and the specified |metrics|. | |
23 // Returns whether the ukm was sucessfully logged. | |
24 static bool LogUkm(ukm::UkmService* ukm_service, | |
25 const GURL& url, | |
26 const std::string& ukm, | |
27 const std::map<std::string, int>& metrics); | |
28 | |
29 private: | |
30 AutofillUkm(){}; | |
31 }; | |
32 | |
33 } // namespace autofill | |
34 | |
35 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_UKM_H_ | |
OLD | NEW |