Index: ipc/mojo/scoped_ipc_support.h |
diff --git a/ipc/mojo/scoped_ipc_support.h b/ipc/mojo/scoped_ipc_support.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9f9c2749ecba13ef1eeaffde77cc9b96dcde632e |
--- /dev/null |
+++ b/ipc/mojo/scoped_ipc_support.h |
@@ -0,0 +1,27 @@ |
+// Copyright 2015 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 IPC_MOJO_SCOPED_IPC_SUPPORT_H_ |
+#define IPC_MOJO_SCOPED_IPC_SUPPORT_H_ |
+ |
+#include "base/macros.h" |
+#include "base/memory/ref_counted.h" |
+#include "base/task_runner.h" |
+#include "ipc/ipc_export.h" |
+ |
+namespace IPC { |
+ |
+// Perform any necessary Mojo IPC initialization. |
+class IPC_MOJO_EXPORT ScopedIPCSupport { |
+ public: |
+ ScopedIPCSupport(scoped_refptr<base::TaskRunner> io_thread_task_runner); |
+ ~ScopedIPCSupport(); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(ScopedIPCSupport); |
+}; |
+ |
+} // namespace IPC |
+ |
+#endif // IPC_MOJO_SCOPED_IPC_SUPPORT_H_ |