| Index: content/browser/web_contents/web_contents_impl.cc
|
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
| index 196095ab2a23d2595b26b7523ccfeb094db0ab9c..e14c8eaef6e66be5c2aec201029d22e11ee6717a 100644
|
| --- a/content/browser/web_contents/web_contents_impl.cc
|
| +++ b/content/browser/web_contents/web_contents_impl.cc
|
| @@ -2468,6 +2468,28 @@ void WebContentsImpl::RouteMessageEvent(
|
| GetRenderViewHost()->GetRoutingID(), new_params));
|
| }
|
|
|
| +bool WebContentsImpl::ShouldIgnoreNavigation(
|
| + RenderViewHost* render_view_host,
|
| + const GURL& url,
|
| + const content::Referrer& referrer,
|
| + bool is_content_initiated) {
|
| + if (!delegate_)
|
| + return false;
|
| +
|
| + GURL validated_url(url);
|
| + RenderViewHostImpl* render_view_host_impl =
|
| + static_cast<RenderViewHostImpl*>(render_view_host);
|
| + content::RenderProcessHost* render_process_host =
|
| + render_view_host->GetProcess();
|
| + render_view_host_impl->FilterURL(
|
| + ChildProcessSecurityPolicyImpl::GetInstance(),
|
| + render_process_host->GetID(),
|
| + false,
|
| + &validated_url);
|
| + return delegate_->ShouldIgnoreNavigation(
|
| + this, validated_url, referrer, is_content_initiated);
|
| +}
|
| +
|
| void WebContentsImpl::RunJavaScriptMessage(
|
| RenderViewHost* rvh,
|
| const string16& message,
|
|
|