summaryrefslogtreecommitdiffstats
path: root/content/browser/mock_content_browser_client.h
diff options
context:
space:
mode:
authortsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-09 17:57:47 +0000
committertsepez@chromium.org <tsepez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-09 17:57:47 +0000
commit46fb94424addb322c7dfad1e8eba462baf0cdcb7 (patch)
tree38a5cbcc5a884502dbd8c3cc9162e93654626660 /content/browser/mock_content_browser_client.h
parent4bfc70fc7662aca658c3c45772e428c2f3b66b58 (diff)
downloadchromium_src-46fb94424addb322c7dfad1e8eba462baf0cdcb7.zip
chromium_src-46fb94424addb322c7dfad1e8eba462baf0cdcb7.tar.gz
chromium_src-46fb94424addb322c7dfad1e8eba462baf0cdcb7.tar.bz2
Remove "open in new tab" items from context menu if the process doesn't
have permission to open them directly. For example, right-click on a "chrome://" link in an ordinary window should show two items: Copy link location and inspect element, but a full menu from a WebUI window itself. NOTE: Fixing this issue requires a fix to ChildProcessSecurityPolicy, which as been silently too permissive. BUG=104466 Review URL: http://codereview.chromium.org/8588039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113818 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/mock_content_browser_client.h')
-rw-r--r--content/browser/mock_content_browser_client.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/content/browser/mock_content_browser_client.h b/content/browser/mock_content_browser_client.h
index fc6f5e77..37e866e 100644
--- a/content/browser/mock_content_browser_client.h
+++ b/content/browser/mock_content_browser_client.h
@@ -38,6 +38,7 @@ class MockContentBrowserClient : public ContentBrowserClient {
virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context,
const GURL& effective_url) OVERRIDE;
virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE;
+ virtual bool IsHandledURL(const GURL& url) OVERRIDE;
virtual bool IsSuitableHost(RenderProcessHost* process_host,
const GURL& site_url) OVERRIDE;
virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE;