summaryrefslogtreecommitdiffstats
path: root/content/shell
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-12 14:40:33 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-12 14:40:33 +0000
commit01e546c98f7d28ec83a398115df13c2cf4426309 (patch)
tree834b87b16f7d731bdd269844b004d1a2f60df702 /content/shell
parente5aecd74c39e170016a0490306235e0c7ab8b4c0 (diff)
downloadchromium_src-01e546c98f7d28ec83a398115df13c2cf4426309.zip
chromium_src-01e546c98f7d28ec83a398115df13c2cf4426309.tar.gz
chromium_src-01e546c98f7d28ec83a398115df13c2cf4426309.tar.bz2
[content shell] delete unused code
BUG=111316 R=marja@chromium.org TEST=no functional change Review URL: https://codereview.chromium.org/12210141 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181928 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell')
-rw-r--r--content/shell/shell_content_renderer_client.cc27
-rw-r--r--content/shell/shell_content_renderer_client.h10
2 files changed, 0 insertions, 37 deletions
diff --git a/content/shell/shell_content_renderer_client.cc b/content/shell/shell_content_renderer_client.cc
index 990acfc..77d3641 100644
--- a/content/shell/shell_content_renderer_client.cc
+++ b/content/shell/shell_content_renderer_client.cc
@@ -81,31 +81,4 @@ bool ShellContentRendererClient::OverrideCreatePlugin(
return false;
}
-bool ShellContentRendererClient::WillSendRequest(
- WebFrame* frame,
- PageTransition transition_type,
- const GURL& url,
- const GURL& first_party_for_cookies,
- GURL* new_url) {
- CommandLine* command_line = CommandLine::ForCurrentProcess();
- if (!command_line->HasSwitch(switches::kDumpRenderTree))
- return false;
- ShellRenderProcessObserver* render_process_observer =
- ShellRenderProcessObserver::GetInstance();
- if (!command_line->HasSwitch(switches::kAllowExternalPages) &&
- IsExternalPage(url) && !IsExternalPage(first_party_for_cookies)) {
- if (render_process_observer->test_delegate()) {
- render_process_observer->test_delegate()->printMessage(
- std::string("Blocked access to external URL " + url.spec() + "\n"));
- }
- *new_url = GURL();
- return true;
- }
- if (render_process_observer->test_delegate()) {
- *new_url = render_process_observer->test_delegate()->rewriteLayoutTestsURL(
- url.spec());
- }
- return true;
-}
-
} // namespace content
diff --git a/content/shell/shell_content_renderer_client.h b/content/shell/shell_content_renderer_client.h
index b8c1bc7..849ec33 100644
--- a/content/shell/shell_content_renderer_client.h
+++ b/content/shell/shell_content_renderer_client.h
@@ -15,13 +15,8 @@ class WebPlugin;
struct WebPluginParams;
}
-namespace WebTestRunner {
-class WebTestProxyBase;
-}
-
namespace content {
-class RenderView;
class ShellRenderProcessObserver;
class ShellContentRendererClient : public ContentRendererClient {
@@ -35,11 +30,6 @@ 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:
scoped_ptr<ShellRenderProcessObserver> shell_observer_;