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

Side by Side Diff: components/payments/core/payment_request_delegate.h

Issue 2815763002: Prevent usage of web payments API over insecure HTTPS. (Closed)
Patch Set: Ganggui's comment. 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 COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DELEGATE_H_ 5 #ifndef COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DELEGATE_H_
6 #define COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DELEGATE_H_ 6 #define COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "components/autofill/core/browser/payments/full_card_request.h" 12 #include "components/autofill/core/browser/payments/full_card_request.h"
13 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/source.h" 13 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/source.h"
14 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/storage.h" 14 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/storage.h"
15 15
16 class GURL;
17
16 namespace i18n { 18 namespace i18n {
17 namespace addressinput { 19 namespace addressinput {
18 class Storage; 20 class Storage;
19 class Source; 21 class Source;
20 } // namespace addressinput 22 } // namespace addressinput
21 } // namespace i18n 23 } // namespace i18n
22 24
23 namespace autofill { 25 namespace autofill {
24 class CreditCard; 26 class CreditCard;
25 class PersonalDataManager; 27 class PersonalDataManager;
(...skipping 20 matching lines...) Expand all
46 48
47 // Gets the PersonalDataManager associated with this PaymentRequest flow. 49 // Gets the PersonalDataManager associated with this PaymentRequest flow.
48 // Cannot be null. 50 // Cannot be null.
49 virtual autofill::PersonalDataManager* GetPersonalDataManager() = 0; 51 virtual autofill::PersonalDataManager* GetPersonalDataManager() = 0;
50 52
51 virtual const std::string& GetApplicationLocale() const = 0; 53 virtual const std::string& GetApplicationLocale() const = 0;
52 54
53 // Returns whether the user is in Incognito mode. 55 // Returns whether the user is in Incognito mode.
54 virtual bool IsIncognito() const = 0; 56 virtual bool IsIncognito() const = 0;
55 57
58 // Returns true if the SSL certificate is valid. Should be called only for
59 // cryptographic schemes.
60 virtual bool IsSslCertificateValid() = 0;
61
62 // Returns the URL of the page that is currently being displayed.
63 virtual const GURL& GetLastCommittedURL() const = 0;
64
56 // Starts a FullCardRequest to unmask |credit_card|. 65 // Starts a FullCardRequest to unmask |credit_card|.
57 virtual void DoFullCardRequest( 66 virtual void DoFullCardRequest(
58 const autofill::CreditCard& credit_card, 67 const autofill::CreditCard& credit_card,
59 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> 68 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate>
60 result_delegate) = 0; 69 result_delegate) = 0;
61 70
62 // Returns the source and storage for country/region data loads. 71 // Returns the source and storage for country/region data loads.
63 virtual std::unique_ptr<const ::i18n::addressinput::Source> 72 virtual std::unique_ptr<const ::i18n::addressinput::Source>
64 GetAddressInputSource() = 0; 73 GetAddressInputSource() = 0;
65 virtual std::unique_ptr<::i18n::addressinput::Storage> 74 virtual std::unique_ptr<::i18n::addressinput::Storage>
66 GetAddressInputStorage() = 0; 75 GetAddressInputStorage() = 0;
67 }; 76 };
68 77
69 } // namespace payments 78 } // namespace payments
70 79
71 #endif // COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DELEGATE_H_ 80 #endif // COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698