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 CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ |
6 #define CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ | 6 #define CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 const std::string& GetApplicationLocale() const override; | 33 const std::string& GetApplicationLocale() const override; |
34 bool IsIncognito() const override; | 34 bool IsIncognito() const override; |
35 bool IsSslCertificateValid() override; | 35 bool IsSslCertificateValid() override; |
36 const GURL& GetLastCommittedURL() const override; | 36 const GURL& GetLastCommittedURL() const override; |
37 void DoFullCardRequest( | 37 void DoFullCardRequest( |
38 const autofill::CreditCard& credit_card, | 38 const autofill::CreditCard& credit_card, |
39 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> | 39 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> |
40 result_delegate) override; | 40 result_delegate) override; |
41 AddressNormalizer* GetAddressNormalizer() override; | 41 AddressNormalizer* GetAddressNormalizer() override; |
42 autofill::RegionDataLoader* GetRegionDataLoader() override; | 42 autofill::RegionDataLoader* GetRegionDataLoader() override; |
| 43 ukm::UkmService* GetUkmService() override; |
43 | 44 |
44 protected: | 45 protected: |
45 // Reference to the dialog so that we can satisfy calls to CloseDialog(). This | 46 // Reference to the dialog so that we can satisfy calls to CloseDialog(). This |
46 // reference is invalid once CloseDialog() has been called on it, because the | 47 // reference is invalid once CloseDialog() has been called on it, because the |
47 // dialog will be destroyed. Protected for testing. | 48 // dialog will be destroyed. Protected for testing. |
48 PaymentRequestDialog* dialog_; | 49 PaymentRequestDialog* dialog_; |
49 | 50 |
50 private: | 51 private: |
51 // Not owned but outlives the PaymentRequest object that owns this. | 52 // Not owned but outlives the PaymentRequest object that owns this. |
52 content::WebContents* web_contents_; | 53 content::WebContents* web_contents_; |
53 | 54 |
54 // The address normalizer to use for the duration of the Payment Request. | 55 // The address normalizer to use for the duration of the Payment Request. |
55 AddressNormalizerImpl address_normalizer_; | 56 AddressNormalizerImpl address_normalizer_; |
56 | 57 |
57 DISALLOW_COPY_AND_ASSIGN(ChromePaymentRequestDelegate); | 58 DISALLOW_COPY_AND_ASSIGN(ChromePaymentRequestDelegate); |
58 }; | 59 }; |
59 | 60 |
60 } // namespace payments | 61 } // namespace payments |
61 | 62 |
62 #endif // CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ | 63 #endif // CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ |
OLD | NEW |