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

Unified Diff: chrome/browser/renderer_host/renderer_security_policy.h

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/renderer_security_policy.h
===================================================================
--- chrome/browser/renderer_host/renderer_security_policy.h (revision 14874)
+++ chrome/browser/renderer_host/renderer_security_policy.h (working copy)
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/file_path.h"
+#include "base/gfx/native_widget_types.h"
#include "base/lock.h"
#include "base/singleton.h"
@@ -73,6 +74,9 @@
// Grant this renderer the ability to use DOM UI Bindings.
void GrantDOMUIBindings(int renderer_id);
+ // Grant this renderer the ability to interact with this native view.
+ void GrantNativeViewId(int renderer_id, gfx::NativeViewId view_id);
+
// Before servicing a renderer's request for a URL, the browser should call
// this method to determine whether the renderer has the capability to
// request the URL.
@@ -83,11 +87,14 @@
// capability to upload the requested file.
bool CanUploadFile(int renderer_id, const FilePath& file);
- // Returns true of the specified renderer_id has been granted DOMUIBindings.
+ // Returns true if the specified renderer_id has been granted DOMUIBindings.
// The browser should check this property before assuming the renderer is
// allowed to use DOMUIBindings.
bool HasDOMUIBindings(int renderer_id);
+ // Returns true if the |renderer_id| can interact with |view_id|.
+ bool HasNativeViewId(int renderer_id, gfx::NativeViewId view_id);
+
private:
class SecurityState;
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.cc ('k') | chrome/browser/renderer_host/renderer_security_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698