| 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 IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_MEDIATOR_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_MEDIATOR_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_MEDIATOR_H_ | 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_MEDIATOR_H_ |
| 7 | 7 |
| 8 #import "ios/chrome/browser/ui/payments/payment_request_view_controller_data_sou
rce.h" | 8 #import "ios/chrome/browser/ui/payments/payment_request_view_controller_data_sou
rce.h" |
| 9 | 9 |
| 10 namespace payments { |
| 10 class PaymentRequest; | 11 class PaymentRequest; |
| 12 } // namespace payments |
| 11 | 13 |
| 12 // A mediator object that provides data for a PaymentRequestViewController. | 14 // A mediator object that provides data for a PaymentRequestViewController. |
| 13 @interface PaymentRequestMediator | 15 @interface PaymentRequestMediator |
| 14 : NSObject<PaymentRequestViewControllerDataSource> | 16 : NSObject<PaymentRequestViewControllerDataSource> |
| 15 | 17 |
| 16 // Whether or not the total price value was changed by the merchant. | 18 // Whether or not the total price value was changed by the merchant. |
| 17 @property(nonatomic, assign) BOOL totalValueChanged; | 19 @property(nonatomic, assign) BOOL totalValueChanged; |
| 18 | 20 |
| 19 // Initializes this object with an instance of PaymentRequest which has a copy | 21 // Initializes this object with an instance of PaymentRequest which has a copy |
| 20 // of web::PaymentRequest as provided by the page invoking the Payment Request | 22 // of web::PaymentRequest as provided by the page invoking the Payment Request |
| 21 // API. This object will not take ownership of |paymentRequest|. | 23 // API. This object will not take ownership of |paymentRequest|. |
| 22 - (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest | 24 - (instancetype)initWithPaymentRequest:(payments::PaymentRequest*)paymentRequest |
| 23 NS_DESIGNATED_INITIALIZER; | 25 NS_DESIGNATED_INITIALIZER; |
| 24 | 26 |
| 25 - (instancetype)init NS_UNAVAILABLE; | 27 - (instancetype)init NS_UNAVAILABLE; |
| 26 | 28 |
| 27 @end | 29 @end |
| 28 | 30 |
| 29 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_MEDIATOR_H | 31 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_MEDIATOR_H |
| OLD | NEW |