OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |