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

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

Issue 1029233002: Autofill - don't prompt to unmask a credit card if the number isn't needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve histograms conflict Created 5 years, 9 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 | components/autofill/core/browser/autofill_manager.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 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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // Gets the profile referred by |unique_id| and populates |variant| 253 // Gets the profile referred by |unique_id| and populates |variant|
254 // based on it. Returns true if the profile exists. 254 // based on it. Returns true if the profile exists.
255 bool GetProfile(int unique_id, 255 bool GetProfile(int unique_id,
256 const AutofillProfile** profile, 256 const AutofillProfile** profile,
257 size_t* variant); 257 size_t* variant);
258 258
259 // Gets the credit card referred by |unique_id| and populates |variant| 259 // Gets the credit card referred by |unique_id| and populates |variant|
260 // based on it. Returns true if the credit card exists. 260 // based on it. Returns true if the credit card exists.
261 bool GetCreditCard(int unique_id, const CreditCard** credit_card); 261 bool GetCreditCard(int unique_id, const CreditCard** credit_card);
262 262
263 // Determines whether a fill on |form| initiated from |field| will wind up
264 // filling a credit card number. This is useful to determine if we will need
265 // to unmask a card.
266 bool WillFillCreditCardNumber(const FormData& form,
267 const FormFieldData& field);
268
263 // Fills or previews the credit card form. 269 // Fills or previews the credit card form.
264 // Assumes the form and field are valid. 270 // Assumes the form and field are valid.
265 void FillOrPreviewCreditCardForm( 271 void FillOrPreviewCreditCardForm(
266 AutofillDriver::RendererFormDataAction action, 272 AutofillDriver::RendererFormDataAction action,
267 int query_id, 273 int query_id,
268 const FormData& form, 274 const FormData& form,
269 const FormFieldData& field, 275 const FormFieldData& field,
270 const CreditCard& credit_card, 276 const CreditCard& credit_card,
271 size_t variant); 277 size_t variant);
272 278
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 469 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
464 AutocompleteOffRespected); 470 AutocompleteOffRespected);
465 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 471 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
466 AutocompleteOffRespectedWithFlag); 472 AutocompleteOffRespectedWithFlag);
467 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 473 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
468 }; 474 };
469 475
470 } // namespace autofill 476 } // namespace autofill
471 477
472 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ 478 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698