Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ppapi/nacl_irt/embedder_service.h" | |
| 6 | |
| 7 #include "base/message_loop/message_loop_proxy.h" | |
| 8 #include "ipc/ipc_channel_handle.h" | |
| 9 #include "ipc/ipc_sync_channel.h" | |
| 10 #include "ipc/ipc_sync_message_filter.h" | |
| 11 | |
| 12 namespace ppapi { | |
| 13 | |
| 14 EmbedderService::EmbedderService( | |
| 15 const IPC::ChannelHandle& handle, | |
| 16 scoped_refptr<base::MessageLoopProxy> io_message_loop, | |
| 17 base::WaitableEvent* shutdown_event) { | |
| 18 channel_.reset(new IPC::SyncChannel(NULL, // Listener | |
| 19 io_message_loop, | |
|
dmichael (off chromium)
2014/04/10 18:06:23
It looks like you're creating the SyncChannel on t
hidehiko
2014/04/10 19:02:08
My understanding is the IPC thread and listenter t
dmichael (off chromium)
2014/04/10 23:14:38
I don't think we ever do that today, so it depends
hidehiko
2014/04/11 16:28:30
Thank you for pointing this out.
So, I've looked
dmichael (off chromium)
2014/04/11 17:09:17
Yes, that's right. I still think the two shouldn't
| |
| 20 shutdown_event)); | |
| 21 filter_ = new IPC::SyncMessageFilter(shutdown_event); | |
| 22 channel_->AddFilter(filter_.get()); | |
| 23 const bool kCreatePipeNow = true; | |
| 24 channel_->Init(handle, IPC::Channel::MODE_SERVER, kCreatePipeNow); | |
| 25 } | |
| 26 | |
| 27 EmbedderService::~EmbedderService() { | |
| 28 } | |
| 29 | |
| 30 } // namespace ppapi | |
| OLD | NEW |