| 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_ITEMS_DISPLAY_MEDIATOR_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_ITEMS_DISPLAY_MEDIATOR_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_ITEMS_DISPLAY_MEDIATOR_H_ | 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_ITEMS_DISPLAY_MEDIATOR_H_ |
| 7 | 7 |
| 8 #import "ios/chrome/browser/ui/payments/payment_items_display_view_controller_da
ta_source.h" | 8 #import "ios/chrome/browser/ui/payments/payment_items_display_view_controller_da
ta_source.h" |
| 9 | 9 |
| 10 namespace payments { |
| 10 class PaymentRequest; | 11 class PaymentRequest; |
| 12 } // namespace payments |
| 11 | 13 |
| 12 // Serves as data source for PaymentItemsDisplayViewController. | 14 // Serves as data source for PaymentItemsDisplayViewController. |
| 13 @interface PaymentItemsDisplayMediator | 15 @interface PaymentItemsDisplayMediator |
| 14 : NSObject<PaymentItemsDisplayViewControllerDataSource> | 16 : NSObject<PaymentItemsDisplayViewControllerDataSource> |
| 15 | 17 |
| 16 // Initializes this object with an instance of PaymentRequest which has a copy | 18 // Initializes this object with an instance of PaymentRequest which has a copy |
| 17 // of web::PaymentRequest as provided by the page invoking the Payment Request | 19 // of web::PaymentRequest as provided by the page invoking the Payment Request |
| 18 // API. This object will not take ownership of |paymentRequest|. | 20 // API. This object will not take ownership of |paymentRequest|. |
| 19 - (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest | 21 - (instancetype)initWithPaymentRequest:(payments::PaymentRequest*)paymentRequest |
| 20 NS_DESIGNATED_INITIALIZER; | 22 NS_DESIGNATED_INITIALIZER; |
| 21 | 23 |
| 22 - (instancetype)init NS_UNAVAILABLE; | 24 - (instancetype)init NS_UNAVAILABLE; |
| 23 | 25 |
| 24 @end | 26 @end |
| 25 | 27 |
| 26 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_ITEMS_DISPLAY_MEDIATOR_H_ | 28 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_ITEMS_DISPLAY_MEDIATOR_H_ |
| OLD | NEW |