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

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

Issue 10025007: Convert tabs, windows, and extension APIs to feature system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: blah Created 8 years, 8 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
« no previous file with comments | « chrome/common/extensions/api/windows.json ('k') | chrome/common/extensions/extension_permission_set.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_messages.h
diff --git a/chrome/common/extensions/extension_messages.h b/chrome/common/extensions/extension_messages.h
index 35031616de69025fb4e04a950f12e75ae6cb15d0..fe5c9985f929d0a5c19591de25a838540108eb20 100644
--- a/chrome/common/extensions/extension_messages.h
+++ b/chrome/common/extensions/extension_messages.h
@@ -39,6 +39,9 @@ IPC_STRUCT_BEGIN(ExtensionHostMsg_Request_Params)
// Web security origin of the frame the request was sent from.
IPC_STRUCT_MEMBER(string16, source_origin)
+ // The Feature::Context type this request came from.
+ IPC_STRUCT_MEMBER(int, source_context_type)
+
// Unique request id to match requests and responses.
IPC_STRUCT_MEMBER(int, request_id)
@@ -300,9 +303,10 @@ IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread,
ExtensionHostMsg_Request_Params)
// Notify the browser that the given extension added a listener to an event.
-IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddListener,
+IPC_MESSAGE_CONTROL3(ExtensionHostMsg_AddListener,
std::string /* extension_id */,
- std::string /* name */)
+ std::string /* name */,
+ int /* source_context_type */)
// Notify the browser that the given extension removed a listener from an
// event.
@@ -312,9 +316,10 @@ IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveListener,
// Notify the browser that the given extension added a listener to an event from
// a lazy background page.
-IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddLazyListener,
+IPC_MESSAGE_CONTROL3(ExtensionHostMsg_AddLazyListener,
std::string /* extension_id */,
- std::string /* name */)
+ std::string /* name */,
+ int /* source_context_type */)
// Notify the browser that the given extension is no longer interested in
// receiving the given event from a lazy background page.
« no previous file with comments | « chrome/common/extensions/api/windows.json ('k') | chrome/common/extensions/extension_permission_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698