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

Side by Side Diff: chrome/browser/ui/views/payments/payment_sheet_view_controller.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 11 matching lines...) Expand all
22 public PaymentRequestSpec::Observer, 22 public PaymentRequestSpec::Observer,
23 public PaymentRequestState::Observer { 23 public PaymentRequestState::Observer {
24 public: 24 public:
25 // Does not take ownership of the arguments, which should outlive this object. 25 // Does not take ownership of the arguments, which should outlive this object.
26 PaymentSheetViewController(PaymentRequestSpec* spec, 26 PaymentSheetViewController(PaymentRequestSpec* spec,
27 PaymentRequestState* state, 27 PaymentRequestState* state,
28 PaymentRequestDialogView* dialog); 28 PaymentRequestDialogView* dialog);
29 ~PaymentSheetViewController() override; 29 ~PaymentSheetViewController() override;
30 30
31 // PaymentRequestSpec::Observer: 31 // PaymentRequestSpec::Observer:
32 void OnInvalidSpecProvided() override {}
33 void OnStartUpdating(PaymentRequestSpec::UpdateReason reason) override; 32 void OnStartUpdating(PaymentRequestSpec::UpdateReason reason) override;
34 void OnSpecUpdated() override; 33 void OnSpecUpdated() override;
35 34
36 // PaymentRequestState::Observer: 35 // PaymentRequestState::Observer:
37 void OnSelectedInformationChanged() override; 36 void OnSelectedInformationChanged() override;
38 37
39 private: 38 private:
40 // PaymentRequestSheetController: 39 // PaymentRequestSheetController:
41 std::unique_ptr<views::Button> CreatePrimaryButton() override; 40 std::unique_ptr<views::Button> CreatePrimaryButton() override;
42 bool ShouldShowHeaderBackArrow() override; 41 bool ShouldShowHeaderBackArrow() override;
(...skipping 16 matching lines...) Expand all
59 58
60 const int widest_name_column_view_width_; 59 const int widest_name_column_view_width_;
61 PaymentRequestSpec::UpdateReason current_update_reason_; 60 PaymentRequestSpec::UpdateReason current_update_reason_;
62 61
63 DISALLOW_COPY_AND_ASSIGN(PaymentSheetViewController); 62 DISALLOW_COPY_AND_ASSIGN(PaymentSheetViewController);
64 }; 63 };
65 64
66 } // namespace payments 65 } // namespace payments
67 66
68 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_ 67 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698