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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/nacl_irt/manifest_service.h ('k') | ppapi/nacl_irt/plugin_startup.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/nacl_irt/manifest_service.cc
diff --git a/ppapi/nacl_irt/manifest_service.cc b/ppapi/nacl_irt/manifest_service.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1f2b7147f1568af94dbabb33ecb9470eaee158c3
--- /dev/null
+++ b/ppapi/nacl_irt/manifest_service.cc
@@ -0,0 +1,29 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ppapi/nacl_irt/manifest_service.h"
+
+#include "base/message_loop/message_loop_proxy.h"
+#include "ipc/ipc_channel_handle.h"
+#include "ipc/ipc_channel_proxy.h"
+#include "ipc/ipc_sync_message_filter.h"
+
+namespace ppapi {
+
+ManifestService::ManifestService(
+ const IPC::ChannelHandle& handle,
+ scoped_refptr<base::MessageLoopProxy> io_message_loop,
+ base::WaitableEvent* shutdown_event) {
+ filter_ = new IPC::SyncMessageFilter(shutdown_event);
+ channel_.reset(new IPC::ChannelProxy(handle,
+ IPC::Channel::MODE_SERVER,
+ NULL, // Listener
+ io_message_loop));
+ channel_->AddFilter(filter_.get());
+}
+
+ManifestService::~ManifestService() {
+}
+
+} // namespace ppapi
« 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