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/manifest_service.h" |
| 6 |
| 7 #include "base/message_loop/message_loop_proxy.h" |
| 8 #include "ipc/ipc_channel_handle.h" |
| 9 #include "ipc/ipc_channel_proxy.h" |
| 10 #include "ipc/ipc_sync_message_filter.h" |
| 11 |
| 12 namespace ppapi { |
| 13 |
| 14 ManifestService::ManifestService( |
| 15 const IPC::ChannelHandle& handle, |
| 16 scoped_refptr<base::MessageLoopProxy> io_message_loop, |
| 17 base::WaitableEvent* shutdown_event) { |
| 18 filter_ = new IPC::SyncMessageFilter(shutdown_event); |
| 19 channel_.reset(new IPC::ChannelProxy(handle, |
| 20 IPC::Channel::MODE_SERVER, |
| 21 NULL, // Listener |
| 22 io_message_loop)); |
| 23 channel_->AddFilter(filter_.get()); |
| 24 } |
| 25 |
| 26 ManifestService::~ManifestService() { |
| 27 } |
| 28 |
| 29 } // namespace ppapi |
OLD | NEW |