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

Unified Diff: chrome/common/extensions/extension_messages.h

Issue 10443105: Take 2 at implementing activeTab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: many more tests Created 8 years, 6 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: chrome/common/extensions/extension_messages.h
diff --git a/chrome/common/extensions/extension_messages.h b/chrome/common/extensions/extension_messages.h
index 42aab16e12d5cfcbfb4ef791c42cb26a612add36..1573c602534155bc3c45d57c9e256af7dde79ec8 100644
--- a/chrome/common/extensions/extension_messages.h
+++ b/chrome/common/extensions/extension_messages.h
@@ -125,6 +125,9 @@ struct ExtensionMsg_Loaded_Params {
URLPatternSet explicit_hosts;
URLPatternSet scriptable_hosts;
+ // The extension's tab-specific host permissions.
+ std::map<int, URLPatternSet> tab_specific_host_permissions;
Aaron Boodman 2012/06/08 05:31:30 I'm curious how this part is going to work when yo
not at google - send to devlin 2012/06/12 20:40:51 Yeah, good point. Actually, in the world of not c
+
// We keep this separate so that it can be used in logging.
std::string id;
@@ -238,6 +241,10 @@ IPC_MESSAGE_ROUTED1(ExtensionMsg_GetApplicationInfo,
IPC_MESSAGE_ROUTED1(ExtensionMsg_UpdateBrowserWindowId,
int /* id of browser window */)
+// Tell the renderer what its tab ID is.
Aaron Boodman 2012/06/08 05:31:30 Technically its the render *view* that has a tab I
not at google - send to devlin 2012/06/12 20:40:51 Done.
+IPC_MESSAGE_ROUTED1(ExtensionMsg_SetTabId,
+ int /* id of tab */)
+
// Tell the renderer to update an extension's permission set.
IPC_MESSAGE_CONTROL5(ExtensionMsg_UpdatePermissions,
int /* UpdateExtensionPermissionsInfo::REASON */,
@@ -246,6 +253,18 @@ IPC_MESSAGE_CONTROL5(ExtensionMsg_UpdatePermissions,
URLPatternSet /* explicit_hosts */,
URLPatternSet /* scriptable_hosts */)
+// Tell the renderer about new tab-specific permissions for an extension.
Aaron Boodman 2012/06/08 05:31:30 It seems like this duplicates the functionality of
not at google - send to devlin 2012/06/12 20:40:51 It would be a bit awkward to re-use it, but it's m
+IPC_MESSAGE_CONTROL4(ExtensionMsg_SetTabSpecificPermissions,
+ int32 /* page_id (only relevant for the target tab) */,
+ int /* tab_id */,
+ std::string /* extension_id */,
+ URLPatternSet /* host */)
+
+// Tell the renderer to clear tab-specific permissions for some extensions.
+IPC_MESSAGE_CONTROL2(ExtensionMsg_ClearTabSpecificPermissions,
+ int /* tab_id */,
+ std::vector<std::string> /* extension_ids */)
+
// Tell the renderer which type this view is.
IPC_MESSAGE_ROUTED1(ExtensionMsg_NotifyRenderViewType,
chrome::ViewType /* view_type */)

Powered by Google App Engine
This is Rietveld 408576698