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

Unified Diff: chrome/browser/renderer_host/render_widget_host.cc

Issue 100321: Track which NativeViewIds each render process is allowed to interact with. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 8 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: chrome/browser/renderer_host/render_widget_host.cc
===================================================================
--- chrome/browser/renderer_host/render_widget_host.cc (revision 14874)
+++ chrome/browser/renderer_host/render_widget_host.cc (working copy)
@@ -9,6 +9,7 @@
#include "base/message_loop.h"
#include "base/keyboard_codes.h"
#include "chrome/browser/renderer_host/backing_store.h"
+#include "chrome/browser/renderer_host/renderer_security_policy.h"
#include "chrome/browser/renderer_host/render_process_host.h"
#include "chrome/browser/renderer_host/render_widget_helper.h"
#include "chrome/browser/renderer_host/render_widget_host_view.h"
@@ -86,8 +87,10 @@
// Send the ack along with the information on placement.
gfx::NativeView plugin_view = view_->GetPluginNativeView();
- Send(new ViewMsg_CreatingNew_ACK(routing_id_,
- gfx::IdFromNativeView(plugin_view)));
+ gfx::NativeViewId view_id = gfx::IdFromNativeView(plugin_view);
+ RendererSecurityPolicy::GetInstance()->GrantNativeViewId(
+ process()->pid(), view_id);
+ Send(new ViewMsg_CreatingNew_ACK(routing_id_, view_id));
WasResized();
}
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/renderer_host/renderer_security_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698