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

Unified Diff: extensions/common/extension_messages.h

Issue 890083002: [Extensions] Propagate activeTab hosts to extension background pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: extensions/common/extension_messages.h
diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h
index cb96ceb22d1bf63ad4a838dcb367ce8a3f790f7b..aee505c44a9d4b8a71a52d1648c842b9b56a2ced 100644
--- a/extensions/common/extension_messages.h
+++ b/extensions/common/extension_messages.h
@@ -258,7 +258,8 @@ struct ExtensionMsg_PermissionSetStruct {
struct ExtensionMsg_Loaded_Params {
ExtensionMsg_Loaded_Params();
~ExtensionMsg_Loaded_Params();
- explicit ExtensionMsg_Loaded_Params(const extensions::Extension* extension);
+ ExtensionMsg_Loaded_Params(const extensions::Extension* extension,
+ bool include_tab_permissions);
// Creates a new extension from the data in this object.
scoped_refptr<extensions::Extension> ConvertToExtension(
@@ -277,6 +278,7 @@ struct ExtensionMsg_Loaded_Params {
// The extension's active and withheld permissions.
ExtensionMsg_PermissionSetStruct active_permissions;
ExtensionMsg_PermissionSetStruct withheld_permissions;
+ std::map<int, ExtensionMsg_PermissionSetStruct> tab_specific_permissions;
// We keep this separate so that it can be used in logging.
std::string id;
@@ -469,14 +471,18 @@ IPC_MESSAGE_CONTROL1(ExtensionMsg_UpdatePermissions,
ExtensionMsg_UpdatePermissions_Params)
// Tell the render view about new tab-specific permissions for an extension.
-IPC_MESSAGE_ROUTED3(ExtensionMsg_UpdateTabSpecificPermissions,
- GURL /* url */,
- std::string /* extension_id */,
- extensions::URLPatternSet /* hosts */)
+IPC_MESSAGE_CONTROL5(ExtensionMsg_UpdateTabSpecificPermissions,
+ GURL /* url */,
+ std::string /* extension_id */,
+ extensions::URLPatternSet /* hosts */,
+ bool /* update origin whitelist */,
+ int /* tab_id */)
// Tell the render view to clear tab-specific permissions for some extensions.
-IPC_MESSAGE_ROUTED1(ExtensionMsg_ClearTabSpecificPermissions,
- std::vector<std::string> /* extension_ids */)
+IPC_MESSAGE_CONTROL3(ExtensionMsg_ClearTabSpecificPermissions,
+ std::vector<std::string> /* extension_ids */,
+ bool /* update origin whitelist */,
+ int /* tab_id */)
// Tell the renderer which type this view is.
IPC_MESSAGE_ROUTED1(ExtensionMsg_NotifyRenderViewType,

Powered by Google App Engine
This is Rietveld 408576698