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

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

Issue 11777007: Adds wallet::RequiredAction for when we start interacting with Online Wallet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ahutter@ review Created 7 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_AUTOFILL_WALLET_REQUIRED_ACTION_H_
6 #define CHROME_BROWSER_AUTOFILL_WALLET_REQUIRED_ACTION_H_
7
8 #include <string>
9
10 namespace wallet {
11
12 enum RequiredAction {
13 UNKNOWN_TYPE = 0, // Catch all type, not in proto.
14 SETUP_WALLET,
15 ACCEPT_TOS,
16 GAIA_AUTH,
17 UPDATE_EXPIRATION_DATE,
18 UPGRADE_MIN_ADDRESS,
19 INVALID_FORM_FIELD,
20 CVC_RISK_CHALLENGE,
21 };
22
23 // Static helper functions to determine if an RequiredAction applies to either a
24 // FullWallet or WalletItems.
25 bool ActionAppliesToFullWallet(RequiredAction action);
26 bool ActionAppliesToWalletItems(RequiredAction action);
27
28 // Turn a string value of the parsed JSON response into an RequiredAction.
29 RequiredAction ParseRequiredActionFromString(const std::string& str);
30
31 } // namespace wallet
32
33 #endif // CHROME_BROWSER_AUTOFILL_WALLET_REQUIRED_ACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698