| 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 COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_DELEGATE_H_ | 5 #ifndef COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_DELEGATE_H_ |
| 6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_DELEGATE_H_ | 6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace autofill { | 10 namespace autofill { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 // Closes the same dialog that was opened by this delegate. Must be safe to | 25 // Closes the same dialog that was opened by this delegate. Must be safe to |
| 26 // call when the dialog is not showing. | 26 // call when the dialog is not showing. |
| 27 virtual void CloseDialog() = 0; | 27 virtual void CloseDialog() = 0; |
| 28 | 28 |
| 29 // Gets the PersonalDataManager associated with this PaymentRequest flow. | 29 // Gets the PersonalDataManager associated with this PaymentRequest flow. |
| 30 // Cannot be null. | 30 // Cannot be null. |
| 31 virtual autofill::PersonalDataManager* GetPersonalDataManager() = 0; | 31 virtual autofill::PersonalDataManager* GetPersonalDataManager() = 0; |
| 32 | 32 |
| 33 virtual const std::string& GetApplicationLocale() const = 0; | 33 virtual const std::string& GetApplicationLocale() const = 0; |
| 34 |
| 35 // Returns whether the user is in Incognito mode. |
| 36 virtual bool IsIncognito() const = 0; |
| 34 }; | 37 }; |
| 35 | 38 |
| 36 } // namespace payments | 39 } // namespace payments |
| 37 | 40 |
| 38 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_DELEGATE_H_ | 41 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_DELEGATE_H_ |
| OLD | NEW |