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

Side by Side Diff: chrome/browser/nacl_host/nacl_process_host.cc

Issue 11359097: Refactored the PPB_Flash_File_ModuleLocal/FileRef to the new ppapi resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/nacl_host/nacl_process_host.h" 5 #include "chrome/browser/nacl_host/nacl_process_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 new IPC::ChannelProxy(channel_handle, 760 new IPC::ChannelProxy(channel_handle,
761 IPC::Channel::MODE_CLIENT, 761 IPC::Channel::MODE_CLIENT,
762 &ipc_plugin_listener_, 762 &ipc_plugin_listener_,
763 base::MessageLoopProxy::current())); 763 base::MessageLoopProxy::current()));
764 // Create the browser ppapi host and enable PPAPI message dispatching to the 764 // Create the browser ppapi host and enable PPAPI message dispatching to the
765 // browser process. 765 // browser process.
766 content::BrowserPpapiHost::CreateExternalPluginProcess( 766 content::BrowserPpapiHost::CreateExternalPluginProcess(
767 process_.get(), // sender 767 process_.get(), // sender
768 permissions_, 768 permissions_,
769 process_->GetData().handle, 769 process_->GetData().handle,
770 process_->GetData().id,
770 ipc_proxy_channel_.get(), 771 ipc_proxy_channel_.get(),
771 chrome_render_message_filter_->GetHostResolver(), 772 chrome_render_message_filter_->GetHostResolver(),
772 chrome_render_message_filter_->render_process_id(), 773 chrome_render_message_filter_->render_process_id(),
773 render_view_id_); 774 render_view_id_);
774 // Send a message to create the NaCl-Renderer channel. The handle is just 775 // Send a message to create the NaCl-Renderer channel. The handle is just
775 // a place holder. 776 // a place holder.
776 ipc_proxy_channel_->Send( 777 ipc_proxy_channel_->Send(
777 new PpapiMsg_CreateNaClChannel( 778 new PpapiMsg_CreateNaClChannel(
778 chrome_render_message_filter_->render_process_id(), 779 chrome_render_message_filter_->render_process_id(),
779 permissions_, 780 permissions_,
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 } else { 900 } else {
900 NaClStartDebugExceptionHandlerThread( 901 NaClStartDebugExceptionHandlerThread(
901 process_handle.Take(), info, 902 process_handle.Take(), info,
902 base::MessageLoopProxy::current(), 903 base::MessageLoopProxy::current(),
903 base::Bind(&NaClProcessHost::OnDebugExceptionHandlerLaunchedByBroker, 904 base::Bind(&NaClProcessHost::OnDebugExceptionHandlerLaunchedByBroker,
904 weak_factory_.GetWeakPtr())); 905 weak_factory_.GetWeakPtr()));
905 return true; 906 return true;
906 } 907 }
907 } 908 }
908 #endif 909 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698