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 |
67 // The cached initial values for <select> elements. | 71 // The cached initial values for <select> elements. |
68 std::map<const blink::WebSelectElement, base::string16> | 72 std::map<const blink::WebSelectElement, base::string16> |
69 initial_select_values_; | 73 initial_select_values_; |
70 | 74 |
71 // The cached initial values for checkable <input> elements. | 75 // The cached initial values for checkable <input> elements. |
72 std::map<const blink::WebInputElement, bool> initial_checked_state_; | 76 std::map<const blink::WebInputElement, bool> initial_checked_state_; |
73 | 77 |
74 DISALLOW_COPY_AND_ASSIGN(FormCache); | 78 DISALLOW_COPY_AND_ASSIGN(FormCache); |
75 }; | 79 }; |
76 | 80 |
77 } // namespace autofill | 81 } // namespace autofill |
78 | 82 |
79 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_CACHE_H_ | 83 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_CACHE_H_ |
OLD | NEW |