| OLD | NEW |
| 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_UI_VIEWS_PAYMENTS_PROFILE_LIST_VIEW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PROFILE_LIST_VIEW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PROFILE_LIST_VIEW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PROFILE_LIST_VIEW_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 ProfileListViewController(PaymentRequest* request, | 57 ProfileListViewController(PaymentRequest* request, |
| 58 PaymentRequestDialogView* dialog); | 58 PaymentRequestDialogView* dialog); |
| 59 | 59 |
| 60 // Returns the profiles cached by |request| which are appropriate for display | 60 // Returns the profiles cached by |request| which are appropriate for display |
| 61 // in this context. | 61 // in this context. |
| 62 virtual std::vector<autofill::AutofillProfile*> GetProfiles() = 0; | 62 virtual std::vector<autofill::AutofillProfile*> GetProfiles() = 0; |
| 63 | 63 |
| 64 // Returns the string displayed at the top of the view. | 64 // Returns the string displayed at the top of the view. |
| 65 virtual base::string16 GetHeaderString() = 0; | 65 virtual base::string16 GetHeaderString() = 0; |
| 66 | 66 |
| 67 // Not owned. Never null. Outlives this object. | |
| 68 PaymentRequest* request_; | |
| 69 | |
| 70 private: | 67 private: |
| 71 std::unique_ptr<views::Button> CreateRow(autofill::AutofillProfile* profile); | 68 std::unique_ptr<views::Button> CreateRow(autofill::AutofillProfile* profile); |
| 72 PaymentRequestItemList list_; | 69 PaymentRequestItemList list_; |
| 73 | 70 |
| 74 DISALLOW_COPY_AND_ASSIGN(ProfileListViewController); | 71 DISALLOW_COPY_AND_ASSIGN(ProfileListViewController); |
| 75 }; | 72 }; |
| 76 | 73 |
| 77 } // namespace payments | 74 } // namespace payments |
| 78 | 75 |
| 79 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PROFILE_LIST_VIEW_CONTROLLER_H_ | 76 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PROFILE_LIST_VIEW_CONTROLLER_H_ |
| OLD | NEW |