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

Unified Diff: ios/chrome/browser/ui/payments/payment_request_mediator.h

Issue 2924663003: [Payment Request] Moves PaymentRequestViewController to :payments_ui (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/payments/payment_request_mediator.h
diff --git a/ios/chrome/browser/ui/payments/payment_request_mediator.h b/ios/chrome/browser/ui/payments/payment_request_mediator.h
index 7835b29e6bcea979973cb0b496ea6ac6a51ef713..e24f2b52350c551be044a40b676f92335e7bfcd0 100644
--- a/ios/chrome/browser/ui/payments/payment_request_mediator.h
+++ b/ios/chrome/browser/ui/payments/payment_request_mediator.h
@@ -5,17 +5,27 @@
#ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_MEDIATOR_H_
#define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_MEDIATOR_H_
-#include "ios/chrome/browser/ui/payments/payment_request_view_controller.h"
+#import "ios/chrome/browser/ui/payments/payment_request_view_controller_data_source.h"
namespace ios {
class ChromeBrowserState;
} // namespace ios
+class PaymentRequest;
+
// A mediator object that provides data for a PaymentRequestViewController.
@interface PaymentRequestMediator
: NSObject<PaymentRequestViewControllerDataSource>
+// Whether or not the total price value was changed by the merchant.
+@property(nonatomic, assign) BOOL totalValueChanged;
+
+// Initializes this object with an instance of ios::ChromeBrowserState and an
+// instance of PaymentRequest which has a copy of web::PaymentRequest as
+// provided by the page invoking the Payment Request API. This object will not
+// take ownership of |browserState| or |paymentRequest|.
- (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState
+ paymentRequest:(PaymentRequest*)paymentRequest
NS_DESIGNATED_INITIALIZER;
- (instancetype)init NS_UNAVAILABLE;

Powered by Google App Engine
This is Rietveld 408576698