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

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

Issue 1440423003: Add support for HandleBlockingMessage to NaClMessageScanner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge with mseaborn's changes Created 4 years, 11 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
« no previous file with comments | « no previous file | ppapi/tests/test_message_handler.h » ('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 <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
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
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
OLDNEW
« no previous file with comments | « no previous file | ppapi/tests/test_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698