diff options
author | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-19 02:23:34 +0000 |
---|---|---|
committer | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-19 02:23:34 +0000 |
commit | 7b7a7dc7f3cd95ea98b990250540e91b6d6c2b85 (patch) | |
tree | 11ffe0c0a370a0690c3865a0e5756c46817f2426 /chrome/renderer/render_view.cc | |
parent | fa902b7c687b26a82f61b3a408c2ed6c4f7a3020 (diff) | |
download | chromium_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.cc')
-rw-r--r-- | chrome/renderer/render_view.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index 490a1ee..b36ebda 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -1919,6 +1919,24 @@ WebNavigationPolicy RenderView::decidePolicyForNavigation( return default_policy; } +bool RenderView::canHandleRequest(const WebKit::WebURLRequest& request) { + return true; +} + +WebKit::WebURLError RenderView::cannotShowURLError( + const WebKit::WebURLRequest& request) { + // No need to set fields of WebURLError. It is passed to + // unableToImplementPolicyWithError() below. + return WebKit::WebURLError(); +} + +void RenderView::unableToImplementPolicyWithError( + WebFrame*, const WebKit::WebURLError&) { + // We don't need to do anything here. + // The implementations of this method in WebKit/mac WebKit/win are + // just to log some information of the parameters. +} + void RenderView::willSubmitForm(WebFrame* frame, const WebForm& form) { NavigationState* navigation_state = NavigationState::FromDataSource(frame->provisionalDataSource()); |