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

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

Issue 2815763002: Prevent usage of web payments API over insecure HTTPS. (Closed)
Patch Set: Fix typo Created 3 years, 8 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 13 matching lines...) Expand all
24 explicit ChromePaymentRequestDelegate(content::WebContents* web_contents); 24 explicit ChromePaymentRequestDelegate(content::WebContents* web_contents);
25 ~ChromePaymentRequestDelegate() override {} 25 ~ChromePaymentRequestDelegate() override {}
26 26
27 // PaymentRequestDelegate: 27 // PaymentRequestDelegate:
28 void ShowDialog(PaymentRequest* request) override; 28 void ShowDialog(PaymentRequest* request) override;
29 void CloseDialog() override; 29 void CloseDialog() override;
30 void ShowErrorMessage() override; 30 void ShowErrorMessage() override;
31 autofill::PersonalDataManager* GetPersonalDataManager() override; 31 autofill::PersonalDataManager* GetPersonalDataManager() override;
32 const std::string& GetApplicationLocale() const override; 32 const std::string& GetApplicationLocale() const override;
33 bool IsIncognito() const override; 33 bool IsIncognito() const override;
34 bool IsSslCertificateValid() override;
35 const GURL& GetLastCommittedURL() const override;
34 void DoFullCardRequest( 36 void DoFullCardRequest(
35 const autofill::CreditCard& credit_card, 37 const autofill::CreditCard& credit_card,
36 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> 38 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate>
37 result_delegate) override; 39 result_delegate) override;
38 std::unique_ptr<const ::i18n::addressinput::Source> GetAddressInputSource() 40 std::unique_ptr<const ::i18n::addressinput::Source> GetAddressInputSource()
39 override; 41 override;
40 std::unique_ptr<::i18n::addressinput::Storage> GetAddressInputStorage() 42 std::unique_ptr<::i18n::addressinput::Storage> GetAddressInputStorage()
41 override; 43 override;
42 44
43 protected: 45 protected:
44 // 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
45 // 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
46 // dialog will be destroyed. Protected for testing. 48 // dialog will be destroyed. Protected for testing.
47 PaymentRequestDialog* dialog_; 49 PaymentRequestDialog* dialog_;
48 50
49 private: 51 private:
50 // Not owned but outlives the PaymentRequest object that owns this. 52 // Not owned but outlives the PaymentRequest object that owns this.
51 content::WebContents* web_contents_; 53 content::WebContents* web_contents_;
52 54
53 DISALLOW_COPY_AND_ASSIGN(ChromePaymentRequestDelegate); 55 DISALLOW_COPY_AND_ASSIGN(ChromePaymentRequestDelegate);
54 }; 56 };
55 57
56 } // namespace payments 58 } // namespace payments
57 59
58 #endif // CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_ 60 #endif // CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698