summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webframeloaderclient_impl.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-04 17:36:55 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-04 17:36:55 +0000
commit7ccddb8cc40f885a50541c4f45afc4253ce3c065 (patch)
treea82976f8905298f6c320ff72331fd41697bc1aa5 /webkit/glue/webframeloaderclient_impl.h
parentb881ade17222078ce4e0c4dc6cb296ac34ee7387 (diff)
downloadchromium_src-7ccddb8cc40f885a50541c4f45afc4253ce3c065.zip
chromium_src-7ccddb8cc40f885a50541c4f45afc4253ce3c065.tar.gz
chromium_src-7ccddb8cc40f885a50541c4f45afc4253ce3c065.tar.bz2
Move alternate 404 error page loading out of WebFrame and into RenderView.
This involved adding a new method on WebViewDelegate to allow the embedder to intercept data being loaded for a document. I also had to plumb a few more FrameLoaderClient notifications through WebViewDelegate. See DidReceiveResponse and DidFinishLoading. R=tony BUG=15648 TEST=covered by errorpage_uitest.cc Review URL: http://codereview.chromium.org/160578 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22389 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webframeloaderclient_impl.h')
-rw-r--r--webkit/glue/webframeloaderclient_impl.h35
1 files changed, 4 insertions, 31 deletions
diff --git a/webkit/glue/webframeloaderclient_impl.h b/webkit/glue/webframeloaderclient_impl.h
index cdae117..0c57399 100644
--- a/webkit/glue/webframeloaderclient_impl.h
+++ b/webkit/glue/webframeloaderclient_impl.h
@@ -1,32 +1,20 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__
-#define WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__
+#ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H_
+#define WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H_
#include "FrameLoaderClient.h"
#include <wtf/RefPtr.h>
-#include "base/scoped_ptr.h"
#include "googleurl/src/gurl.h"
#include "webkit/api/public/WebNavigationPolicy.h"
#include "webkit/glue/webview_delegate.h"
-namespace WebCore {
-class Frame;
-class HTMLFormElement;
-class Widget;
-}
-
-namespace webkit_glue {
-class AltErrorPageResourceFetcher;
-}
-
class WebFrameImpl;
class WebPluginContainer;
-
class WebFrameLoaderClient : public WebCore::FrameLoaderClient {
public:
WebFrameLoaderClient(WebFrameImpl* webframe);
@@ -204,12 +192,6 @@ class WebFrameLoaderClient : public WebCore::FrameLoaderClient {
virtual void registerForIconNotification(bool listen = true);
private:
- // Callback function for download of alternate 404 pages. If the server is
- // down or we take too long to download the page, |html| will be empty.
- void Alt404PageFinished(WebFrame* frame,
- const WebKit::WebURLError& original_error,
- const std::string& html);
-
void makeDocumentView();
// Given a NavigationAction, determine the associated WebNavigationPolicy.
@@ -218,9 +200,6 @@ class WebFrameLoaderClient : public WebCore::FrameLoaderClient {
const WebCore::NavigationAction& action,
WebKit::WebNavigationPolicy* policy);
- // Returns a valid GURL if we have an alt 404 server URL.
- GURL GetAlt404PageUrl(WebCore::DocumentLoader* loader);
-
// Returns NavigationGestureAuto if the last load was not user initiated,
// otherwise returns NavigationGestureUnknown.
NavigationGesture NavigationGestureForLastLoad();
@@ -232,12 +211,6 @@ class WebFrameLoaderClient : public WebCore::FrameLoaderClient {
// the web frame object is guaranteed to exist.
WebFrameImpl* webframe_;
- // Resource fetcher for downloading an alternate 404 page.
- scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_404_page_fetcher_;
-
- bool postpone_loading_data_;
- std::string postponed_data_;
-
// True if makeRepresentation was called. We don't actually have a concept
// of a "representation", but we need to know when we're expected to have one.
// See finishedLoading().
@@ -263,4 +236,4 @@ class WebFrameLoaderClient : public WebCore::FrameLoaderClient {
WebKit::WebNavigationPolicy next_navigation_policy_;
};
-#endif // #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__
+#endif // #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H_