Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2611)

Unified Diff: content/public/browser/content_browser_client.h

Issue 9837074: Make it so that allow_js_access: false can be used with background pages created by window.open. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix indentation. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index 9a3c5a50004301b22e8fa1fb0db6c3c9ef673c5f..b390748732b1edf3c8dc681f4d15703cd2774ccf 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -336,14 +336,16 @@ class ContentBrowserClient {
int notification_id) = 0;
// Returns true if the given page is allowed to open a window of the given
- // type.
+ // type. If true is returned, |no_javascript_access| will indicate whether
+ // the window that is created should be scriptable/in the same process.
// This is called on the IO thread.
virtual bool CanCreateWindow(
const GURL& opener_url,
const GURL& source_origin,
WindowContainerType container_type,
content::ResourceContext* context,
- int render_process_id) = 0;
+ int render_process_id,
+ bool* no_javascript_access) = 0;
// Returns a title string to use in the task manager for a process host with
// the given URL, or the empty string to fall back to the default logic.
« no previous file with comments | « content/browser/tab_contents/tab_contents_view_helper.cc ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698