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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 // that there are no handles, we can cancel the rewriting by clearing the | 357 // that there are no handles, we can cancel the rewriting by clearing the |
358 // results.new_msg pointer. | 358 // results.new_msg pointer. |
359 ScanningResults results; | 359 ScanningResults results; |
360 results.nested_msg_callback = | 360 results.nested_msg_callback = |
361 base::Bind(&NaClMessageScanner::AuditNestedMessage, | 361 base::Bind(&NaClMessageScanner::AuditNestedMessage, |
362 base::Unretained(this)); | 362 base::Unretained(this)); |
363 switch (type) { | 363 switch (type) { |
364 CASE_FOR_MESSAGE(PpapiMsg_PPBAudio_NotifyAudioStreamCreated) | 364 CASE_FOR_MESSAGE(PpapiMsg_PPBAudio_NotifyAudioStreamCreated) |
365 CASE_FOR_MESSAGE(PpapiMsg_PPPMessaging_HandleMessage) | 365 CASE_FOR_MESSAGE(PpapiMsg_PPPMessaging_HandleMessage) |
366 CASE_FOR_MESSAGE(PpapiPluginMsg_ResourceReply) | 366 CASE_FOR_MESSAGE(PpapiPluginMsg_ResourceReply) |
| 367 CASE_FOR_SYNC_MESSAGE(PpapiMsg_PPPMessageHandler_HandleBlockingMessage) |
367 CASE_FOR_SYNC_MESSAGE(PpapiMsg_PnaclTranslatorCompileInit) | 368 CASE_FOR_SYNC_MESSAGE(PpapiMsg_PnaclTranslatorCompileInit) |
368 CASE_FOR_SYNC_MESSAGE(PpapiMsg_PnaclTranslatorLink) | 369 CASE_FOR_SYNC_MESSAGE(PpapiMsg_PnaclTranslatorLink) |
369 CASE_FOR_REPLY(PpapiHostMsg_OpenResource) | 370 CASE_FOR_REPLY(PpapiHostMsg_OpenResource) |
370 CASE_FOR_REPLY(PpapiHostMsg_PPBGraphics3D_Create) | 371 CASE_FOR_REPLY(PpapiHostMsg_PPBGraphics3D_Create) |
371 CASE_FOR_REPLY(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer) | 372 CASE_FOR_REPLY(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer) |
372 CASE_FOR_REPLY(PpapiHostMsg_PPBImageData_CreateSimple) | 373 CASE_FOR_REPLY(PpapiHostMsg_PPBImageData_CreateSimple) |
373 CASE_FOR_REPLY(PpapiHostMsg_ResourceSyncCall) | 374 CASE_FOR_REPLY(PpapiHostMsg_ResourceSyncCall) |
374 CASE_FOR_REPLY(PpapiHostMsg_SharedMemory_CreateSharedMemory) | 375 CASE_FOR_REPLY(PpapiHostMsg_SharedMemory_CreateSharedMemory) |
375 default: | 376 default: |
376 // Do nothing for messages we don't know. | 377 // Do nothing for messages we don't know. |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 fio_it->second->SetMaxWrittenOffset(offset_it->second); | 560 fio_it->second->SetMaxWrittenOffset(offset_it->second); |
560 } | 561 } |
561 } | 562 } |
562 break; | 563 break; |
563 } | 564 } |
564 } | 565 } |
565 } | 566 } |
566 | 567 |
567 } // namespace proxy | 568 } // namespace proxy |
568 } // namespace ppapi | 569 } // namespace ppapi |
OLD | NEW |