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

Side by Side 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: windows fix Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "ppapi/proxy/nacl_message_scanner.h" 5 #include "ppapi/proxy/nacl_message_scanner.h"
6 6
7 #include <vector> 7 #include <vector>
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "ipc/ipc_message.h" 9 #include "ipc/ipc_message.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 case IPC_REPLY_ID: { 320 case IPC_REPLY_ID: {
321 int id = IPC::SyncMessage::GetMessageId(msg); 321 int id = IPC::SyncMessage::GetMessageId(msg);
322 PendingSyncMsgMap::iterator iter(pending_sync_msgs_.find(id)); 322 PendingSyncMsgMap::iterator iter(pending_sync_msgs_.find(id));
323 if (iter == pending_sync_msgs_.end()) { 323 if (iter == pending_sync_msgs_.end()) {
324 NOTREACHED(); 324 NOTREACHED();
325 return false; 325 return false;
326 } 326 }
327 uint32_t type = iter->second; 327 uint32_t type = iter->second;
328 pending_sync_msgs_.erase(iter); 328 pending_sync_msgs_.erase(iter);
329 switch (type) { 329 switch (type) {
330 CASE_FOR_REPLY(PpapiHostMsg_OpenResource)
330 CASE_FOR_REPLY(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer) 331 CASE_FOR_REPLY(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer)
331 CASE_FOR_REPLY(PpapiHostMsg_PPBImageData_CreateSimple) 332 CASE_FOR_REPLY(PpapiHostMsg_PPBImageData_CreateSimple)
332 CASE_FOR_REPLY(PpapiHostMsg_ResourceSyncCall) 333 CASE_FOR_REPLY(PpapiHostMsg_ResourceSyncCall)
333 CASE_FOR_REPLY(PpapiHostMsg_SharedMemory_CreateSharedMemory) 334 CASE_FOR_REPLY(PpapiHostMsg_SharedMemory_CreateSharedMemory)
334 default: 335 default:
335 // Do nothing for messages we don't know. 336 // Do nothing for messages we don't know.
336 break; 337 break;
337 } 338 }
338 break; 339 break;
339 } 340 }
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 fio_it->second->SetMaxWrittenOffset(offset_it->second); 535 fio_it->second->SetMaxWrittenOffset(offset_it->second);
535 } 536 }
536 } 537 }
537 break; 538 break;
538 } 539 }
539 } 540 }
540 } 541 }
541 542
542 } // namespace proxy 543 } // namespace proxy
543 } // namespace ppapi 544 } // namespace ppapi
OLDNEW
« ppapi/nacl_irt/irt_ppapi.cc ('K') | « ppapi/native_client/src/trusted/plugin/service_runtime.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698