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

Unified Diff: ppapi/proxy/nacl_message_scanner.cc

Issue 418423002: Pepper: Stop using SRPC for irt_open_resource(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: spelling fix Created 6 years, 3 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
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/service_runtime.cc ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/nacl_message_scanner.cc
diff --git a/ppapi/proxy/nacl_message_scanner.cc b/ppapi/proxy/nacl_message_scanner.cc
index e9c477d039ca6ffc0ad4a7d08ae3cfb64b9be5e6..af257623160b02c042de2e0cbeaac4ce37119efa 100644
--- a/ppapi/proxy/nacl_message_scanner.cc
+++ b/ppapi/proxy/nacl_message_scanner.cc
@@ -53,9 +53,11 @@ void WriteHandle(int handle_index,
IPC::Message* msg) {
SerializedHandle::WriteHeader(handle.header(), msg);
Mark Seaborn 2014/09/08 16:26:53 BTW, this has a return valid that isn't checked he
teravest 2014/09/08 20:25:28 I inspected SerializedHandle::WriteHeader and foun
- // Now write the handle itself in POSIX style.
- msg->WriteBool(true); // valid == true
- msg->WriteInt(handle_index);
+ if (handle.type() != SerializedHandle::INVALID) {
Mark Seaborn 2014/09/08 16:26:52 Where is the corresponding reader for this format?
teravest 2014/09/08 20:25:27 The valid field is read out here: https://code.goo
+ // Now write the handle itself in POSIX style.
+ msg->WriteBool(true); // valid == true
+ msg->WriteInt(handle_index);
+ }
}
// Define overloads for each kind of message parameter that requires special
@@ -318,6 +320,7 @@ bool NaClMessageScanner::ScanMessage(
CASE_FOR_MESSAGE(PpapiMsg_PPBAudio_NotifyAudioStreamCreated)
CASE_FOR_MESSAGE(PpapiMsg_PPPMessaging_HandleMessage)
CASE_FOR_MESSAGE(PpapiPluginMsg_ResourceReply)
+ CASE_FOR_REPLY(PpapiHostMsg_OpenResource)
CASE_FOR_REPLY(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer)
CASE_FOR_REPLY(PpapiHostMsg_PPBImageData_CreateSimple)
CASE_FOR_REPLY(PpapiHostMsg_ResourceSyncCall)
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/service_runtime.cc ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698