Chromium Code Reviews| Index: chrome/common/extensions/extension_messages.h |
| diff --git a/chrome/common/extensions/extension_messages.h b/chrome/common/extensions/extension_messages.h |
| index f77916bfeb5c26cecc8676517a4aa5c442d90ca2..9144a4124e3b128634320cfc710cf071a9b4414e 100644 |
| --- a/chrome/common/extensions/extension_messages.h |
| +++ b/chrome/common/extensions/extension_messages.h |
| @@ -25,7 +25,15 @@ IPC_STRUCT_BEGIN(ExtensionHostMsg_Request_Params) |
| // List of message arguments. |
| IPC_STRUCT_MEMBER(ListValue, arguments) |
| - // URL of the frame request was sent from. |
| + // Extension ID this request was sent from. This can be empty, in the case |
| + // where we expose APIs to normal web pages using the extension function |
| + // system. |
| + IPC_STRUCT_MEMBER(std::string, extension_id) |
| + |
| + // URL of the frame the request was sent from. This isn't necessarily an |
| + // extension url. Extension requests can also original from content scripts, |
|
Matt Perry
2011/11/11 20:07:19
originate*
Aaron Boodman
2011/11/11 23:12:02
Done.
|
| + // in which case extension_id will indicate the ID of the associated |
| + // extension. Or, they can origiante from hosted apps or normal web pages. |
| IPC_STRUCT_MEMBER(GURL, source_url) |
| // Unique request id to match requests and responses. |