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

Side by Side Diff: chrome/browser/payments/chrome_payment_request_delegate.h

Issue 2851893002: [Payments] Record CanMakePayment metrics on Desktop. (Closed)
Patch Set: Windows Fix and Rebase Fix Created 3 years, 7 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 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/payments/android/journey_logger_android.cc ('k') | chrome/browser/payments/chrome_payment_request_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698