summaryrefslogtreecommitdiffstats
path: root/content/shell/shell_content_renderer_client.h
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-27 15:36:27 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-27 15:36:27 +0000
commit53d96fbbf880cad9f26d7f60941b6ea36baeb617 (patch)
treecdfed9fd6cf3efd18a205aeee216ab6a344ce5a2 /content/shell/shell_content_renderer_client.h
parentf309053b6d0629741c5a2386131dcdce1001845d (diff)
downloadchromium_src-53d96fbbf880cad9f26d7f60941b6ea36baeb617.zip
chromium_src-53d96fbbf880cad9f26d7f60941b6ea36baeb617.tar.gz
chromium_src-53d96fbbf880cad9f26d7f60941b6ea36baeb617.tar.bz2
[content shell] block loading of non-local resources during layout tests, and add support for rewriting layout test urls
BUG=111316 TBR=jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/11348246 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169661 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/shell_content_renderer_client.h')
-rw-r--r--content/shell/shell_content_renderer_client.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/shell/shell_content_renderer_client.h b/content/shell/shell_content_renderer_client.h
index 1ccf7ac..a71e3b4 100644
--- a/content/shell/shell_content_renderer_client.h
+++ b/content/shell/shell_content_renderer_client.h
@@ -34,10 +34,16 @@ class ShellContentRendererClient : public ContentRendererClient {
WebKit::WebFrame* frame,
const WebKit::WebPluginParams& params,
WebKit::WebPlugin** plugin) OVERRIDE;
+ virtual bool WillSendRequest(WebKit::WebFrame* frame,
+ PageTransition transition_type,
+ const GURL& url,
+ const GURL& first_party_for_cookies,
+ GURL* new_url) OVERRIDE;
private:
void WebTestProxyCreated(RenderView* render_view,
WebTestRunner::WebTestProxyBase* proxy);
+ GURL RewriteLayoutTestsURL(const GURL& url);
scoped_ptr<ShellRenderProcessObserver> shell_observer_;
};