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

Side by Side Diff: ios/chrome/browser/ui/payments/contact_info_edit_mediator.h

Issue 2932703004: [Payment Request] Contact Info editor (Closed)
Patch Set: Addressed comments 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_CONTACT_INFO_EDIT_MEDIATOR_H_
6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_CONTACT_INFO_EDIT_MEDIATOR_H_
7
8 #import <Foundation/Foundation.h>
9
10 #import "ios/chrome/browser/ui/payments/payment_request_edit_view_controller_dat a_source.h"
11
12 class PaymentRequest;
13 @protocol PaymentRequestEditConsumer;
14
15 namespace autofill {
16 class AutofillProfile;
17 } // namespace autofill
18
19 // Serves as data source for AddressEditViewController.
20 @interface ContactInfoEditMediator
21 : NSObject<PaymentRequestEditViewControllerDataSource>
22
23 // The consumer for this object. This can change during the lifetime of this
24 // object and may be nil.
25 @property(nonatomic, weak) id<PaymentRequestEditConsumer> consumer;
26
27 // Initializes this object with an instance of PaymentRequest which has a copy
28 // of web::PaymentRequest as provided by the page invoking the Payment Request
29 // API as well as |profile| which is the profile to be edited, if any.
30 // This object will not take ownership of |paymentRequest| or |profile|.
31 - (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest
32 profile:(autofill::AutofillProfile*)profile
33 NS_DESIGNATED_INITIALIZER;
34
35 - (instancetype)init NS_UNAVAILABLE;
36
37 @end
38
39 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_CONTACT_INFO_EDIT_MEDIATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698