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

Unified Diff: components/nacl/common/nacl_messages.h

Issue 131413009: Prototype: Use Chromium IPC for plugin LOAD_MODULE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased, some FIXMEs cleaned up Created 6 years, 10 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: components/nacl/common/nacl_messages.h
diff --git a/components/nacl/common/nacl_messages.h b/components/nacl/common/nacl_messages.h
index 261b87e8e7b1a5acfa43385a78efb991cc1dc460..5a9b572cf4ef5ab655918ca42a39d412a0d8b99b 100644
--- a/components/nacl/common/nacl_messages.h
+++ b/components/nacl/common/nacl_messages.h
@@ -10,9 +10,12 @@
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_platform_file.h"
+#include "native_client/src/trusted/service_runtime/nacl_error_code.h"
#define IPC_MESSAGE_START NaClMsgStart
+IPC_ENUM_TRAITS(NaClErrorCode)
+
IPC_STRUCT_TRAITS_BEGIN(nacl::NaClStartParams)
IPC_STRUCT_TRAITS_MEMBER(handles)
IPC_STRUCT_TRAITS_MEMBER(debug_stub_server_bound_socket)
@@ -93,3 +96,13 @@ IPC_SYNC_MESSAGE_CONTROL2_2(NaClProcessMsg_ResolveFileToken,
// created successfully.
IPC_MESSAGE_CONTROL1(NaClProcessHostMsg_PpapiChannelCreated,
IPC::ChannelHandle /* channel_handle */)
+
+// Created a channel between the renderer and the trusted plugin.
+IPC_MESSAGE_CONTROL1(NaClProcessHostMsg_TrustedPluginChannelCreated,
+ IPC::ChannelHandle /* channel_handle */)
+
+IPC_SYNC_MESSAGE_CONTROL1_1(NaClProcessMsg_LoadModule,
+ IPC::PlatformFileForTransit /* fd */,
dmichael (off chromium) 2014/02/06 18:24:22 It would be good to have a name or comment explain
+ NaClErrorCode /* output_code */)
+
+IPC_SYNC_MESSAGE_CONTROL0_0(NaClProcessMsg_StartModule)

Powered by Google App Engine
This is Rietveld 408576698