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