Chromium Code Reviews| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 274 const FormData& form, | 274 const FormData& form, |
| 275 const FormFieldData& field, | 275 const FormFieldData& field, |
| 276 const AutofillProfile& profile, | 276 const AutofillProfile& profile, |
| 277 size_t variant); | 277 size_t variant); |
| 278 | 278 |
| 279 // Fills or previews |data_model| in the |form|. | 279 // Fills or previews |data_model| in the |form|. |
| 280 void FillOrPreviewDataModelForm(AutofillDriver::RendererFormDataAction action, | 280 void FillOrPreviewDataModelForm(AutofillDriver::RendererFormDataAction action, |
| 281 int query_id, | 281 int query_id, |
| 282 const FormData& form, | 282 const FormData& form, |
| 283 const FormFieldData& field, | 283 const FormFieldData& field, |
| 284 const AutofillDataModel* data_model, | 284 const AutofillDataModel& data_model, |
|
Evan Stade
2015/02/18 21:05:35
this change is just here to make it a little clear
| |
| 285 size_t variant, | 285 size_t variant, |
| 286 bool is_credit_card); | 286 bool is_credit_card); |
| 287 | 287 |
| 288 // Fills |form_structure| cached element corresponding to |form|. | 288 // Fills |form_structure| cached element corresponding to |form|. |
| 289 // Returns false if the cached element was not found. | 289 // Returns false if the cached element was not found. |
| 290 bool FindCachedForm(const FormData& form, | 290 bool FindCachedForm(const FormData& form, |
| 291 FormStructure** form_structure) const WARN_UNUSED_RESULT; | 291 FormStructure** form_structure) const WARN_UNUSED_RESULT; |
| 292 | 292 |
| 293 // Fills |form_structure| and |autofill_field| with the cached elements | 293 // Fills |form_structure| and |autofill_field| with the cached elements |
| 294 // corresponding to |form| and |field|. This might have the side-effect of | 294 // corresponding to |form| and |field|. This might have the side-effect of |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 452 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 452 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 453 AutocompleteOffRespected); | 453 AutocompleteOffRespected); |
| 454 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 454 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 455 AutocompleteOffRespectedWithFlag); | 455 AutocompleteOffRespectedWithFlag); |
| 456 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 456 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 457 }; | 457 }; |
| 458 | 458 |
| 459 } // namespace autofill | 459 } // namespace autofill |
| 460 | 460 |
| 461 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 461 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |