diff options
Diffstat (limited to 'chrome/common/render_messages_params.h')
-rw-r--r-- | chrome/common/render_messages_params.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/common/render_messages_params.h b/chrome/common/render_messages_params.h index 0359b1e..dfb78b8 100644 --- a/chrome/common/render_messages_params.h +++ b/chrome/common/render_messages_params.h @@ -746,6 +746,7 @@ struct ViewHostMsg_IDBObjectStoreOpenCursor_Params { struct ViewMsg_ExecuteCode_Params { ViewMsg_ExecuteCode_Params(); ViewMsg_ExecuteCode_Params(int request_id, const std::string& extension_id, + const std::vector<URLPattern>& host_permissions, bool is_javascript, const std::string& code, bool all_frames); ~ViewMsg_ExecuteCode_Params(); @@ -757,6 +758,10 @@ struct ViewMsg_ExecuteCode_Params { // execute the code inside of. std::string extension_id; + // The host permissions of the requesting extension. So that we can check them + // right before injecting, to avoid any race conditions. + std::vector<URLPattern> host_permissions; + // Whether the code is JavaScript or CSS. bool is_javascript; @@ -916,8 +921,6 @@ struct ViewMsg_ExtensionRendererInfo { std::string name; GURL icon_url; Extension::Location location; - bool allowed_to_execute_script_everywhere; - std::vector<URLPattern> host_permissions; }; struct ViewMsg_ExtensionsUpdated_Params { |