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

Side by Side Diff: components/payments/core/autofill_payment_instrument.h

Issue 2733953003: [Payments] Return a basic card response (Closed)
Patch Set: tests 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
(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 COMPONENTS_PAYMENTS_CORE_AUTOFILL_PAYMENT_INSTRUMENT_H_
6 #define COMPONENTS_PAYMENTS_CORE_AUTOFILL_PAYMENT_INSTRUMENT_H_
7
8 #include <set>
9 #include <string>
10 #include <vector>
11
12 #include "base/macros.h"
13 #include "components/autofill/core/browser/credit_card.h"
14 #include "components/payments/core/payment_instrument.h"
15
16 namespace autofill {
17 class AutofillProfile;
18 }
19
20 namespace payments {
21
22 // Represents an Autofill/Payments credit card form of payment in Payment
23 // Request.
24 class AutofillPaymentInstrument : public PaymentInstrument {
25 public:
26 AutofillPaymentInstrument(
please use gerrit instead 2017/03/08 14:46:09 Mention that |billing_profiles| are owned by the c
Mathieu 2017/03/08 18:04:25 Done.
27 const std::string& method_name,
28 const autofill::CreditCard& credit_card,
29 const std::vector<autofill::AutofillProfile*>& billing_profiles,
30 const std::string& app_locale);
31 ~AutofillPaymentInstrument() override;
32
33 // PaymentInstrument:
34 void InvokePaymentApp(PaymentInstrument::Delegate* delegate) override;
35
36 private:
37 const autofill::CreditCard credit_card_;
38 const std::vector<autofill::AutofillProfile*>& billing_profiles_;
39 const std::string app_locale_;
40
41 DISALLOW_COPY_AND_ASSIGN(AutofillPaymentInstrument);
42 };
43
44 } // namespace payments
45
46 #endif // COMPONENTS_PAYMENTS_CORE_AUTOFILL_PAYMENT_INSTRUMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698