| OLD | NEW |
| 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_REQUIRED_ACTION_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WALLET_REQUIRED_ACTION_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_WALLET_REQUIRED_ACTION_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_REQUIRED_ACTION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace autofill { | 10 namespace autofill { |
| 11 namespace wallet { | 11 namespace wallet { |
| 12 | 12 |
| 13 // Required actions are steps that must be taken before the current transaction | 13 // Required actions are steps that must be taken before the current transaction |
| 14 // can proceed. Examples of this is include accepting the Terms of Service to | 14 // can proceed. Examples of this is include accepting the Terms of Service to |
| 15 // use Google Wallet (happens on first use or when the ToS are updated) or | 15 // use Google Wallet (happens on first use or when the ToS are updated) or |
| 16 // typing a CVC when it's necessary verify the current user has access to the | 16 // typing a CVC when it's necessary verify the current user has access to the |
| (...skipping 16 matching lines...) Expand all Loading... |
| 33 bool ActionAppliesToFullWallet(RequiredAction action); | 33 bool ActionAppliesToFullWallet(RequiredAction action); |
| 34 bool ActionAppliesToSaveToWallet(RequiredAction action); | 34 bool ActionAppliesToSaveToWallet(RequiredAction action); |
| 35 bool ActionAppliesToWalletItems(RequiredAction action); | 35 bool ActionAppliesToWalletItems(RequiredAction action); |
| 36 | 36 |
| 37 // Turn a string value of the parsed JSON response into an RequiredAction. | 37 // Turn a string value of the parsed JSON response into an RequiredAction. |
| 38 RequiredAction ParseRequiredActionFromString(const std::string& str); | 38 RequiredAction ParseRequiredActionFromString(const std::string& str); |
| 39 | 39 |
| 40 } // namespace wallet | 40 } // namespace wallet |
| 41 } // namespace autofill | 41 } // namespace autofill |
| 42 | 42 |
| 43 #endif // CHROME_BROWSER_AUTOFILL_WALLET_REQUIRED_ACTION_H_ | 43 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_REQUIRED_ACTION_H_ |
| OLD | NEW |