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

Side by Side Diff: android_webview/native/aw_autofill_client.h

Issue 2789843004: [Payments] Upload card UI now has a CVC prompt (Closed)
Patch Set: Address code review comment Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | android_webview/native/aw_autofill_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/android/jni_weak_ref.h" 13 #include "base/android/jni_weak_ref.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "components/autofill/core/browser/autofill_client.h" 16 #include "components/autofill/core/browser/autofill_client.h"
17 #include "components/prefs/pref_registry_simple.h" 17 #include "components/prefs/pref_registry_simple.h"
18 #include "components/prefs/pref_service_factory.h" 18 #include "components/prefs/pref_service_factory.h"
19 #include "content/public/browser/web_contents_user_data.h" 19 #include "content/public/browser/web_contents_user_data.h"
20 #include "ui/android/view_android.h" 20 #include "ui/android/view_android.h"
21 21
22 namespace autofill { 22 namespace autofill {
23 class AutofillPopupDelegate; 23 class AutofillPopupDelegate;
24 class CardUnmaskDelegate; 24 class CardUnmaskDelegate;
25 class CreditCard; 25 class CreditCard;
26 class FormStructure; 26 class FormStructure;
27 class PersonalDataManager; 27 class PersonalDataManager;
28 class SaveCardBubbleController;
28 } 29 }
29 30
30 namespace content { 31 namespace content {
31 class WebContents; 32 class WebContents;
32 } 33 }
33 34
34 namespace gfx { 35 namespace gfx {
35 class RectF; 36 class RectF;
36 } 37 }
37 38
(...skipping 22 matching lines...) Expand all
60 bool GetSaveFormData(); 61 bool GetSaveFormData();
61 62
62 // AutofillClient: 63 // AutofillClient:
63 autofill::PersonalDataManager* GetPersonalDataManager() override; 64 autofill::PersonalDataManager* GetPersonalDataManager() override;
64 scoped_refptr<autofill::AutofillWebDataService> GetDatabase() override; 65 scoped_refptr<autofill::AutofillWebDataService> GetDatabase() override;
65 PrefService* GetPrefs() override; 66 PrefService* GetPrefs() override;
66 syncer::SyncService* GetSyncService() override; 67 syncer::SyncService* GetSyncService() override;
67 IdentityProvider* GetIdentityProvider() override; 68 IdentityProvider* GetIdentityProvider() override;
68 rappor::RapporServiceImpl* GetRapporServiceImpl() override; 69 rappor::RapporServiceImpl* GetRapporServiceImpl() override;
69 ukm::UkmService* GetUkmService() override; 70 ukm::UkmService* GetUkmService() override;
71 autofill::SaveCardBubbleController* GetSaveCardBubbleController() override;
70 void ShowAutofillSettings() override; 72 void ShowAutofillSettings() override;
71 void ShowUnmaskPrompt( 73 void ShowUnmaskPrompt(
72 const autofill::CreditCard& card, 74 const autofill::CreditCard& card,
73 UnmaskCardReason reason, 75 UnmaskCardReason reason,
74 base::WeakPtr<autofill::CardUnmaskDelegate> delegate) override; 76 base::WeakPtr<autofill::CardUnmaskDelegate> delegate) override;
75 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; 77 void OnUnmaskVerificationResult(PaymentsRpcResult result) override;
76 void ConfirmSaveCreditCardLocally(const autofill::CreditCard& card, 78 void ConfirmSaveCreditCardLocally(const autofill::CreditCard& card,
77 const base::Closure& callback) override; 79 const base::Closure& callback) override;
78 void ConfirmSaveCreditCardToCloud( 80 void ConfirmSaveCreditCardToCloud(
79 const autofill::CreditCard& card, 81 const autofill::CreditCard& card,
80 std::unique_ptr<base::DictionaryValue> legal_message, 82 std::unique_ptr<base::DictionaryValue> legal_message,
83 bool should_cvc_be_requested,
81 const base::Closure& callback) override; 84 const base::Closure& callback) override;
82 void ConfirmCreditCardFillAssist(const autofill::CreditCard& card, 85 void ConfirmCreditCardFillAssist(const autofill::CreditCard& card,
83 const base::Closure& callback) override; 86 const base::Closure& callback) override;
84 void LoadRiskData( 87 void LoadRiskData(
85 const base::Callback<void(const std::string&)>& callback) override; 88 const base::Callback<void(const std::string&)>& callback) override;
86 bool HasCreditCardScanFeature() override; 89 bool HasCreditCardScanFeature() override;
87 void ScanCreditCard(const CreditCardScanCallback& callback) override; 90 void ScanCreditCard(const CreditCardScanCallback& callback) override;
88 void ShowAutofillPopup( 91 void ShowAutofillPopup(
89 const gfx::RectF& element_bounds, 92 const gfx::RectF& element_bounds,
90 base::i18n::TextDirection text_direction, 93 base::i18n::TextDirection text_direction,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; 136 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_;
134 137
135 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); 138 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient);
136 }; 139 };
137 140
138 bool RegisterAwAutofillClient(JNIEnv* env); 141 bool RegisterAwAutofillClient(JNIEnv* env);
139 142
140 } // namespace android_webview 143 } // namespace android_webview
141 144
142 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ 145 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/native/aw_autofill_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698