| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AUTOFILL_WALLET_WALLET_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_WALLET_WALLET_CLIENT_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_WALLET_WALLET_CLIENT_H_ | 6 #define CHROME_BROWSER_AUTOFILL_WALLET_WALLET_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 // UpdateInstrument changes the instrument with id |instrument_id| with the | 107 // UpdateInstrument changes the instrument with id |instrument_id| with the |
| 108 // information in |billing_address|. Its primary use is for upgrading ZIP code | 108 // information in |billing_address|. Its primary use is for upgrading ZIP code |
| 109 // only addresses or those missing phone numbers. DO NOT change the name on | 109 // only addresses or those missing phone numbers. DO NOT change the name on |
| 110 // |billing_address| from the one returned by Online Wallet or this call will | 110 // |billing_address| from the one returned by Online Wallet or this call will |
| 111 // fail. | 111 // fail. |
| 112 void UpdateInstrument(const std::string& instrument_id, | 112 void UpdateInstrument(const std::string& instrument_id, |
| 113 const Address& billing_address, | 113 const Address& billing_address, |
| 114 WalletClientObserver* observer); | 114 WalletClientObserver* observer); |
| 115 | 115 |
| 116 // Whether there is a currently running request (i.e. |request_| != NULL). |
| 117 bool HasRequestInProgress() const; |
| 118 |
| 116 private: | 119 private: |
| 117 // TODO(ahutter): Implement this. | 120 // TODO(ahutter): Implement this. |
| 118 std::string GetRiskParams() { return ""; } | 121 std::string GetRiskParams() { return ""; } |
| 119 | 122 |
| 120 enum RequestType { | 123 enum RequestType { |
| 121 NO_PENDING_REQUEST, | 124 NO_PENDING_REQUEST, |
| 122 ACCEPT_LEGAL_DOCUMENTS, | 125 ACCEPT_LEGAL_DOCUMENTS, |
| 123 ENCRYPT_OTP, | 126 ENCRYPT_OTP, |
| 124 ESCROW_SENSITIVE_INFORMATION, | 127 ESCROW_SENSITIVE_INFORMATION, |
| 125 GET_FULL_WALLET, | 128 GET_FULL_WALLET, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 // to be initiated as only one request may be running at a given time. | 160 // to be initiated as only one request may be running at a given time. |
| 158 RequestType request_type_; | 161 RequestType request_type_; |
| 159 | 162 |
| 160 DISALLOW_COPY_AND_ASSIGN(WalletClient); | 163 DISALLOW_COPY_AND_ASSIGN(WalletClient); |
| 161 }; | 164 }; |
| 162 | 165 |
| 163 } // namespace wallet | 166 } // namespace wallet |
| 164 | 167 |
| 165 #endif // CHROME_BROWSER_AUTOFILL_WALLET_WALLET_CLIENT_H_ | 168 #endif // CHROME_BROWSER_AUTOFILL_WALLET_WALLET_CLIENT_H_ |
| 166 | 169 |
| OLD | NEW |