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

Side by Side Diff: components/payments/content/payment_request.h

Issue 2713033004: Layered component for web payments (Closed)
Patch Set: Rebase Created 3 years, 9 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 COMPONENTS_PAYMENTS_PAYMENT_REQUEST_H_ 5 #ifndef COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_
6 #define COMPONENTS_PAYMENTS_PAYMENT_REQUEST_H_ 6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "components/autofill/core/browser/personal_data_manager.h" 12 #include "base/macros.h"
13 #include "components/payments/currency_formatter.h" 13 #include "components/payments/content/payment_request.mojom.h"
14 #include "components/payments/payment_request.mojom.h" 14 #include "components/payments/content/payment_request_delegate.h"
15 #include "components/payments/payment_request_delegate.h"
16 #include "mojo/public/cpp/bindings/binding.h" 15 #include "mojo/public/cpp/bindings/binding.h"
17 16
18 namespace autofill { 17 namespace autofill {
19 class AutofillProfile; 18 class AutofillProfile;
20 class CreditCard; 19 class CreditCard;
20 class PersonalDataManager;
21 } 21 }
22 22
23 namespace content { 23 namespace content {
24 class WebContents; 24 class WebContents;
25 } 25 }
26 26
27 namespace payments { 27 namespace payments {
28 28
29 class CurrencyFormatter;
29 class PaymentRequestWebContentsManager; 30 class PaymentRequestWebContentsManager;
30 31
31 class PaymentRequest : payments::mojom::PaymentRequest { 32 class PaymentRequest : payments::mojom::PaymentRequest {
32 public: 33 public:
33 PaymentRequest( 34 PaymentRequest(
34 content::WebContents* web_contents, 35 content::WebContents* web_contents,
35 std::unique_ptr<PaymentRequestDelegate> delegate, 36 std::unique_ptr<PaymentRequestDelegate> delegate,
36 PaymentRequestWebContentsManager* manager, 37 PaymentRequestWebContentsManager* manager,
37 mojo::InterfaceRequest<payments::mojom::PaymentRequest> request); 38 mojo::InterfaceRequest<payments::mojom::PaymentRequest> request);
38 ~PaymentRequest() override; 39 ~PaymentRequest() override;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 autofill::AutofillProfile* selected_contact_profile_; 149 autofill::AutofillProfile* selected_contact_profile_;
149 std::vector<std::unique_ptr<autofill::CreditCard>> card_cache_; 150 std::vector<std::unique_ptr<autofill::CreditCard>> card_cache_;
150 std::vector<autofill::CreditCard*> credit_cards_; 151 std::vector<autofill::CreditCard*> credit_cards_;
151 autofill::CreditCard* selected_credit_card_; 152 autofill::CreditCard* selected_credit_card_;
152 153
153 DISALLOW_COPY_AND_ASSIGN(PaymentRequest); 154 DISALLOW_COPY_AND_ASSIGN(PaymentRequest);
154 }; 155 };
155 156
156 } // namespace payments 157 } // namespace payments
157 158
158 #endif // COMPONENTS_PAYMENTS_PAYMENT_REQUEST_H_ 159 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_H_
OLDNEW
« no previous file with comments | « components/payments/content/payment_details_validation.cc ('k') | components/payments/content/payment_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698