summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_view.h
diff options
context:
space:
mode:
authortkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-19 02:23:34 +0000
committertkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-19 02:23:34 +0000
commit7b7a7dc7f3cd95ea98b990250540e91b6d6c2b85 (patch)
tree11ffe0c0a370a0690c3865a0e5756c46817f2426 /chrome/renderer/render_view.h
parentfa902b7c687b26a82f61b3a408c2ed6c4f7a3020 (diff)
downloadchromium_src-7b7a7dc7f3cd95ea98b990250540e91b6d6c2b85.zip
chromium_src-7b7a7dc7f3cd95ea98b990250540e91b6d6c2b85.tar.gz
chromium_src-7b7a7dc7f3cd95ea98b990250540e91b6d6c2b85.tar.bz2
Make LayoutTests/http/tests/misc/redirect-to-external-url.html PASS.
* Implement WebFrameLoaderClient::dispatchUnableToImplementPolicy() * Implement WebFrameLoaderClient::canHandleRequest() so that an unkown scheme makes ResourceError. - Introduce WebFrameClient::canHandleRequest() to avoid chrome:: dependency from webkit/glue. - Introduce WebFrameClient::cannotShowURLError() to keep transparency of WebURLError. * Introduce WebFrameClient::unableToImplementPolicyWithError() An implmentation in test_shell prints the message same as WebKit. BUG=24074 TEST=This change enables 1 test. Review URL: http://codereview.chromium.org/271087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29386 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_view.h')
-rw-r--r--chrome/renderer/render_view.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index 05eedff..7ccf210 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -86,6 +86,7 @@ namespace WebKit {
class WebDragData;
class WebMediaPlayer;
class WebMediaPlayerClient;
+class WebURLRequest;
struct WebFindOptions;
}
@@ -286,6 +287,11 @@ class RenderView : public RenderWidget,
WebKit::WebFrame* frame, const WebKit::WebURLRequest& request,
WebKit::WebNavigationType type, const WebKit::WebNode&,
WebKit::WebNavigationPolicy default_policy, bool is_redirect);
+ virtual bool canHandleRequest(const WebKit::WebURLRequest& request);
+ virtual WebKit::WebURLError cannotShowURLError(
+ const WebKit::WebURLRequest& request);
+ virtual void unableToImplementPolicyWithError(
+ WebKit::WebFrame* frame, const WebKit::WebURLError& error);
virtual void willSubmitForm(WebKit::WebFrame* frame,
const WebKit::WebForm& form);
virtual void willPerformClientRedirect(