Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_PAYMENTS_CORE_JOURNEY_LOGGER_H_ | 5 #ifndef COMPONENTS_PAYMENTS_CORE_JOURNEY_LOGGER_H_ |
| 6 #define COMPONENTS_PAYMENTS_CORE_JOURNEY_LOGGER_H_ | 6 #define COMPONENTS_PAYMENTS_CORE_JOURNEY_LOGGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 129 number_suggestions_shown_(0), | 129 number_suggestions_shown_(0), |
| 130 is_requested_(false) {} | 130 is_requested_(false) {} |
| 131 | 131 |
| 132 int number_selection_adds_; | 132 int number_selection_adds_; |
| 133 int number_selection_changes_; | 133 int number_selection_changes_; |
| 134 int number_selection_edits_; | 134 int number_selection_edits_; |
| 135 int number_suggestions_shown_; | 135 int number_suggestions_shown_; |
| 136 bool is_requested_; | 136 bool is_requested_; |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 // Records the histograms for all the steps of a successful checkout flow | |
|
gogerald1
2017/05/19 19:42:17
nit: *a complete*
| |
| 140 // that were reached. | |
| 141 void RecordCheckoutFlowMetrics(); | |
| 142 | |
| 139 // Records the histograms for all the sections that were requested by the | 143 // Records the histograms for all the sections that were requested by the |
| 140 // merchant. | 144 // merchant. |
| 141 void RecordSectionSpecificStats(CompletionStatus completion_status); | 145 void RecordSectionSpecificStats(CompletionStatus completion_status); |
| 142 | 146 |
| 143 // Records the metrics related the the CanMakePayment method unless in | 147 // Records the metrics related the the CanMakePayment method unless in |
| 144 // incognito mode. | 148 // incognito mode. |
| 145 void RecordCanMakePaymentStats(CompletionStatus completion_status); | 149 void RecordCanMakePaymentStats(CompletionStatus completion_status); |
| 146 | 150 |
| 147 // Records CanMakePayment's return value effect on whether the Payment Request | 151 // Records CanMakePayment's return value effect on whether the Payment Request |
| 148 // was shown or not. | 152 // was shown or not. |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 170 | 174 |
| 171 // Not owned, will outlive this object. | 175 // Not owned, will outlive this object. |
| 172 ukm::UkmService* ukm_service_; | 176 ukm::UkmService* ukm_service_; |
| 173 | 177 |
| 174 DISALLOW_COPY_AND_ASSIGN(JourneyLogger); | 178 DISALLOW_COPY_AND_ASSIGN(JourneyLogger); |
| 175 }; | 179 }; |
| 176 | 180 |
| 177 } // namespace payments | 181 } // namespace payments |
| 178 | 182 |
| 179 #endif // COMPONENTS_PAYMENTS_CORE_JOURNEY_LOGGER_H_ | 183 #endif // COMPONENTS_PAYMENTS_CORE_JOURNEY_LOGGER_H_ |
| OLD | NEW |