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

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
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 // SendAutocheckoutStatus is used for tracking the success of Autocheckout 98 // SendAutocheckoutStatus is used for tracking the success of Autocheckout
99 // flows. |status| is the result of the flow, |merchant_domain| is the domain 99 // flows. |status| is the result of the flow, |merchant_domain| is the domain
100 // where the purchase occured, and |google_transaction_id| is the same as the 100 // where the purchase occured, and |google_transaction_id| is the same as the
101 // one provided by GetWalletItems. 101 // one provided by GetWalletItems.
102 void SendAutocheckoutStatus(autofill::AutocheckoutStatus status, 102 void SendAutocheckoutStatus(autofill::AutocheckoutStatus status,
103 const std::string& merchant_domain, 103 const std::string& merchant_domain,
104 const std::string& google_transaction_id, 104 const std::string& google_transaction_id,
105 WalletClientObserver* observer); 105 WalletClientObserver* observer);
106 106
107 // Whether there is a currently running request (i.e. if |request_| != NULL).
108 bool IsRequestInProgress() const;
Ilya Sherman 2013/02/11 06:07:01 Optional nit: Perhaps "Has" rather than "Is"?
109
107 private: 110 private:
108 // TODO(ahutter): Implement this. 111 // TODO(ahutter): Implement this.
109 std::string GetRiskParams() { return ""; } 112 std::string GetRiskParams() { return ""; }
110 113
111 enum RequestType { 114 enum RequestType {
112 NO_PENDING_REQUEST, 115 NO_PENDING_REQUEST,
113 ACCEPT_LEGAL_DOCUMENTS, 116 ACCEPT_LEGAL_DOCUMENTS,
114 ENCRYPT_OTP, 117 ENCRYPT_OTP,
115 ESCROW_SENSITIVE_INFORMATION, 118 ESCROW_SENSITIVE_INFORMATION,
116 GET_FULL_WALLET, 119 GET_FULL_WALLET,
(...skipping 30 matching lines...) Expand all
147 // to be initiated as only one request may be running at a given time. 150 // to be initiated as only one request may be running at a given time.
148 RequestType request_type_; 151 RequestType request_type_;
149 152
150 DISALLOW_COPY_AND_ASSIGN(WalletClient); 153 DISALLOW_COPY_AND_ASSIGN(WalletClient);
151 }; 154 };
152 155
153 } // namespace wallet 156 } // namespace wallet
154 157
155 #endif // CHROME_BROWSER_AUTOFILL_WALLET_WALLET_CLIENT_H_ 158 #endif // CHROME_BROWSER_AUTOFILL_WALLET_WALLET_CLIENT_H_
156 159
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698