summaryrefslogtreecommitdiffstats
path: root/extensions/common/extension_messages.h
diff options
context:
space:
mode:
authorrdevlin.cronin <rdevlin.cronin@chromium.org>2015-06-03 15:28:19 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-03 22:28:40 +0000
commitf994d1efce89b17cf3443ee5a7750e805b44a0e9 (patch)
treea308f710801ab2f6d8faca1111171c832a64137e /extensions/common/extension_messages.h
parent065b54b0a37ded63a33139db2c11ff73c43dd018 (diff)
downloadchromium_src-f994d1efce89b17cf3443ee5a7750e805b44a0e9.zip
chromium_src-f994d1efce89b17cf3443ee5a7750e805b44a0e9.tar.gz
chromium_src-f994d1efce89b17cf3443ee5a7750e805b44a0e9.tar.bz2
[Extensions] Use document url (not top url) for tab-specific permissions
Fix a bug where activeTab would grant script access to all frames in a tab, instead of just the top one. Also remove the top_document_url parameter from CanAccessPage and similar methods. BUG=495883 Review URL: https://codereview.chromium.org/1150683007 Cr-Commit-Position: refs/heads/master@{#332710}
Diffstat (limited to 'extensions/common/extension_messages.h')
-rw-r--r--extensions/common/extension_messages.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h
index 56855be..bdae495 100644
--- a/extensions/common/extension_messages.h
+++ b/extensions/common/extension_messages.h
@@ -424,6 +424,11 @@ IPC_MESSAGE_CONTROL2(ExtensionMsg_SetSystemFont,
IPC_MESSAGE_CONTROL1(ExtensionMsg_ActivateExtension,
std::string /* extension_id */)
+// Notifies the renderer that the current tab is an extension page (we limit
+// what other extensions can do on these pages).
+IPC_MESSAGE_ROUTED1(ExtensionMsg_SetTabExtensionOwner,
+ std::string /* extension_id */);
+
// Notifies the renderer that extensions were loaded in the browser.
IPC_MESSAGE_CONTROL1(ExtensionMsg_Loaded,
std::vector<ExtensionMsg_Loaded_Params>)