OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_RENDERER_AUTOFILL_FORM_CACHE_H_ | 5 #ifndef CHROME_RENDERER_AUTOFILL_FORM_CACHE_H_ |
6 #define CHROME_RENDERER_AUTOFILL_FORM_CACHE_H_ | 6 #define CHROME_RENDERER_AUTOFILL_FORM_CACHE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // and the experiment id for the server predictions. | 47 // and the experiment id for the server predictions. |
48 bool ShowPredictions(const FormDataPredictions& form); | 48 bool ShowPredictions(const FormDataPredictions& form); |
49 | 49 |
50 private: | 50 private: |
51 // The cached web frames. | 51 // The cached web frames. |
52 std::set<WebKit::WebDocument> web_documents_; | 52 std::set<WebKit::WebDocument> web_documents_; |
53 | 53 |
54 // The cached initial values for <select> elements. | 54 // The cached initial values for <select> elements. |
55 std::map<const WebKit::WebSelectElement, string16> initial_select_values_; | 55 std::map<const WebKit::WebSelectElement, string16> initial_select_values_; |
56 | 56 |
| 57 // The cached initial values for checkable <input> elements. |
| 58 std::map<const WebKit::WebInputElement, bool> initial_checked_state_; |
| 59 |
57 DISALLOW_COPY_AND_ASSIGN(FormCache); | 60 DISALLOW_COPY_AND_ASSIGN(FormCache); |
58 }; | 61 }; |
59 | 62 |
60 } // namespace autofill | 63 } // namespace autofill |
61 | 64 |
62 #endif // CHROME_RENDERER_AUTOFILL_FORM_CACHE_H_ | 65 #endif // CHROME_RENDERER_AUTOFILL_FORM_CACHE_H_ |
OLD | NEW |