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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 | 9 |
10 MSVC_PUSH_WARNING_LEVEL(0); | 10 MSVC_PUSH_WARNING_LEVEL(0); |
11 #include "FrameLoaderClient.h" | 11 #include "FrameLoaderClient.h" |
12 MSVC_POP_WARNING(); | 12 MSVC_POP_WARNING(); |
13 | 13 |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
17 #include "webkit/glue/webview_delegate.h" | 17 #include "webkit/glue/webview_delegate.h" |
18 #include "webkit/glue/window_open_disposition.h" | 18 #include "webkit/glue/window_open_disposition.h" |
| 19 |
19 namespace WebCore { | 20 namespace WebCore { |
20 class Frame; | 21 class Frame; |
21 class HTMLFormElement; | 22 class HTMLFormElement; |
22 class Widget; | 23 class Widget; |
23 } | 24 } |
24 | 25 |
| 26 namespace webkit_glue { |
25 class Alt404PageResourceFetcher; | 27 class Alt404PageResourceFetcher; |
| 28 } |
| 29 |
26 class WebFrameImpl; | 30 class WebFrameImpl; |
27 class WebPluginContainer; | 31 class WebPluginContainer; |
28 | 32 |
29 | 33 |
30 class WebFrameLoaderClient : public WebCore::FrameLoaderClient { | 34 class WebFrameLoaderClient : public WebCore::FrameLoaderClient { |
31 public: | 35 public: |
32 WebFrameLoaderClient(WebFrameImpl* webframe); | 36 WebFrameLoaderClient(WebFrameImpl* webframe); |
33 virtual ~WebFrameLoaderClient(); | 37 virtual ~WebFrameLoaderClient(); |
34 | 38 |
35 WebFrameImpl* webframe() const { return webframe_; } | 39 WebFrameImpl* webframe() const { return webframe_; } |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 NavigationGesture NavigationGestureForLastLoad(); | 224 NavigationGesture NavigationGestureForLastLoad(); |
221 | 225 |
222 // Called when a dummy back-forward navigation is intercepted. | 226 // Called when a dummy back-forward navigation is intercepted. |
223 void HandleBackForwardNavigation(const GURL&); | 227 void HandleBackForwardNavigation(const GURL&); |
224 | 228 |
225 // The WebFrame that owns this object and manages its lifetime. Therefore, | 229 // The WebFrame that owns this object and manages its lifetime. Therefore, |
226 // the web frame object is guaranteed to exist. | 230 // the web frame object is guaranteed to exist. |
227 WebFrameImpl* webframe_; | 231 WebFrameImpl* webframe_; |
228 | 232 |
229 // Resource fetcher for downloading an alternate 404 page. | 233 // Resource fetcher for downloading an alternate 404 page. |
230 scoped_ptr<Alt404PageResourceFetcher> alt_404_page_fetcher_; | 234 scoped_ptr<webkit_glue::Alt404PageResourceFetcher> alt_404_page_fetcher_; |
231 | 235 |
232 bool postpone_loading_data_; | 236 bool postpone_loading_data_; |
233 std::string postponed_data_; | 237 std::string postponed_data_; |
234 | 238 |
235 // True if makeRepresentation was called. We don't actually have a concept | 239 // True if makeRepresentation was called. We don't actually have a concept |
236 // of a "representation", but we need to know when we're expected to have one. | 240 // of a "representation", but we need to know when we're expected to have one. |
237 // See finishedLoading(). | 241 // See finishedLoading(). |
238 bool has_representation_; | 242 bool has_representation_; |
239 | 243 |
240 // Used to help track client redirects. When a provisional load starts, it | 244 // Used to help track client redirects. When a provisional load starts, it |
241 // has no redirects in its chain. But in the case of client redirects, we want | 245 // has no redirects in its chain. But in the case of client redirects, we want |
242 // to add that initial load as a redirect. When we get a new provisional load | 246 // to add that initial load as a redirect. When we get a new provisional load |
243 // and the dest URL matches that load, we know that it was the result of a | 247 // and the dest URL matches that load, we know that it was the result of a |
244 // previous client redirect and the source should be added as a redirect. | 248 // previous client redirect and the source should be added as a redirect. |
245 // Both should be empty if unused. | 249 // Both should be empty if unused. |
246 GURL expected_client_redirect_src_; | 250 GURL expected_client_redirect_src_; |
247 GURL expected_client_redirect_dest_; | 251 GURL expected_client_redirect_dest_; |
248 | 252 |
249 // Contains a pointer to the plugin widget. | 253 // Contains a pointer to the plugin widget. |
250 WebPluginContainer* plugin_widget_; | 254 WebPluginContainer* plugin_widget_; |
251 // Indicates if we need to send over the initial notification to the plugin | 255 // Indicates if we need to send over the initial notification to the plugin |
252 // which specifies that the plugin should be ready to accept data. | 256 // which specifies that the plugin should be ready to accept data. |
253 bool sent_initial_response_to_plugin_; | 257 bool sent_initial_response_to_plugin_; |
254 | 258 |
255 // The disposition to use for the next call to dispatchCreatePage. | 259 // The disposition to use for the next call to dispatchCreatePage. |
256 WindowOpenDisposition next_window_open_disposition_; | 260 WindowOpenDisposition next_window_open_disposition_; |
257 }; | 261 }; |
258 | 262 |
259 #endif // #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__ | 263 #endif // #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__ |
OLD | NEW |