| 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 "FrameLoaderClient.h" | 8 #include "FrameLoaderClient.h" |
| 9 #include <wtf/RefPtr.h> | 9 #include <wtf/RefPtr.h> |
| 10 | 10 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 const WebCore::String& mimeType); | 199 const WebCore::String& mimeType); |
| 200 virtual WebCore::String overrideMediaType() const; | 200 virtual WebCore::String overrideMediaType() const; |
| 201 | 201 |
| 202 virtual void didPerformFirstNavigation() const; | 202 virtual void didPerformFirstNavigation() const; |
| 203 | 203 |
| 204 virtual void registerForIconNotification(bool listen = true); | 204 virtual void registerForIconNotification(bool listen = true); |
| 205 | 205 |
| 206 private: | 206 private: |
| 207 // Callback function for download of alternate 404 pages. If the server is | 207 // Callback function for download of alternate 404 pages. If the server is |
| 208 // down or we take too long to download the page, |html| will be empty. | 208 // down or we take too long to download the page, |html| will be empty. |
| 209 void Alt404PageFinished(const GURL& unreachable_url, const std::string& html); | 209 void Alt404PageFinished(WebFrame* frame, const GURL& unreachable_url, |
| 210 const std::string& html); |
| 210 | 211 |
| 211 void makeDocumentView(); | 212 void makeDocumentView(); |
| 212 | 213 |
| 213 // Given a NavigationAction, determine the associated WebNavigationPolicy. | 214 // Given a NavigationAction, determine the associated WebNavigationPolicy. |
| 214 // For example, a middle click means "open in background tab". | 215 // For example, a middle click means "open in background tab". |
| 215 static bool ActionSpecifiesNavigationPolicy( | 216 static bool ActionSpecifiesNavigationPolicy( |
| 216 const WebCore::NavigationAction& action, | 217 const WebCore::NavigationAction& action, |
| 217 WebKit::WebNavigationPolicy* policy); | 218 WebKit::WebNavigationPolicy* policy); |
| 218 | 219 |
| 219 // Returns a valid GURL if we have an alt 404 server URL. | 220 // Returns a valid GURL if we have an alt 404 server URL. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 256 |
| 256 // Indicates if we need to send over the initial notification to the plugin | 257 // Indicates if we need to send over the initial notification to the plugin |
| 257 // which specifies that the plugin should be ready to accept data. | 258 // which specifies that the plugin should be ready to accept data. |
| 258 bool sent_initial_response_to_plugin_; | 259 bool sent_initial_response_to_plugin_; |
| 259 | 260 |
| 260 // The navigation policy to use for the next call to dispatchCreatePage. | 261 // The navigation policy to use for the next call to dispatchCreatePage. |
| 261 WebKit::WebNavigationPolicy next_navigation_policy_; | 262 WebKit::WebNavigationPolicy next_navigation_policy_; |
| 262 }; | 263 }; |
| 263 | 264 |
| 264 #endif // #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__ | 265 #endif // #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__ |
| OLD | NEW |