| Index: extensions/common/extension_messages.h
|
| diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h
|
| index aee505c44a9d4b8a71a52d1648c842b9b56a2ced..232167c224f15ec3eb77cb540d14c65a7d9a542c 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,8 @@ 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
|
| - // execute the code inside of.
|
| - IPC_STRUCT_MEMBER(std::string, extension_id)
|
| + // The ID of the requesting injection host.
|
| + IPC_STRUCT_MEMBER(HostID, host_id)
|
|
|
| // Whether the code is JavaScript or CSS.
|
| IPC_STRUCT_MEMBER(bool, is_javascript)
|
| @@ -338,6 +340,14 @@ struct ParamTraits<extensions::ManifestPermissionSet> {
|
| };
|
|
|
| template <>
|
| +struct ParamTraits<HostID> {
|
| + typedef HostID param_type;
|
| + static void Write(Message* m, const param_type& p);
|
| + static bool Read(const Message* m, PickleIterator* iter, param_type* r);
|
| + static void Log(const param_type& p, std::string* l);
|
| +};
|
| +
|
| +template <>
|
| struct ParamTraits<ExtensionMsg_PermissionSetStruct> {
|
| typedef ExtensionMsg_PermissionSetStruct param_type;
|
| static void Write(Message* m, const param_type& p);
|
|
|