OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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_CORE_AUTOFILL_PAYMENT_INSTRUMENT_H_ | 5 #ifndef COMPONENTS_PAYMENTS_CORE_AUTOFILL_PAYMENT_INSTRUMENT_H_ |
6 #define COMPONENTS_PAYMENTS_CORE_AUTOFILL_PAYMENT_INSTRUMENT_H_ | 6 #define COMPONENTS_PAYMENTS_CORE_AUTOFILL_PAYMENT_INSTRUMENT_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 24 matching lines...) Expand all Loading... |
35 const std::vector<autofill::AutofillProfile*>& billing_profiles, | 35 const std::vector<autofill::AutofillProfile*>& billing_profiles, |
36 const std::string& app_locale, | 36 const std::string& app_locale, |
37 PaymentRequestDelegate* payment_request_delegate); | 37 PaymentRequestDelegate* payment_request_delegate); |
38 ~AutofillPaymentInstrument() override; | 38 ~AutofillPaymentInstrument() override; |
39 | 39 |
40 // PaymentInstrument: | 40 // PaymentInstrument: |
41 void InvokePaymentApp(PaymentInstrument::Delegate* delegate) override; | 41 void InvokePaymentApp(PaymentInstrument::Delegate* delegate) override; |
42 bool IsCompleteForPayment() override; | 42 bool IsCompleteForPayment() override; |
43 base::string16 GetMissingInfoLabel() override; | 43 base::string16 GetMissingInfoLabel() override; |
44 bool IsValidForCanMakePayment() override; | 44 bool IsValidForCanMakePayment() override; |
| 45 void RecordUse() override; |
45 | 46 |
46 // autofill::payments::FullCardRequest::ResultDelegate: | 47 // autofill::payments::FullCardRequest::ResultDelegate: |
47 void OnFullCardRequestSucceeded(const autofill::CreditCard& card, | 48 void OnFullCardRequestSucceeded(const autofill::CreditCard& card, |
48 const base::string16& cvc) override; | 49 const base::string16& cvc) override; |
49 void OnFullCardRequestFailed() override; | 50 void OnFullCardRequestFailed() override; |
50 | 51 |
51 // AddressNormalizer::Delegate: | 52 // AddressNormalizer::Delegate: |
52 void OnAddressNormalized( | 53 void OnAddressNormalized( |
53 const autofill::AutofillProfile& normalized_profile) override; | 54 const autofill::AutofillProfile& normalized_profile) override; |
54 void OnCouldNotNormalize(const autofill::AutofillProfile& profile) override; | 55 void OnCouldNotNormalize(const autofill::AutofillProfile& profile) override; |
(...skipping 21 matching lines...) Expand all Loading... |
76 bool is_waiting_for_billing_address_normalization_; | 77 bool is_waiting_for_billing_address_normalization_; |
77 | 78 |
78 base::WeakPtrFactory<AutofillPaymentInstrument> weak_ptr_factory_; | 79 base::WeakPtrFactory<AutofillPaymentInstrument> weak_ptr_factory_; |
79 | 80 |
80 DISALLOW_COPY_AND_ASSIGN(AutofillPaymentInstrument); | 81 DISALLOW_COPY_AND_ASSIGN(AutofillPaymentInstrument); |
81 }; | 82 }; |
82 | 83 |
83 } // namespace payments | 84 } // namespace payments |
84 | 85 |
85 #endif // COMPONENTS_PAYMENTS_CORE_AUTOFILL_PAYMENT_INSTRUMENT_H_ | 86 #endif // COMPONENTS_PAYMENTS_CORE_AUTOFILL_PAYMENT_INSTRUMENT_H_ |
OLD | NEW |