| 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;
|
|
|
|
|