Index: content/browser/renderer_host/render_message_filter.cc |
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc |
index ae017eb44d16160be0c814062046f33674fc2bb7..caf860391e0a729df6fc7aec57f4c3d357fe127f 100644 |
--- a/content/browser/renderer_host/render_message_filter.cc |
+++ b/content/browser/renderer_host/render_message_filter.cc |
@@ -356,10 +356,7 @@ bool RenderMessageFilter::OffTheRecord() const { |
void RenderMessageFilter::OnCreateWindow( |
const ViewHostMsg_CreateWindow_Params& params, |
- int* route_id, |
- int* main_frame_route_id, |
- int* surface_id, |
- int64* cloned_session_storage_namespace_id) { |
+ ViewHostMsg_CreateWindow_Reply* reply) { |
bool no_javascript_access; |
bool can_create_window = |
@@ -381,10 +378,11 @@ void RenderMessageFilter::OnCreateWindow( |
&no_javascript_access); |
if (!can_create_window) { |
- *route_id = MSG_ROUTING_NONE; |
- *main_frame_route_id = MSG_ROUTING_NONE; |
- *surface_id = 0; |
- *cloned_session_storage_namespace_id = 0; |
+ reply->route_id = MSG_ROUTING_NONE; |
+ reply->main_frame_route_id = MSG_ROUTING_NONE; |
+ reply->main_frame_widget_route_id = MSG_ROUTING_NONE; |
+ reply->surface_id = 0; |
+ reply->cloned_session_storage_namespace_id = 0; |
return; |
} |
@@ -392,15 +390,13 @@ void RenderMessageFilter::OnCreateWindow( |
scoped_refptr<SessionStorageNamespaceImpl> cloned_namespace = |
new SessionStorageNamespaceImpl(dom_storage_context_.get(), |
params.session_storage_namespace_id); |
- *cloned_session_storage_namespace_id = cloned_namespace->id(); |
- |
- render_widget_helper_->CreateNewWindow(params, |
- no_javascript_access, |
- PeerHandle(), |
- route_id, |
- main_frame_route_id, |
- surface_id, |
- cloned_namespace.get()); |
+ reply->cloned_session_storage_namespace_id = cloned_namespace->id(); |
+ |
+ render_widget_helper_->CreateNewWindow( |
+ params, no_javascript_access, PeerHandle(), &reply->route_id, |
+ &reply->surface_id, &reply->main_frame_route_id, |
+ &reply->main_frame_widget_route_id, &reply->widget_surface_id, |
+ cloned_namespace.get()); |
} |
void RenderMessageFilter::OnCreateWidget(int opener_id, |