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

Unified Diff: ipc/mojo/scoped_ipc_support.h

Issue 954643002: Update mojo sdk to rev 3d23dae011859a2aae49f1d1adde705c8e85d819 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use run_renderer_in_process() Created 5 years, 10 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 | « ipc/mojo/ipc_mojo.gyp ('k') | ipc/mojo/scoped_ipc_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..21013fa75c0469ae8554f90d482e24eb0f31d6df
--- /dev/null
+++ b/ipc/mojo/scoped_ipc_support.h
@@ -0,0 +1,34 @@
+// 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. A ScopedIPCSupport object
+// should be instantiated and retained by any component which makes direct calls
+// to the Mojo EDK. This is used to ensure that the EDK is initialized within
+// the current process and that it is shutdown cleanly when no longer in use.
+//
+// NOTE: Unless you are making explicit calls to functions in the
+// mojo::embedder namespace, you almost definitely DO NOT need this and should
+// not be using it.
+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_
« no previous file with comments | « ipc/mojo/ipc_mojo.gyp ('k') | ipc/mojo/scoped_ipc_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698