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

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

Issue 2876663002: [Web Payments] Add data attribution string to dialog (Closed)
Patch Set: Address comments, fix tests compile 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
« no previous file with comments | « no previous file | chrome/browser/payments/chrome_payment_request_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 23 matching lines...) Expand all
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 PrefService* GetPrefService() override;
44 46
45 protected: 47 protected:
46 // Reference to the dialog so that we can satisfy calls to CloseDialog(). This 48 // 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 49 // reference is invalid once CloseDialog() has been called on it, because the
48 // dialog will be destroyed. Protected for testing. 50 // dialog will be destroyed. Protected for testing.
49 PaymentRequestDialog* dialog_; 51 PaymentRequestDialog* dialog_;
50 52
51 private: 53 private:
52 // Not owned but outlives the PaymentRequest object that owns this. 54 // Not owned but outlives the PaymentRequest object that owns this.
53 content::WebContents* web_contents_; 55 content::WebContents* web_contents_;
54 56
55 // The address normalizer to use for the duration of the Payment Request. 57 // The address normalizer to use for the duration of the Payment Request.
56 AddressNormalizerImpl address_normalizer_; 58 AddressNormalizerImpl address_normalizer_;
57 59
58 DISALLOW_COPY_AND_ASSIGN(ChromePaymentRequestDelegate); 60 DISALLOW_COPY_AND_ASSIGN(ChromePaymentRequestDelegate);
59 }; 61 };
60 62
61 } // namespace payments 63 } // namespace payments
62 64
63 #endif // CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ 65 #endif // CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/payments/chrome_payment_request_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698