| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 enum AbortReason { | 115 enum AbortReason { |
| 116 ABORT_REASON_ABORTED_BY_USER = 0, | 116 ABORT_REASON_ABORTED_BY_USER = 0, |
| 117 ABORT_REASON_ABORTED_BY_MERCHANT = 1, | 117 ABORT_REASON_ABORTED_BY_MERCHANT = 1, |
| 118 ABORT_REASON_INVALID_DATA_FROM_RENDERER = 2, | 118 ABORT_REASON_INVALID_DATA_FROM_RENDERER = 2, |
| 119 ABORT_REASON_MOJO_CONNECTION_ERROR = 3, | 119 ABORT_REASON_MOJO_CONNECTION_ERROR = 3, |
| 120 ABORT_REASON_MOJO_RENDERER_CLOSING = 4, | 120 ABORT_REASON_MOJO_RENDERER_CLOSING = 4, |
| 121 ABORT_REASON_INSTRUMENT_DETAILS_ERROR = 5, | 121 ABORT_REASON_INSTRUMENT_DETAILS_ERROR = 5, |
| 122 ABORT_REASON_NO_MATCHING_PAYMENT_METHOD = 6, // Deprecated. | 122 ABORT_REASON_NO_MATCHING_PAYMENT_METHOD = 6, // Deprecated. |
| 123 ABORT_REASON_NO_SUPPORTED_PAYMENT_METHOD = 7, // Deprecated. | 123 ABORT_REASON_NO_SUPPORTED_PAYMENT_METHOD = 7, // Deprecated. |
| 124 ABORT_REASON_OTHER = 8, | 124 ABORT_REASON_OTHER = 8, |
| 125 ABORT_REASON_USER_NAVIGATION = 9, |
| 126 ABORT_REASON_MERCHANT_NAVIGATION = 10, |
| 125 ABORT_REASON_MAX, | 127 ABORT_REASON_MAX, |
| 126 }; | 128 }; |
| 127 | 129 |
| 128 #ifdef OS_ANDROID | 130 #ifdef OS_ANDROID |
| 129 // The reason why the Payment Request was not shown to the user. | 131 // The reason why the Payment Request was not shown to the user. |
| 130 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.payments | 132 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.payments |
| 131 // GENERATED_JAVA_CLASS_NAME_OVERRIDE: NotShownReason | 133 // GENERATED_JAVA_CLASS_NAME_OVERRIDE: NotShownReason |
| 132 enum NotShownReason { | 134 enum NotShownReason { |
| 133 NOT_SHOWN_REASON_NO_MATCHING_PAYMENT_METHOD = 0, | 135 NOT_SHOWN_REASON_NO_MATCHING_PAYMENT_METHOD = 0, |
| 134 NOT_SHOWN_REASON_NO_SUPPORTED_PAYMENT_METHOD = 1, | 136 NOT_SHOWN_REASON_NO_SUPPORTED_PAYMENT_METHOD = 1, |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 273 |
| 272 // Not owned, will outlive this object. | 274 // Not owned, will outlive this object. |
| 273 ukm::UkmRecorder* ukm_recorder_; | 275 ukm::UkmRecorder* ukm_recorder_; |
| 274 | 276 |
| 275 DISALLOW_COPY_AND_ASSIGN(JourneyLogger); | 277 DISALLOW_COPY_AND_ASSIGN(JourneyLogger); |
| 276 }; | 278 }; |
| 277 | 279 |
| 278 } // namespace payments | 280 } // namespace payments |
| 279 | 281 |
| 280 #endif // COMPONENTS_PAYMENTS_CORE_JOURNEY_LOGGER_H_ | 282 #endif // COMPONENTS_PAYMENTS_CORE_JOURNEY_LOGGER_H_ |
| OLD | NEW |