| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 "FrameLoaderClient.h" | 8 #include "FrameLoaderClient.h" |
| 9 #include "KURL.h" |
| 9 #include <wtf/PassOwnPtr.h> | 10 #include <wtf/PassOwnPtr.h> |
| 10 #include <wtf/RefPtr.h> | 11 #include <wtf/RefPtr.h> |
| 11 | 12 |
| 12 #include "googleurl/src/gurl.h" | |
| 13 #include "webkit/api/public/WebNavigationPolicy.h" | 13 #include "webkit/api/public/WebNavigationPolicy.h" |
| 14 #include "webkit/glue/webview_delegate.h" | 14 #include "webkit/glue/webview_delegate.h" |
| 15 | 15 |
| 16 class WebFrameImpl; | 16 class WebFrameImpl; |
| 17 | 17 |
| 18 namespace WebKit { | 18 namespace WebKit { |
| 19 class WebPluginContainerImpl; | 19 class WebPluginContainerImpl; |
| 20 class WebPluginLoadObserver; | 20 class WebPluginLoadObserver; |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 private: | 202 private: |
| 203 void makeDocumentView(); | 203 void makeDocumentView(); |
| 204 | 204 |
| 205 // Given a NavigationAction, determine the associated WebNavigationPolicy. | 205 // Given a NavigationAction, determine the associated WebNavigationPolicy. |
| 206 // For example, a middle click means "open in background tab". | 206 // For example, a middle click means "open in background tab". |
| 207 static bool ActionSpecifiesNavigationPolicy( | 207 static bool ActionSpecifiesNavigationPolicy( |
| 208 const WebCore::NavigationAction& action, | 208 const WebCore::NavigationAction& action, |
| 209 WebKit::WebNavigationPolicy* policy); | 209 WebKit::WebNavigationPolicy* policy); |
| 210 | 210 |
| 211 // Called when a dummy back-forward navigation is intercepted. | 211 // Called when a dummy back-forward navigation is intercepted. |
| 212 void HandleBackForwardNavigation(const GURL&); | 212 void HandleBackForwardNavigation(const WebCore::KURL&); |
| 213 | 213 |
| 214 PassOwnPtr<WebKit::WebPluginLoadObserver> GetPluginLoadObserver(); | 214 PassOwnPtr<WebKit::WebPluginLoadObserver> GetPluginLoadObserver(); |
| 215 | 215 |
| 216 // The WebFrame that owns this object and manages its lifetime. Therefore, | 216 // The WebFrame that owns this object and manages its lifetime. Therefore, |
| 217 // the web frame object is guaranteed to exist. | 217 // the web frame object is guaranteed to exist. |
| 218 WebFrameImpl* webframe_; | 218 WebFrameImpl* webframe_; |
| 219 | 219 |
| 220 // True if makeRepresentation was called. We don't actually have a concept | 220 // True if makeRepresentation was called. We don't actually have a concept |
| 221 // of a "representation", but we need to know when we're expected to have one. | 221 // of a "representation", but we need to know when we're expected to have one. |
| 222 // See finishedLoading(). | 222 // See finishedLoading(). |
| 223 bool has_representation_; | 223 bool has_representation_; |
| 224 | 224 |
| 225 // Used to help track client redirects. When a provisional load starts, it | 225 // Used to help track client redirects. When a provisional load starts, it |
| 226 // has no redirects in its chain. But in the case of client redirects, we want | 226 // has no redirects in its chain. But in the case of client redirects, we want |
| 227 // to add that initial load as a redirect. When we get a new provisional load | 227 // to add that initial load as a redirect. When we get a new provisional load |
| 228 // and the dest URL matches that load, we know that it was the result of a | 228 // and the dest URL matches that load, we know that it was the result of a |
| 229 // previous client redirect and the source should be added as a redirect. | 229 // previous client redirect and the source should be added as a redirect. |
| 230 // Both should be empty if unused. | 230 // Both should be empty if unused. |
| 231 GURL expected_client_redirect_src_; | 231 WebCore::KURL expected_client_redirect_src_; |
| 232 GURL expected_client_redirect_dest_; | 232 WebCore::KURL expected_client_redirect_dest_; |
| 233 | 233 |
| 234 // Contains a pointer to the plugin widget. | 234 // Contains a pointer to the plugin widget. |
| 235 WTF::RefPtr<WebKit::WebPluginContainerImpl> plugin_widget_; | 235 WTF::RefPtr<WebKit::WebPluginContainerImpl> plugin_widget_; |
| 236 | 236 |
| 237 // Indicates if we need to send over the initial notification to the plugin | 237 // Indicates if we need to send over the initial notification to the plugin |
| 238 // which specifies that the plugin should be ready to accept data. | 238 // which specifies that the plugin should be ready to accept data. |
| 239 bool sent_initial_response_to_plugin_; | 239 bool sent_initial_response_to_plugin_; |
| 240 | 240 |
| 241 // The navigation policy to use for the next call to dispatchCreatePage. | 241 // The navigation policy to use for the next call to dispatchCreatePage. |
| 242 WebKit::WebNavigationPolicy next_navigation_policy_; | 242 WebKit::WebNavigationPolicy next_navigation_policy_; |
| 243 }; | 243 }; |
| 244 | 244 |
| 245 #endif // #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H_ | 245 #endif // #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H_ |
| OLD | NEW |