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

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

Issue 896583003: Add risk data to getrealpan request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes for android 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/card_unmask_delegate.h
diff --git a/components/autofill/core/browser/card_unmask_delegate.h b/components/autofill/core/browser/card_unmask_delegate.h
index 0ce1a8758e84bc5b911dd734e13cb9f6b895bd4f..5cc664c7445bd931117e5236a013d405dc6ad846 100644
--- a/components/autofill/core/browser/card_unmask_delegate.h
+++ b/components/autofill/core/browser/card_unmask_delegate.h
@@ -5,17 +5,30 @@
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_CARD_UNMASK_DELEGATE_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_CARD_UNMASK_DELEGATE_H_
+#include <string>
+
#include "base/strings/string16.h"
namespace autofill {
class CardUnmaskDelegate {
public:
+ struct UnmaskResponse {
+ UnmaskResponse();
+ ~UnmaskResponse();
+
+ // User input data.
+ base::string16 cvc;
+ base::string16 exp_month;
+ base::string16 exp_year;
+
+ // Risk fingerprint.
+ std::string risk_data;
+ };
+
// Called when the user has attempted a verification. Prompt is still
// open at this point.
- virtual void OnUnmaskResponse(const base::string16& cvc,
- const base::string16& exp_month,
- const base::string16& exp_year) = 0;
+ virtual void OnUnmaskResponse(const UnmaskResponse& response) = 0;
// Called when the unmask prompt is closed (e.g., cancelled).
virtual void OnUnmaskPromptClosed() = 0;

Powered by Google App Engine
This is Rietveld 408576698