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

Unified Diff: ppapi/nacl_irt/embedder_service.h

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
Index: ppapi/nacl_irt/embedder_service.h
diff --git a/ppapi/nacl_irt/embedder_service.h b/ppapi/nacl_irt/embedder_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..84ad14f7f0a7253a810d1632151caa1731901932
--- /dev/null
+++ b/ppapi/nacl_irt/embedder_service.h
@@ -0,0 +1,41 @@
+// 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.
+
+#ifndef PPAPI_NACL_IRT_EMBEDDER_SERVICE_H_
+#define PPAPI_NACL_IRT_EMBEDDER_SERVICE_H_
+
+#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace base {
+class MessageLoopProxy;
+class WaitableEvent;
+} // namespace base
+
+namespace IPC {
+struct ChannelHandle;
+class SyncChannel;
+class SyncMessageFilter;
+} // namespace IPC
+
+namespace ppapi {
+
+class EmbedderService {
+ public:
+ EmbedderService(const IPC::ChannelHandle& handle,
+ scoped_refptr<base::MessageLoopProxy> io_message_loop,
+ base::WaitableEvent* shutdown_event);
+ ~EmbedderService();
+
+ private:
+ scoped_ptr<IPC::SyncChannel> channel_;
+ scoped_refptr<IPC::SyncMessageFilter> filter_;
+
+ DISALLOW_COPY_AND_ASSIGN(EmbedderService);
+};
+
+} // namespace ppapi
+
+#endif // PPAPI_NACL_IRT_EMBEDDER_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698