Commit a20a122d authored by teravest@chromium.org's avatar teravest@chromium.org

NaCl: Split out Non-SFI logic when starting NaCl.

This splits out the Non-SFI case more explicitly when starting a NaCl module to
make the code easier to read. There isn't a whole lot of code in common between
the Non-SFI and SFI cases.

BUG=333950

Review URL: https://codereview.chromium.org/301993003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275464 0039d316-1c4b-4281-b951-d872f2087c98
parent 63b1b7ed
This diff is collapsed.
...@@ -14,6 +14,10 @@ ...@@ -14,6 +14,10 @@
#include "components/nacl/loader/nacl_trusted_listener.h" #include "components/nacl/loader/nacl_trusted_listener.h"
#include "ipc/ipc_listener.h" #include "ipc/ipc_listener.h"
namespace base {
class MessageLoopProxy;
}
namespace IPC { namespace IPC {
class SyncChannel; class SyncChannel;
class SyncMessageFilter; class SyncMessageFilter;
...@@ -45,9 +49,17 @@ class NaClListener : public IPC::Listener { ...@@ -45,9 +49,17 @@ class NaClListener : public IPC::Listener {
#endif #endif
private: private:
void OnStart(const nacl::NaClStartParams& params);
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
void OnStart(const nacl::NaClStartParams& params);
// Non-SFI version of OnStart().
void StartNonSfi(const nacl::NaClStartParams& params);
IPC::ChannelHandle CreateTrustedListener(
base::MessageLoopProxy* message_loop_proxy,
base::WaitableEvent* shutdown_event);
// A channel back to the browser. // A channel back to the browser.
scoped_ptr<IPC::SyncChannel> channel_; scoped_ptr<IPC::SyncChannel> channel_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment