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 <wtf/PassOwnPtr.h> | 9 #include <wtf/PassOwnPtr.h> |
10 #include <wtf/RefPtr.h> | 10 #include <wtf/RefPtr.h> |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 201 |
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 // Returns NavigationGestureAuto if the last load was not user initiated, | |
212 // otherwise returns NavigationGestureUnknown. | |
213 NavigationGesture NavigationGestureForLastLoad(); | |
214 | |
215 // Called when a dummy back-forward navigation is intercepted. | 211 // Called when a dummy back-forward navigation is intercepted. |
216 void HandleBackForwardNavigation(const GURL&); | 212 void HandleBackForwardNavigation(const GURL&); |
217 | 213 |
218 PassOwnPtr<WebKit::WebPluginLoadObserver> GetPluginLoadObserver(); | 214 PassOwnPtr<WebKit::WebPluginLoadObserver> GetPluginLoadObserver(); |
219 | 215 |
220 // The WebFrame that owns this object and manages its lifetime. Therefore, | 216 // The WebFrame that owns this object and manages its lifetime. Therefore, |
221 // the web frame object is guaranteed to exist. | 217 // the web frame object is guaranteed to exist. |
222 WebFrameImpl* webframe_; | 218 WebFrameImpl* webframe_; |
223 | 219 |
224 // 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 |
(...skipping 15 matching lines...) Expand all Loading... |
240 | 236 |
241 // 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 |
242 // which specifies that the plugin should be ready to accept data. | 238 // which specifies that the plugin should be ready to accept data. |
243 bool sent_initial_response_to_plugin_; | 239 bool sent_initial_response_to_plugin_; |
244 | 240 |
245 // The navigation policy to use for the next call to dispatchCreatePage. | 241 // The navigation policy to use for the next call to dispatchCreatePage. |
246 WebKit::WebNavigationPolicy next_navigation_policy_; | 242 WebKit::WebNavigationPolicy next_navigation_policy_; |
247 }; | 243 }; |
248 | 244 |
249 #endif // #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H_ | 245 #endif // #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H_ |
OLD | NEW |