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_CONTENT_BROWSER_WALLET_WALLET_CLIENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_CLIENT_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_CLIENT_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_CLIENT_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 virtual void SaveInstrumentAndAddress(const Instrument& instrument, | 203 virtual void SaveInstrumentAndAddress(const Instrument& instrument, |
204 const Address& shipping_address, | 204 const Address& shipping_address, |
205 const std::string& obfuscated_gaia_id, | 205 const std::string& obfuscated_gaia_id, |
206 const GURL& source_url); | 206 const GURL& source_url); |
207 | 207 |
208 // SendAutocheckoutStatus is used for tracking the success of Autocheckout | 208 // SendAutocheckoutStatus is used for tracking the success of Autocheckout |
209 // flows. |status| is the result of the flow, |source_url| is the domain | 209 // flows. |status| is the result of the flow, |source_url| is the domain |
210 // where the purchase occured, and |google_transaction_id| is the same as the | 210 // where the purchase occured, and |google_transaction_id| is the same as the |
211 // one provided by GetWalletItems. |latency_statistics| contain statistics | 211 // one provided by GetWalletItems. |latency_statistics| contain statistics |
212 // required to measure Autocheckout process. | 212 // required to measure Autocheckout process. |
213 void SendAutocheckoutStatus( | 213 virtual void SendAutocheckoutStatus( |
214 autofill::AutocheckoutStatus status, | 214 autofill::AutocheckoutStatus status, |
215 const GURL& source_url, | 215 const GURL& source_url, |
216 const std::vector<AutocheckoutStatistic>& latency_statistics, | 216 const std::vector<AutocheckoutStatistic>& latency_statistics, |
217 const std::string& google_transaction_id); | 217 const std::string& google_transaction_id); |
218 | 218 |
219 // UpdateAddress updates Online Wallet with the data in |address|. | 219 // UpdateAddress updates Online Wallet with the data in |address|. |
220 virtual void UpdateAddress(const Address& address, const GURL& source_url); | 220 virtual void UpdateAddress(const Address& address, const GURL& source_url); |
221 | 221 |
222 // Updates Online Wallet with the data in |update_instrument_request| and, if | 222 // Updates Online Wallet with the data in |update_instrument_request| and, if |
223 // it's provided, |billing_address|. | 223 // it's provided, |billing_address|. |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 // When the current request started. Used to track client side latency. | 322 // When the current request started. Used to track client side latency. |
323 base::Time request_started_timestamp_; | 323 base::Time request_started_timestamp_; |
324 | 324 |
325 DISALLOW_COPY_AND_ASSIGN(WalletClient); | 325 DISALLOW_COPY_AND_ASSIGN(WalletClient); |
326 }; | 326 }; |
327 | 327 |
328 } // namespace wallet | 328 } // namespace wallet |
329 } // namespace autofill | 329 } // namespace autofill |
330 | 330 |
331 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_CLIENT_H_ | 331 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_CLIENT_H_ |
OLD | NEW |