| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // Returns the dialog type that the delegate corresponds to. | 36 // Returns the dialog type that the delegate corresponds to. |
| 37 virtual DialogType GetDialogType() const = 0; | 37 virtual DialogType GetDialogType() const = 0; |
| 38 | 38 |
| 39 // Returns the serialized fingerprint data to be sent to the Risk server. | 39 // Returns the serialized fingerprint data to be sent to the Risk server. |
| 40 virtual std::string GetRiskData() const = 0; | 40 virtual std::string GetRiskData() const = 0; |
| 41 | 41 |
| 42 // Returns the cookie value used for authorization when making requests to | 42 // Returns the cookie value used for authorization when making requests to |
| 43 // Wallet. | 43 // Wallet. |
| 44 virtual std::string GetWalletCookieValue() const = 0; | 44 virtual std::string GetWalletCookieValue() const = 0; |
| 45 | 45 |
| 46 // Whether or not shipping address is required by the delegate. |
| 47 virtual bool IsShippingAddressRequired() const = 0; |
| 48 |
| 46 // -------------------------------------------------------------------------- | 49 // -------------------------------------------------------------------------- |
| 47 // Callbacks called with responses from the Online Wallet backend. | 50 // Callbacks called with responses from the Online Wallet backend. |
| 48 // -------------------------------------------------------------------------- | 51 // -------------------------------------------------------------------------- |
| 49 | 52 |
| 50 // Called when an AcceptLegalDocuments request finishes successfully. | 53 // Called when an AcceptLegalDocuments request finishes successfully. |
| 51 virtual void OnDidAcceptLegalDocuments() = 0; | 54 virtual void OnDidAcceptLegalDocuments() = 0; |
| 52 | 55 |
| 53 // Called when an AuthenticateInstrument request finishes successfully. | 56 // Called when an AuthenticateInstrument request finishes successfully. |
| 54 virtual void OnDidAuthenticateInstrument(bool success) = 0; | 57 virtual void OnDidAuthenticateInstrument(bool success) = 0; |
| 55 | 58 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 76 virtual void OnWalletError(WalletClient::ErrorType error_type) = 0; | 79 virtual void OnWalletError(WalletClient::ErrorType error_type) = 0; |
| 77 | 80 |
| 78 protected: | 81 protected: |
| 79 virtual ~WalletClientDelegate() {} | 82 virtual ~WalletClientDelegate() {} |
| 80 }; | 83 }; |
| 81 | 84 |
| 82 } // namespace wallet | 85 } // namespace wallet |
| 83 } // namespace autofill | 86 } // namespace autofill |
| 84 | 87 |
| 85 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_ | 88 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_ |
| OLD | NEW |