Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Side by Side Diff: components/ukm/ukm_service.h

Issue 2808513002: [Payments] Add PaymentRequest checkout funnel UKMs. (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/payments/core/journey_logger_unittest.cc ('k') | tools/metrics/ukm/ukm.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_UKM_UKM_SERVICE_H_ 5 #ifndef COMPONENTS_UKM_UKM_SERVICE_H_
6 #define COMPONENTS_UKM_UKM_SERVICE_H_ 6 #define COMPONENTS_UKM_UKM_SERVICE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 15 matching lines...) Expand all
26 class UkmPageLoadMetricsObserver; 26 class UkmPageLoadMetricsObserver;
27 27
28 namespace autofill { 28 namespace autofill {
29 class AutofillMetrics; 29 class AutofillMetrics;
30 } // namespace autofill 30 } // namespace autofill
31 31
32 namespace translate { 32 namespace translate {
33 class TranslateRankerImpl; 33 class TranslateRankerImpl;
34 } 34 }
35 35
36 namespace payments {
37 class JourneyLogger;
38 } // namespace payments
39
36 namespace metrics { 40 namespace metrics {
37 class MetricsServiceClient; 41 class MetricsServiceClient;
38 } 42 }
39 43
40 namespace ukm { 44 namespace ukm {
41 45
42 class UkmEntry; 46 class UkmEntry;
43 class UkmEntryBuilder; 47 class UkmEntryBuilder;
44 class UkmSource; 48 class UkmSource;
45 49
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 const { 111 const {
108 return sources_; 112 return sources_;
109 } 113 }
110 114
111 const std::vector<std::unique_ptr<UkmEntry>>& entries_for_testing() const { 115 const std::vector<std::unique_ptr<UkmEntry>>& entries_for_testing() const {
112 return entries_; 116 return entries_;
113 } 117 }
114 118
115 private: 119 private:
116 friend autofill::AutofillMetrics; 120 friend autofill::AutofillMetrics;
121 friend payments::JourneyLogger;
117 friend PluginInfoMessageFilter; 122 friend PluginInfoMessageFilter;
118 friend UkmPageLoadMetricsObserver; 123 friend UkmPageLoadMetricsObserver;
119 friend translate::TranslateRankerImpl; 124 friend translate::TranslateRankerImpl;
120 FRIEND_TEST_ALL_PREFIXES(UkmServiceTest, AddEntryOnlyWithNonEmptyMetrics); 125 FRIEND_TEST_ALL_PREFIXES(UkmServiceTest, AddEntryOnlyWithNonEmptyMetrics);
121 FRIEND_TEST_ALL_PREFIXES(UkmServiceTest, EntryBuilderAndSerialization); 126 FRIEND_TEST_ALL_PREFIXES(UkmServiceTest, EntryBuilderAndSerialization);
122 FRIEND_TEST_ALL_PREFIXES(UkmServiceTest, 127 FRIEND_TEST_ALL_PREFIXES(UkmServiceTest,
123 LogsUploadedOnlyWhenHavingSourcesOrEntries); 128 LogsUploadedOnlyWhenHavingSourcesOrEntries);
124 FRIEND_TEST_ALL_PREFIXES(UkmServiceTest, MetricsProviderTest); 129 FRIEND_TEST_ALL_PREFIXES(UkmServiceTest, MetricsProviderTest);
125 FRIEND_TEST_ALL_PREFIXES(UkmServiceTest, PersistAndPurge); 130 FRIEND_TEST_ALL_PREFIXES(UkmServiceTest, PersistAndPurge);
126 FRIEND_TEST_ALL_PREFIXES(UkmServiceTest, WhitelistEntryTest); 131 FRIEND_TEST_ALL_PREFIXES(UkmServiceTest, WhitelistEntryTest);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // Weak pointers factory used to post task on different threads. All weak 206 // Weak pointers factory used to post task on different threads. All weak
202 // pointers managed by this factory have the same lifetime as UkmService. 207 // pointers managed by this factory have the same lifetime as UkmService.
203 base::WeakPtrFactory<UkmService> self_ptr_factory_; 208 base::WeakPtrFactory<UkmService> self_ptr_factory_;
204 209
205 DISALLOW_COPY_AND_ASSIGN(UkmService); 210 DISALLOW_COPY_AND_ASSIGN(UkmService);
206 }; 211 };
207 212
208 } // namespace ukm 213 } // namespace ukm
209 214
210 #endif // COMPONENTS_UKM_UKM_SERVICE_H_ 215 #endif // COMPONENTS_UKM_UKM_SERVICE_H_
OLDNEW
« no previous file with comments | « components/payments/core/journey_logger_unittest.cc ('k') | tools/metrics/ukm/ukm.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698