| 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 23 matching lines...) Expand all Loading... |
| 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 ukm::UkmService* GetUkmService() override; |
| 44 std::string GetAuthenticatedEmail() const override; |
| 45 content::BrowserContext* GetBrowserContext() override; |
| 46 void MarkFirstTransactionAsCompleted() override; |
| 44 | 47 |
| 45 protected: | 48 protected: |
| 46 // Reference to the dialog so that we can satisfy calls to CloseDialog(). This | 49 // Reference to the dialog so that we can satisfy calls to CloseDialog(). This |
| 47 // reference is invalid once CloseDialog() has been called on it, because the | 50 // reference is invalid once CloseDialog() has been called on it, because the |
| 48 // dialog will be destroyed. Protected for testing. | 51 // dialog will be destroyed. Protected for testing. |
| 49 PaymentRequestDialog* dialog_; | 52 PaymentRequestDialog* dialog_; |
| 50 | 53 |
| 51 private: | 54 private: |
| 52 // Not owned but outlives the PaymentRequest object that owns this. | 55 // Not owned but outlives the PaymentRequest object that owns this. |
| 53 content::WebContents* web_contents_; | 56 content::WebContents* web_contents_; |
| 54 | 57 |
| 55 // The address normalizer to use for the duration of the Payment Request. | 58 // The address normalizer to use for the duration of the Payment Request. |
| 56 AddressNormalizerImpl address_normalizer_; | 59 AddressNormalizerImpl address_normalizer_; |
| 57 | 60 |
| 58 DISALLOW_COPY_AND_ASSIGN(ChromePaymentRequestDelegate); | 61 DISALLOW_COPY_AND_ASSIGN(ChromePaymentRequestDelegate); |
| 59 }; | 62 }; |
| 60 | 63 |
| 61 } // namespace payments | 64 } // namespace payments |
| 62 | 65 |
| 63 #endif // CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ | 66 #endif // CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ |
| OLD | NEW |