blob: 718bf2a06f1bdab6c3ad392fe7081584ebcf3fa4 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_MEDIATOR_H_
#define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_MEDIATOR_H_
#import "ios/chrome/browser/ui/payments/payment_request_view_controller_data_source.h"
namespace payments {
class PaymentRequest;
} // namespace payments
// 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 PaymentRequest which has a copy
// of payments::WebPaymentRequest as provided by the page invoking the Payment
// Request API. This object will not take ownership of |paymentRequest|.
- (instancetype)initWithPaymentRequest:(payments::PaymentRequest*)paymentRequest
NS_DESIGNATED_INITIALIZER;
- (instancetype)init NS_UNAVAILABLE;
@end
#endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_MEDIATOR_H