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

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

Issue 869003003: Add RealPanWalletClient for handling card unmasking requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: brettw review Created 5 years, 11 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
« no previous file with comments | « components/autofill/core/browser/BUILD.gn ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_manager.h
diff --git a/components/autofill/core/browser/autofill_manager.h b/components/autofill/core/browser/autofill_manager.h
index ec9286c4ac8296614ee7a6c364fc60614cee0747..fd177d60b83a7979e43a8f415b12f06b837d782c 100644
--- a/components/autofill/core/browser/autofill_manager.h
+++ b/components/autofill/core/browser/autofill_manager.h
@@ -26,6 +26,7 @@
#include "components/autofill/core/browser/card_unmask_delegate.h"
#include "components/autofill/core/browser/form_structure.h"
#include "components/autofill/core/browser/personal_data_manager.h"
+#include "components/autofill/core/browser/wallet/real_pan_wallet_client.h"
#include "components/autofill/core/common/form_data.h"
namespace gfx {
@@ -56,7 +57,8 @@ struct FormFieldData;
// Manages saving and restoring the user's personal information entered into web
// forms. One per frame; owned by the AutofillDriver.
class AutofillManager : public AutofillDownloadManager::Observer,
- public CardUnmaskDelegate {
+ public CardUnmaskDelegate,
+ public wallet::RealPanWalletClient::Delegate {
public:
enum AutofillDownloadManagerState {
ENABLE_AUTOFILL_DOWNLOAD_MANAGER,
@@ -227,6 +229,10 @@ class AutofillManager : public AutofillDownloadManager::Observer,
void OnUnmaskResponse(const base::string16& cvc) override;
void OnUnmaskPromptClosed() override;
+ // wallet::RealPanWalletClient::Delegate:
+ void OnDidGetRealPan(const std::string& real_pan) override;
+ std::string GetOAuth2Token() override;
+
// A toy method called when the (fake) unmasking process has finished.
void OnUnmaskVerificationResult(bool success);
@@ -315,6 +321,9 @@ class AutofillManager : public AutofillDownloadManager::Observer,
AutofillClient* const client_;
+ // Handles real PAN requests.
+ wallet::RealPanWalletClient real_pan_client_;
+
std::string app_locale_;
// The personal data manager, used to save and load personal data to/from the
« no previous file with comments | « components/autofill/core/browser/BUILD.gn ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698