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

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: ifdef 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 sign in promo, based on the triggered |field|
Evan Stade 2016/07/08 17:34:58 nit: for consistency, this should be "signin" ever
Mathieu 2016/07/08 18:10:02 Done.
98 // inside the |form|. Will also check whether sign-in is possible for this
Evan Stade 2016/07/08 17:34:58 nit: the last sentence is a bit redundant/confusin
Mathieu 2016/07/08 18:10:02 Done.
99 // user.
100 virtual bool ShouldShowCreditCardSigninPromo(const FormData& form,
101 const FormFieldData& field);
102
97 // Called from our external delegate so they cannot be private. 103 // Called from our external delegate so they cannot be private.
98 virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action, 104 virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action,
99 int query_id, 105 int query_id,
100 const FormData& form, 106 const FormData& form,
101 const FormFieldData& field, 107 const FormFieldData& field,
102 int unique_id); 108 int unique_id);
103 virtual void FillCreditCardForm(int query_id, 109 virtual void FillCreditCardForm(int query_id,
104 const FormData& form, 110 const FormData& form,
105 const FormFieldData& field, 111 const FormFieldData& field,
106 const CreditCard& credit_card, 112 const CreditCard& credit_card,
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 603 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
598 DontSaveCvcInAutocompleteHistory); 604 DontSaveCvcInAutocompleteHistory);
599 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard); 605 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSavePaymentsCard);
600 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); 606 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate);
601 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 607 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
602 }; 608 };
603 609
604 } // namespace autofill 610 } // namespace autofill
605 611
606 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ 612 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698