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

Side by Side Diff: ppapi/nacl_irt/manifest_service.cc

Issue 231793003: Add IPC Channel for new ManifestService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months 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
« no previous file with comments | « ppapi/nacl_irt/manifest_service.h ('k') | ppapi/nacl_irt/plugin_startup.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « ppapi/nacl_irt/manifest_service.h ('k') | ppapi/nacl_irt/plugin_startup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698