summaryrefslogtreecommitdiffstats
path: root/extensions/common/extension_messages.h
diff options
context:
space:
mode:
authorrdevlin.cronin <rdevlin.cronin@chromium.org>2015-02-06 16:31:55 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-07 00:32:57 +0000
commitc491dbfaad049247a5d2f92ab5ad823725414e70 (patch)
treec064b1aa583a88506275d7e01cb66cbc95e6fddb /extensions/common/extension_messages.h
parent32ca079014ef5145b8905d934c81f233a734ffd4 (diff)
downloadchromium_src-c491dbfaad049247a5d2f92ab5ad823725414e70.zip
chromium_src-c491dbfaad049247a5d2f92ab5ad823725414e70.tar.gz
chromium_src-c491dbfaad049247a5d2f92ab5ad823725414e70.tar.bz2
[Extensions] Propagate activeTab hosts to extension background pages
Let extensions with active tab use XHR in background pages to any hosts that they have active tab on. Also move tab_finder to //extensions. BUG=452688 Review URL: https://codereview.chromium.org/890083002 Cr-Commit-Position: refs/heads/master@{#315147}
Diffstat (limited to 'extensions/common/extension_messages.h')
-rw-r--r--extensions/common/extension_messages.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h
index cb96ceb..aee505c 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,