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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 | 14 |
15 namespace webkit_glue { | 15 namespace webkit_glue { |
16 struct FormData; | 16 struct FormData; |
17 struct FormDataPredictions; | 17 struct FormDataPredictions; |
18 } // namespace webkit_glue | 18 } // namespace webkit_glue |
19 | 19 |
20 namespace WebKit { | 20 namespace WebKit { |
21 class WebDocument; | 21 class WebDocument; |
22 class WebFormControlElement; | |
23 class WebFrame; | 22 class WebFrame; |
24 class WebInputElement; | 23 class WebInputElement; |
25 class WebSelectElement; | 24 class WebSelectElement; |
26 } // namespace WebKit | 25 } // namespace WebKit |
27 | 26 |
28 namespace autofill { | 27 namespace autofill { |
29 | 28 |
30 // Manages the forms in a RenderView. | 29 // Manages the forms in a RenderView. |
31 class FormCache { | 30 class FormCache { |
32 public: | 31 public: |
(...skipping 24 matching lines...) Expand all Loading... |
57 | 56 |
58 // The cached initial values for <select> elements. | 57 // The cached initial values for <select> elements. |
59 std::map<const WebKit::WebSelectElement, string16> initial_select_values_; | 58 std::map<const WebKit::WebSelectElement, string16> initial_select_values_; |
60 | 59 |
61 DISALLOW_COPY_AND_ASSIGN(FormCache); | 60 DISALLOW_COPY_AND_ASSIGN(FormCache); |
62 }; | 61 }; |
63 | 62 |
64 } // namespace autofill | 63 } // namespace autofill |
65 | 64 |
66 #endif // CHROME_RENDERER_AUTOFILL_FORM_CACHE_H_ | 65 #endif // CHROME_RENDERER_AUTOFILL_FORM_CACHE_H_ |
OLD | NEW |