OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__ | 5 #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__ |
6 #define WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__ | 6 #define WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__ |
7 | 7 |
| 8 #include <set> |
| 9 |
8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
9 | 11 |
10 MSVC_PUSH_WARNING_LEVEL(0); | 12 MSVC_PUSH_WARNING_LEVEL(0); |
11 #include "FrameLoaderClient.h" | 13 #include "FrameLoaderClient.h" |
12 MSVC_POP_WARNING(); | 14 MSVC_POP_WARNING(); |
13 | 15 |
14 #include "build/build_config.h" | 16 #include "build/build_config.h" |
15 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
16 #include "webkit/glue/webview_delegate.h" | 18 #include "webkit/glue/webview_delegate.h" |
17 #include "webkit/glue/window_open_disposition.h" | 19 #include "webkit/glue/window_open_disposition.h" |
18 | 20 |
19 namespace WebCore { | 21 namespace WebCore { |
20 class Frame; | 22 class Frame; |
| 23 class HTMLFormElement; |
21 class Widget; | 24 class Widget; |
22 } | 25 } |
23 | 26 |
24 class Alt404PageResourceFetcher; | 27 class Alt404PageResourceFetcher; |
25 class WebFrameImpl; | 28 class WebFrameImpl; |
26 class WebPluginContainer; | 29 class WebPluginContainer; |
27 | 30 |
28 class WebFrameLoaderClient : public WebCore::FrameLoaderClient { | 31 class WebFrameLoaderClient : public WebCore::FrameLoaderClient { |
29 public: | 32 public: |
30 WebFrameLoaderClient(WebFrameImpl* webframe); | 33 WebFrameLoaderClient(WebFrameImpl* webframe); |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 const WebCore::NavigationAction& action, | 205 const WebCore::NavigationAction& action, |
203 WindowOpenDisposition* disposition); | 206 WindowOpenDisposition* disposition); |
204 | 207 |
205 // Returns a valid GURL if we have an alt 404 server URL. | 208 // Returns a valid GURL if we have an alt 404 server URL. |
206 GURL GetAlt404PageUrl(WebCore::DocumentLoader* loader); | 209 GURL GetAlt404PageUrl(WebCore::DocumentLoader* loader); |
207 | 210 |
208 // Returns NavigationGestureAuto if the last load was not user initiated, | 211 // Returns NavigationGestureAuto if the last load was not user initiated, |
209 // otherwise returns NavigationGestureUnknown. | 212 // otherwise returns NavigationGestureUnknown. |
210 NavigationGesture NavigationGestureForLastLoad(); | 213 NavigationGesture NavigationGestureForLastLoad(); |
211 | 214 |
| 215 // Registers the text input fields in the passed form for autofill, with the |
| 216 // exclusion of any field whose name is contained in |excluded_fields|. |
| 217 void RegisterAutofillListeners(WebCore::HTMLFormElement* form, |
| 218 const std::set<std::wstring>& excluded_fields); |
| 219 |
212 // The WebFrame that owns this object and manages its lifetime. Therefore, | 220 // The WebFrame that owns this object and manages its lifetime. Therefore, |
213 // the web frame object is guaranteed to exist. | 221 // the web frame object is guaranteed to exist. |
214 WebFrameImpl* webframe_; | 222 WebFrameImpl* webframe_; |
215 | 223 |
216 // Resource fetcher for downloading an alternate 404 page. | 224 // Resource fetcher for downloading an alternate 404 page. |
217 scoped_ptr<Alt404PageResourceFetcher> alt_404_page_fetcher_; | 225 scoped_ptr<Alt404PageResourceFetcher> alt_404_page_fetcher_; |
218 | 226 |
219 bool postpone_loading_data_; | 227 bool postpone_loading_data_; |
220 std::string postponed_data_; | 228 std::string postponed_data_; |
221 | 229 |
(...skipping 16 matching lines...) Expand all Loading... |
238 // Indicates if we need to send over the initial notification to the plugin | 246 // Indicates if we need to send over the initial notification to the plugin |
239 // which specifies that the plugin should be ready to accept data. | 247 // which specifies that the plugin should be ready to accept data. |
240 bool sent_initial_response_to_plugin_; | 248 bool sent_initial_response_to_plugin_; |
241 | 249 |
242 // The disposition to use for the next call to dispatchCreatePage. | 250 // The disposition to use for the next call to dispatchCreatePage. |
243 WindowOpenDisposition next_window_open_disposition_; | 251 WindowOpenDisposition next_window_open_disposition_; |
244 }; | 252 }; |
245 | 253 |
246 #endif // #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__ | 254 #endif // #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__ |
247 | 255 |
OLD | NEW |