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

Side by Side Diff: components/autofill/core/browser/autofill_manager.h

Issue 2124343002: [Autofill] Implement Credit Card Signin Promo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 // Sets an external delegate. 88 // Sets an external delegate.
89 void SetExternalDelegate(AutofillExternalDelegate* delegate); 89 void SetExternalDelegate(AutofillExternalDelegate* delegate);
90 90
91 void ShowAutofillSettings(); 91 void ShowAutofillSettings();
92 92
93 // Whether the |field| should show an entry to scan a credit card. 93 // Whether the |field| should show an entry to scan a credit card.
94 virtual bool ShouldShowScanCreditCard(const FormData& form, 94 virtual bool ShouldShowScanCreditCard(const FormData& form,
95 const FormFieldData& field); 95 const FormFieldData& field);
96 96
97 // Whether we should show the signin promo, based on the triggered |field|
98 // inside the |form|.
99 virtual bool ShouldShowCreditCardSigninPromo(const FormData& form,
100 const FormFieldData& field);
101
97 // Called from our external delegate so they cannot be private. 102 // Called from our external delegate so they cannot be private.
98 virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action, 103 virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action,
99 int query_id, 104 int query_id,
100 const FormData& form, 105 const FormData& form,
101 const FormFieldData& field, 106 const FormFieldData& field,
102 int unique_id); 107 int unique_id);
103 virtual void FillCreditCardForm(int query_id, 108 virtual void FillCreditCardForm(int query_id,
104 const FormData& form, 109 const FormData& form,
105 const FormFieldData& field, 110 const FormFieldData& field,
106 const CreditCard& credit_card, 111 const CreditCard& credit_card,
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 602 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
598 DontSaveCvcInAutocompleteHistory); 603 DontSaveCvcInAutocompleteHistory);
599 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); 604 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard);
600 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); 605 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate);
601 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 606 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
602 }; 607 };
603 608
604 } // namespace autofill 609 } // namespace autofill
605 610
606 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ 611 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698