| OLD | NEW |
| 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 Loading... |
| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 467 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 462 AutocompleteOffRespected); | 468 AutocompleteOffRespected); |
| 463 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 469 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 464 AutocompleteOffRespectedWithFlag); | 470 AutocompleteOffRespectedWithFlag); |
| 465 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 471 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 466 }; | 472 }; |
| 467 | 473 |
| 468 } // namespace autofill | 474 } // namespace autofill |
| 469 | 475 |
| 470 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 476 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |