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

Unified Diff: components/autofill/content/browser/wallet/required_action.h

Issue 1288093004: rAc Wallet extirpation round 4: clean out RPC code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gn Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/content/browser/wallet/required_action.h
diff --git a/components/autofill/content/browser/wallet/required_action.h b/components/autofill/content/browser/wallet/required_action.h
deleted file mode 100644
index eb536220953a3717bd244210099fce4d8bc9e7ea..0000000000000000000000000000000000000000
--- a/components/autofill/content/browser/wallet/required_action.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_REQUIRED_ACTION_H_
-#define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_REQUIRED_ACTION_H_
-
-#include <string>
-
-namespace autofill {
-namespace wallet {
-
-// Required actions are steps that must be taken before the current transaction
-// can proceed. Examples of this is include accepting the Terms of Service to
-// use Google Wallet (happens on first use or when the ToS are updated) or
-// typing a CVC when it's necessary verify the current user has access to the
-// backing card.
-enum RequiredAction {
- UNKNOWN_TYPE = 0, // Catch all type.
- CHOOSE_ANOTHER_INSTRUMENT_OR_ADDRESS,
- SETUP_WALLET,
- ACCEPT_TOS,
- GAIA_AUTH,
- UPDATE_EXPIRATION_DATE,
- UPGRADE_MIN_ADDRESS,
- INVALID_FORM_FIELD,
- VERIFY_CVV,
- PASSIVE_GAIA_AUTH,
- REQUIRE_PHONE_NUMBER,
-};
-
-// Static helper functions to determine if an RequiredAction applies to a
-// FullWallet, WalletItems, or SaveToWallet response.
-bool ActionAppliesToFullWallet(RequiredAction action);
-bool ActionAppliesToSaveToWallet(RequiredAction action);
-bool ActionAppliesToWalletItems(RequiredAction action);
-
-// Turn a string value of the parsed JSON response into an RequiredAction.
-RequiredAction ParseRequiredActionFromString(const std::string& str);
-
-} // namespace wallet
-} // namespace autofill
-
-#endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_REQUIRED_ACTION_H_

Powered by Google App Engine
This is Rietveld 408576698