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

Unified Diff: components/autofill/core/browser/autofill_client.h

Issue 969223002: Autofill wallet -- handle several classes of error in unmasking prompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: local Created 5 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/browser/autofill_client.h
diff --git a/components/autofill/core/browser/autofill_client.h b/components/autofill/core/browser/autofill_client.h
index 534aa68f9bfa00be757e0468cdbbc571312ba245..ef3039b84ec759ed19c35086452e9f9ed604a183 100644
--- a/components/autofill/core/browser/autofill_client.h
+++ b/components/autofill/core/browser/autofill_client.h
@@ -55,6 +55,21 @@ class AutofillClient {
AutocompleteResultErrorInvalid,
};
+ enum GetRealPanResult {
+ // Request succeeded.
+ SUCCESS,
+
+ // Request failed; try again.
+ TRY_AGAIN_FAILURE,
+
+ // Request failed; don't try again.
+ PERMANENT_FAILURE,
+
+ // Unable to connect to Wallet servers. Prompt user to check internet
+ // connection.
+ NETWORK_ERROR,
+ };
+
typedef base::Callback<void(RequestAutocompleteResult,
const base::string16&,
const FormStructure*)> ResultCallback;
@@ -87,7 +102,7 @@ class AutofillClient {
// information to proceed.
virtual void ShowUnmaskPrompt(const CreditCard& card,
base::WeakPtr<CardUnmaskDelegate> delegate) = 0;
- virtual void OnUnmaskVerificationResult(bool success) = 0;
+ virtual void OnUnmaskVerificationResult(GetRealPanResult result) = 0;
// Run |save_card_callback| if the credit card should be imported as personal
// data. |metric_logger| can be used to log user actions.
« no previous file with comments | « chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc ('k') | components/autofill/core/browser/autofill_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698