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

Side by Side Diff: components/payments/content/payment_request_spec.h

Issue 2800713003: [Payments] Move parsing the PaymentMethodData to "core" (Closed)
Patch Set: fix test 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
« no previous file with comments | « no previous file | components/payments/content/payment_request_spec.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 COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_SPEC_H_ 5 #ifndef COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_SPEC_H_
6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_SPEC_H_ 6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_SPEC_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 86 }
87 87
88 const mojom::PaymentDetails& details() const { return *details_.get(); } 88 const mojom::PaymentDetails& details() const { return *details_.get(); }
89 89
90 private: 90 private:
91 friend class PaymentRequestDialogView; 91 friend class PaymentRequestDialogView;
92 void add_observer_for_testing(Observer* observer_for_testing) { 92 void add_observer_for_testing(Observer* observer_for_testing) {
93 observer_for_testing_ = observer_for_testing; 93 observer_for_testing_ = observer_for_testing;
94 } 94 }
95 95
96 // Validates the |method_data| and fills |supported_card_networks_|. 96 // Validates the |method_data| and fills |supported_card_networks_|,
97 // |supported_card_networks_set_| and |basic_card_specified_networks_|.
97 void PopulateValidatedMethodData( 98 void PopulateValidatedMethodData(
98 const std::vector<mojom::PaymentMethodDataPtr>& method_data); 99 const std::vector<mojom::PaymentMethodDataPtr>& method_data);
99 100
100 // Updates the selected_shipping_option based on the data passed to this 101 // Updates the selected_shipping_option based on the data passed to this
101 // payment request by the website. This will set selected_shipping_option_ to 102 // payment request by the website. This will set selected_shipping_option_ to
102 // the last option marked selected in the options array. 103 // the last option marked selected in the options array.
103 void UpdateSelectedShippingOption(); 104 void UpdateSelectedShippingOption();
104 105
105 // Will notify all observers that the spec is invalid. 106 // Will notify all observers that the spec is invalid.
106 void NotifyOnInvalidSpecProvided(); 107 void NotifyOnInvalidSpecProvided();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // notified. 139 // notified.
139 base::ObserverList<Observer> observers_; 140 base::ObserverList<Observer> observers_;
140 Observer* observer_for_testing_; 141 Observer* observer_for_testing_;
141 142
142 DISALLOW_COPY_AND_ASSIGN(PaymentRequestSpec); 143 DISALLOW_COPY_AND_ASSIGN(PaymentRequestSpec);
143 }; 144 };
144 145
145 } // namespace payments 146 } // namespace payments
146 147
147 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_SPEC_H_ 148 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_SPEC_H_
OLDNEW
« no previous file with comments | « no previous file | components/payments/content/payment_request_spec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698