| 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_CONTENT_RENDERER_FORM_CACHE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_CACHE_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_CACHE_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_CACHE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 size_t ScanFormControlElements( | 57 size_t ScanFormControlElements( |
| 58 const std::vector<blink::WebFormControlElement>& control_elements, | 58 const std::vector<blink::WebFormControlElement>& control_elements, |
| 59 bool log_deprecation_messages); | 59 bool log_deprecation_messages); |
| 60 | 60 |
| 61 // The frame this FormCache is associated with. | 61 // The frame this FormCache is associated with. |
| 62 const blink::WebFrame& frame_; | 62 const blink::WebFrame& frame_; |
| 63 | 63 |
| 64 // The cached forms. Used to prevent re-extraction of forms. | 64 // The cached forms. Used to prevent re-extraction of forms. |
| 65 std::set<FormData> parsed_forms_; | 65 std::set<FormData> parsed_forms_; |
| 66 | 66 |
| 67 // The synthetic FormData is for all the fieldsets in the document without a | |
| 68 // form owner. | |
| 69 FormData synthetic_form_; | |
| 70 | |
| 71 // The cached initial values for <select> elements. | 67 // The cached initial values for <select> elements. |
| 72 std::map<const blink::WebSelectElement, base::string16> | 68 std::map<const blink::WebSelectElement, base::string16> |
| 73 initial_select_values_; | 69 initial_select_values_; |
| 74 | 70 |
| 75 // The cached initial values for checkable <input> elements. | 71 // The cached initial values for checkable <input> elements. |
| 76 std::map<const blink::WebInputElement, bool> initial_checked_state_; | 72 std::map<const blink::WebInputElement, bool> initial_checked_state_; |
| 77 | 73 |
| 78 DISALLOW_COPY_AND_ASSIGN(FormCache); | 74 DISALLOW_COPY_AND_ASSIGN(FormCache); |
| 79 }; | 75 }; |
| 80 | 76 |
| 81 } // namespace autofill | 77 } // namespace autofill |
| 82 | 78 |
| 83 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_CACHE_H_ | 79 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_CACHE_H_ |
| OLD | NEW |