diff options
author | steveblock@chromium.org <steveblock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-20 11:57:36 +0000 |
---|---|---|
committer | steveblock@chromium.org <steveblock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-20 11:57:36 +0000 |
commit | 4a9e852a691dbd67d8c178744e335a23330d253a (patch) | |
tree | b50155b7e89479c02f3e47fa16afc6d3b1cee85e /content/common/np_channel_base.h | |
parent | b5be69a9c65e5a8e9c9912cb48336b069b67ed59 (diff) | |
download | chromium_src-4a9e852a691dbd67d8c178744e335a23330d253a.zip chromium_src-4a9e852a691dbd67d8c178744e335a23330d253a.tar.gz chromium_src-4a9e852a691dbd67d8c178744e335a23330d253a.tar.bz2 |
Add shutdown event argument to NPChannelBase::GetChannel()
Currently NPChannelBase uses ChildProcess::current()->GetShutDownEvent() as the
shutdown event for its underlying SyncChannel. This change allows child classes
to specify their own shutdown event.
This is required to allow NPChannelBase to be used between the renderer and
non-child processes.
This change is refactoring only and introduces no change in behaviour.
BUG=96703
Review URL: http://codereview.chromium.org/7971006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101948 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/np_channel_base.h')
-rw-r--r-- | content/common/np_channel_base.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/content/common/np_channel_base.h b/content/common/np_channel_base.h index 9726f6d..5f0eac5 100644 --- a/content/common/np_channel_base.h +++ b/content/common/np_channel_base.h @@ -115,7 +115,7 @@ class NPChannelBase : public IPC::Channel::Listener, static NPChannelBase* GetChannel( const IPC::ChannelHandle& channel_handle, IPC::Channel::Mode mode, ChannelFactory factory, base::MessageLoopProxy* ipc_message_loop, - bool create_pipe_now); + bool create_pipe_now, base::WaitableEvent* shutdown_event); // Sends a message to all instances. static void Broadcast(IPC::Message* message); @@ -138,7 +138,8 @@ class NPChannelBase : public IPC::Channel::Listener, } virtual bool Init(base::MessageLoopProxy* ipc_message_loop, - bool create_pipe_now); + bool create_pipe_now, + base::WaitableEvent* shutdown_event); scoped_ptr<IPC::SyncChannel> channel_; |