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

Unified Diff: content/browser/renderer_host/render_widget_helper.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: Revised approach based on http://crrev.com/125180. 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/browser/renderer_host/render_widget_helper.h
diff --git a/content/browser/renderer_host/render_widget_helper.h b/content/browser/renderer_host/render_widget_helper.h
index f897984062c2eeaf13db0906a193284fba77b363..1468f6122a3aaab56a22fca92f7cdf7e3baed1f0 100644
--- a/content/browser/renderer_host/render_widget_helper.h
+++ b/content/browser/renderer_host/render_widget_helper.h
@@ -15,6 +15,7 @@
#include "base/process.h"
#include "base/synchronization/lock.h"
#include "base/synchronization/waitable_event.h"
+#include "content/public/browser/content_browser_client.h"
#include "content/public/common/window_container_type.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
#include "ui/gfx/native_widget_types.h"
@@ -127,10 +128,12 @@ class RenderWidgetHelper
// Called on the IO thread when a UpdateRect message is received.
void DidReceiveUpdateMsg(const IPC::Message& msg);
- void CreateNewWindow(const ViewHostMsg_CreateWindow_Params& params,
- base::ProcessHandle render_process,
- int* route_id,
- int* surface_id);
+ void CreateNewWindow(
+ const ViewHostMsg_CreateWindow_Params& params,
+ content::ContentBrowserClient::CanCreateWindowResult can_create_result,
+ base::ProcessHandle render_process,
+ int* route_id,
+ int* surface_id);
void CreateNewWidget(int opener_id,
WebKit::WebPopupType popup_type,
int* route_id,

Powered by Google App Engine
This is Rietveld 408576698