| Index: components/autofill/content/browser/wallet/wallet_client.h
|
| diff --git a/components/autofill/content/browser/wallet/wallet_client.h b/components/autofill/content/browser/wallet/wallet_client.h
|
| index 22d0bd54ccf6df2b82f3ed05d9d8989a96653a5f..81234c2bf57b01343d475b6be7bd7a8f168eb84d 100644
|
| --- a/components/autofill/content/browser/wallet/wallet_client.h
|
| +++ b/components/autofill/content/browser/wallet/wallet_client.h
|
| @@ -165,10 +165,16 @@ class WalletClient : public net::URLFetcherDelegate {
|
| virtual void GetFullWallet(const FullWalletRequest& full_wallet_request);
|
|
|
| // Saves the data in |instrument| and/or |address| to Wallet. |instrument|
|
| - // does not have to be complete if its being used to update an existing
|
| + // does not have to be complete if it's being used to update an existing
|
| // instrument, like in the case of expiration date or address only updates.
|
| - virtual void SaveToWallet(scoped_ptr<Instrument> instrument,
|
| - scoped_ptr<Address> address);
|
| + // |reference_instrument| and |reference_address| are the original instrument
|
| + // and address to be updated on the server (and should be NULL if |instrument|
|
| + // or |address| are new data).
|
| + virtual void SaveToWallet(
|
| + scoped_ptr<Instrument> instrument,
|
| + scoped_ptr<Address> address,
|
| + const WalletItems::MaskedInstrument* reference_instrument,
|
| + const Address* reference_address);
|
|
|
| bool HasRequestInProgress() const;
|
|
|
| @@ -202,7 +208,8 @@ class WalletClient : public net::URLFetcherDelegate {
|
| // |delegate_| when the request is complete.
|
| void MakeWalletRequest(const GURL& url,
|
| const std::string& post_body,
|
| - const std::string& mime_type);
|
| + const std::string& mime_type,
|
| + RequestType request_type);
|
|
|
| // Performs bookkeeping tasks for any invalid requests.
|
| void HandleMalformedResponse(RequestType request_type,
|
|
|