Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Side by Side Diff: chrome/browser/autofill/wallet/wallet_client.h

Issue 12221040: Interactive autofill: Handle Online Wallet being unavailable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/autofill/wallet/wallet_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/autofill/wallet/wallet_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698