Chromium Code Reviews| Index: extensions/common/extension_messages.h |
| diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h |
| index aee505c44a9d4b8a71a52d1648c842b9b56a2ced..94fc6350eef4342494e955b30c00f3e81142eec1 100644 |
| --- a/extensions/common/extension_messages.h |
| +++ b/extensions/common/extension_messages.h |
| @@ -16,6 +16,7 @@ |
| #include "extensions/common/draggable_region.h" |
| #include "extensions/common/extension.h" |
| #include "extensions/common/extensions_client.h" |
| +#include "extensions/common/host_id.h" |
| #include "extensions/common/permissions/media_galleries_permission_data.h" |
| #include "extensions/common/permissions/permission_set.h" |
| #include "extensions/common/permissions/socket_permission_data.h" |
| @@ -38,6 +39,8 @@ IPC_ENUM_TRAITS_MAX_VALUE(content::SocketPermissionRequest::OperationType, |
| IPC_ENUM_TRAITS_MAX_VALUE(extensions::UserScript::InjectionType, |
| extensions::UserScript::INJECTION_TYPE_LAST) |
| +IPC_ENUM_TRAITS_MAX_VALUE(HostID::HostType, HostID::HOST_TYPE_LAST) |
| + |
| // Parameters structure for ExtensionHostMsg_AddAPIActionToActivityLog and |
| // ExtensionHostMsg_AddEventToActivityLog. |
| IPC_STRUCT_BEGIN(ExtensionHostMsg_APIActionOrEvent_Params) |
| @@ -106,9 +109,12 @@ IPC_STRUCT_BEGIN(ExtensionMsg_ExecuteCode_Params) |
| // The extension API request id, for responding. |
| IPC_STRUCT_MEMBER(int, request_id) |
| - // The ID of the requesting extension. To know which isolated world to |
| + // The type of the requesting injection host. |
| + IPC_STRUCT_MEMBER(HostID::HostType, host_type) |
|
Devlin
2015/02/27 17:11:36
Why not just pass the HostID?
Xi Han
2015/02/27 21:07:46
Updated.
|
| + |
| + // The ID of the requesting injection host. To know which isolated world to |
| // execute the code inside of. |
| - IPC_STRUCT_MEMBER(std::string, extension_id) |
| + IPC_STRUCT_MEMBER(std::string, host_id) |
| // Whether the code is JavaScript or CSS. |
| IPC_STRUCT_MEMBER(bool, is_javascript) |