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

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

Issue 1540953002: NaCl: Expand comment about PpapiHostMsg_OpenResource in ppapi_messages.h (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 // Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel 877 // 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 878 // 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 879 // for some weird reason, but more likely that the plugin failed to load or
880 // initialize properly. 880 // initialize properly.
881 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated, 881 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated,
882 IPC::ChannelHandle /* handle */) 882 IPC::ChannelHandle /* handle */)
883 883
884 // Notify the renderer that the PPAPI channel gets ready in the plugin. 884 // Notify the renderer that the PPAPI channel gets ready in the plugin.
885 IPC_MESSAGE_CONTROL0(PpapiHostMsg_StartupInitializationComplete) 885 IPC_MESSAGE_CONTROL0(PpapiHostMsg_StartupInitializationComplete)
886 886
887 // Calls renderer to open a resource file for nacl_irt_open_resource(). 887 // This is sent from a nexe (NaCl untrusted code) to the renderer, to open a
888 // file listed in a NaCl manifest file (NMF). It is part of the
889 // implementation of open_resource(), which is defined in NaCl's irt.h.
890 //
891 // This call returns a read-only file handle from the renderer. When using
892 // validation caching, this handle is not used: The NaCl loader process will
893 // reacquire the handle from the more-trusted browser process via
894 // NaClProcessMsg_ResolveFileToken, passing the token values returned here.
895 //
896 // Note that the open_resource() interface is not a PPAPI interface (in the
897 // sense that it's not defined in ppapi/c/), but this message is defined here
898 // in ppapi_messages.h (rather than in components/nacl/) because half of the
899 // implementation of open_resource() lives in ppapi/nacl_irt/, and because
900 // this message must be processed by ppapi/proxy/nacl_message_scanner.cc.
888 IPC_SYNC_MESSAGE_CONTROL1_3(PpapiHostMsg_OpenResource, 901 IPC_SYNC_MESSAGE_CONTROL1_3(PpapiHostMsg_OpenResource,
889 std::string /* key */, 902 std::string /* key */,
890 ppapi::proxy::SerializedHandle /* fd */, 903 ppapi::proxy::SerializedHandle /* fd */,
891 uint64_t /* file_token_lo */, 904 uint64_t /* file_token_lo */,
892 uint64_t /* file_token_hi */) 905 uint64_t /* file_token_hi */)
893 906
894 // Logs the given message to the console of all instances. 907 // Logs the given message to the console of all instances.
895 IPC_MESSAGE_CONTROL4(PpapiHostMsg_LogWithSource, 908 IPC_MESSAGE_CONTROL4(PpapiHostMsg_LogWithSource,
896 PP_Instance /* instance */, 909 PP_Instance /* instance */,
897 int /* log_level */, 910 int /* log_level */,
(...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after
2370 std::vector<ppapi::HostResource> /* buffers */, 2383 std::vector<ppapi::HostResource> /* buffers */,
2371 uint32_t /* buffer_size */) 2384 uint32_t /* buffer_size */)
2372 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 2385 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
2373 uint32_t /* status */) 2386 uint32_t /* status */)
2374 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 2387 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
2375 uint32_t /* error */) 2388 uint32_t /* error */)
2376 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 2389 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
2377 uint32_t /* buffer */) 2390 uint32_t /* buffer */)
2378 2391
2379 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2392 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698