| 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 COMPONENTS_AUTOFILL_RENDERER_FORM_CACHE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_RENDERER_FORM_CACHE_H_ |
| 6 #define COMPONENTS_AUTOFILL_RENDERER_FORM_CACHE_H_ | 6 #define COMPONENTS_AUTOFILL_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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // field's overall predicted type. Also sets the title to include the field's | 56 // field's overall predicted type. Also sets the title to include the field's |
| 57 // heuristic type, server type, and signature; as well as the form's signature | 57 // heuristic type, server type, and signature; as well as the form's signature |
| 58 // and the experiment id for the server predictions. | 58 // and the experiment id for the server predictions. |
| 59 bool ShowPredictions(const FormDataPredictions& form); | 59 bool ShowPredictions(const FormDataPredictions& form); |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 // The cached web frames. | 62 // The cached web frames. |
| 63 std::set<WebKit::WebDocument> web_documents_; | 63 std::set<WebKit::WebDocument> web_documents_; |
| 64 | 64 |
| 65 // The cached initial values for <select> elements. | 65 // The cached initial values for <select> elements. |
| 66 std::map<const WebKit::WebSelectElement, string16> initial_select_values_; | 66 std::map<const WebKit::WebSelectElement, base::string16> |
| 67 initial_select_values_; |
| 67 | 68 |
| 68 // The cached initial values for checkable <input> elements. | 69 // The cached initial values for checkable <input> elements. |
| 69 std::map<const WebKit::WebInputElement, bool> initial_checked_state_; | 70 std::map<const WebKit::WebInputElement, bool> initial_checked_state_; |
| 70 | 71 |
| 71 DISALLOW_COPY_AND_ASSIGN(FormCache); | 72 DISALLOW_COPY_AND_ASSIGN(FormCache); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 } // namespace autofill | 75 } // namespace autofill |
| 75 | 76 |
| 76 #endif // COMPONENTS_AUTOFILL_RENDERER_FORM_CACHE_H_ | 77 #endif // COMPONENTS_AUTOFILL_RENDERER_FORM_CACHE_H_ |
| OLD | NEW |