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

Side by Side Diff: ppapi/proxy/nacl_message_scanner.cc

Issue 215803002: Remove CommandBuffer::GetTransferBuffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 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
« no previous file with comments | « mojo/mojo_examples.gypi ('k') | ppapi/proxy/nacl_message_scanner_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PPBGraphics3D_GetTransferBuffer) 330 CASE_FOR_REPLY(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer)
331 CASE_FOR_REPLY(PpapiHostMsg_PPBImageData_CreateSimple) 331 CASE_FOR_REPLY(PpapiHostMsg_PPBImageData_CreateSimple)
332 CASE_FOR_REPLY(PpapiHostMsg_ResourceSyncCall) 332 CASE_FOR_REPLY(PpapiHostMsg_ResourceSyncCall)
333 CASE_FOR_REPLY(PpapiHostMsg_SharedMemory_CreateSharedMemory) 333 CASE_FOR_REPLY(PpapiHostMsg_SharedMemory_CreateSharedMemory)
334 default: 334 default:
335 // Do nothing for messages we don't know. 335 // Do nothing for messages we don't know.
336 break; 336 break;
337 } 337 }
338 break; 338 break;
339 } 339 }
340 default: 340 default:
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 fio_it->second->SetMaxWrittenOffset(offset_it->second); 532 fio_it->second->SetMaxWrittenOffset(offset_it->second);
533 } 533 }
534 } 534 }
535 break; 535 break;
536 } 536 }
537 } 537 }
538 } 538 }
539 539
540 } // namespace proxy 540 } // namespace proxy
541 } // namespace ppapi 541 } // namespace ppapi
OLDNEW
« no previous file with comments | « mojo/mojo_examples.gypi ('k') | ppapi/proxy/nacl_message_scanner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698