OLD | NEW |
(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_ |
OLD | NEW |