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

Side by Side Diff: ppapi/proxy/ppapi_messages.h

Issue 1512733003: PNaCl: Use Chrome IPC to talk to the linker process, instead of SRPC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase + cleanup Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included message header, no traditional include guard. 5 // Multiply-included message header, no traditional include guard.
6 #include <map> 6 #include <map>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 ppapi::proxy::PPPDecryptor_Buffer /* buffer */, 861 ppapi::proxy::PPPDecryptor_Buffer /* buffer */,
862 std::string /* serialized_block_info */) 862 std::string /* serialized_block_info */)
863 863
864 // PPP_Instance_Private. 864 // PPP_Instance_Private.
865 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, 865 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject,
866 PP_Instance /* instance */, 866 PP_Instance /* instance */,
867 ppapi::proxy::SerializedVar /* result */) 867 ppapi::proxy::SerializedVar /* result */)
868 868
869 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 869 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
870 870
871 // Calls the PNaCl linker process to link the given object files together
872 // to produce a nexe file. Note that this PNaCl translation plumbing is
873 // not part of PPAPI proper, but this message is defined here because it
874 // needs to use the ppapi::proxy::SerializedHandle type.
bbudge 2015/12/16 20:30:06 Should this message be moved up close to the other
Mark Seaborn 2015/12/17 06:09:56 That's not quite the distinction I was making...
bbudge 2015/12/17 19:10:24 Whatever seems reasonable to you. See my other com
Mark Seaborn 2015/12/21 22:58:50 OK, I have removed the part mentioning "PPAPI prop
875 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_PnaclTranslatorLink,
876 /* object file FDs for inputs */
877 std::vector<ppapi::proxy::SerializedHandle>,
878 /* nexe file FD for output */
879 ppapi::proxy::SerializedHandle,
880 /* success status result */
881 bool)
882
871 // Reports to the browser that a plugin has been active. 883 // Reports to the browser that a plugin has been active.
872 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Keepalive) 884 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Keepalive)
bbudge 2015/12/16 20:30:06 This also seems like an implementation detail mess
Mark Seaborn 2015/12/17 06:09:56 Hmm, I would regard all the IPC messages as implem
bbudge 2015/12/17 19:10:22 Right, by "implementation detail" I meant not used
Mark Seaborn 2015/12/21 22:58:50 I'm a bit reluctant to start using new prefixes be
bbudge 2015/12/21 23:28:51 OK, maybe I'm overthinking this. Your first idea s
873 885
874 // ----------------------------------------------------------------------------- 886 // -----------------------------------------------------------------------------
875 // These are from the plugin to the renderer. 887 // These are from the plugin to the renderer.
876 888
877 // Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel 889 // Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel
878 // could not be established. This could be because the IPC could not be created 890 // could not be established. This could be because the IPC could not be created
879 // for some weird reason, but more likely that the plugin failed to load or 891 // for some weird reason, but more likely that the plugin failed to load or
880 // initialize properly. 892 // initialize properly.
881 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated, 893 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated,
882 IPC::ChannelHandle /* handle */) 894 IPC::ChannelHandle /* handle */)
883 895
884 // Notify the renderer that the PPAPI channel gets ready in the plugin. 896 // Notify the renderer that the PPAPI channel gets ready in the plugin.
885 IPC_MESSAGE_CONTROL0(PpapiHostMsg_StartupInitializationComplete) 897 IPC_MESSAGE_CONTROL0(PpapiHostMsg_StartupInitializationComplete)
886 898
887 // Calls renderer to open a resource file for nacl_irt_open_resource(). 899 // Calls renderer to open a resource file for nacl_irt_open_resource().
900 // Note that open_resource() is not part of PPAPI proper, but this message
901 // is defined here because it needs to use the
902 // ppapi::proxy::SerializedHandle type.
bbudge 2015/12/16 20:30:06 Related to my above comments, would it be clearer
Mark Seaborn 2015/12/17 06:09:56 PpapiHostMsg_OpenResource is actually usable by no
bbudge 2015/12/17 19:10:24 Hmm, the message name is kind of misleading given
Mark Seaborn 2015/12/21 22:58:50 OK, I'm dropping this comment change from this CL,
888 IPC_SYNC_MESSAGE_CONTROL1_3(PpapiHostMsg_OpenResource, 903 IPC_SYNC_MESSAGE_CONTROL1_3(PpapiHostMsg_OpenResource,
889 std::string /* key */, 904 std::string /* key */,
890 ppapi::proxy::SerializedHandle /* fd */, 905 ppapi::proxy::SerializedHandle /* fd */,
891 uint64_t /* file_token_lo */, 906 uint64_t /* file_token_lo */,
892 uint64_t /* file_token_hi */) 907 uint64_t /* file_token_hi */)
893 908
894 // Logs the given message to the console of all instances. 909 // Logs the given message to the console of all instances.
895 IPC_MESSAGE_CONTROL4(PpapiHostMsg_LogWithSource, 910 IPC_MESSAGE_CONTROL4(PpapiHostMsg_LogWithSource,
896 PP_Instance /* instance */, 911 PP_Instance /* instance */,
897 int /* log_level */, 912 int /* log_level */,
(...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after
2370 std::vector<ppapi::HostResource> /* buffers */, 2385 std::vector<ppapi::HostResource> /* buffers */,
2371 uint32_t /* buffer_size */) 2386 uint32_t /* buffer_size */)
2372 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 2387 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
2373 uint32_t /* status */) 2388 uint32_t /* status */)
2374 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 2389 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
2375 uint32_t /* error */) 2390 uint32_t /* error */)
2376 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 2391 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
2377 uint32_t /* buffer */) 2392 uint32_t /* buffer */)
2378 2393
2379 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2394 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« ppapi/proxy/nacl_message_scanner.cc ('K') | « ppapi/proxy/nacl_message_scanner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698