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

Unified Diff: mojo/edk/embedder/scoped_ipc_support.h

Issue 2074453003: Move ScopedIPCSupport to mojo/edk/embedder and the mojo::edk namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 | « mojo/edk/embedder/BUILD.gn ('k') | mojo/edk/embedder/scoped_ipc_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/scoped_ipc_support.h
diff --git a/ipc/mojo/scoped_ipc_support.h b/mojo/edk/embedder/scoped_ipc_support.h
similarity index 57%
rename from ipc/mojo/scoped_ipc_support.h
rename to mojo/edk/embedder/scoped_ipc_support.h
index 1ef26fc97ca30f0749a181782f32a8b7c234e7b4..a3b32da3b726d9508ef44c5c9a9f4f0508a444ec 100644
--- a/ipc/mojo/scoped_ipc_support.h
+++ b/mojo/edk/embedder/scoped_ipc_support.h
@@ -2,22 +2,24 @@
// 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_
+#ifndef MOJO_EDK_EMBEDDER_SCOPED_IPC_SUPPORT_H_
+#define MOJO_EDK_EMBEDDER_SCOPED_IPC_SUPPORT_H_
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/task_runner.h"
+#include "mojo/edk/system/system_impl_export.h"
-namespace IPC {
+namespace mojo {
+namespace edk {
-// Performs any necessary Mojo IPC initialization on construction, and shuts
-// down Mojo IPC on destruction.
+// Performs any necessary Mojo initialization on construction, and shuts
+// down Mojo on destruction.
//
-// This should be instantiated once per process and retained as long as Mojo IPC
+// This should be instantiated once per process and retained as long as Mojo
// is needed. The TaskRunner passed to the constructor should outlive this
// object.
-class ScopedIPCSupport {
+class MOJO_SYSTEM_IMPL_EXPORT ScopedIPCSupport {
public:
ScopedIPCSupport(scoped_refptr<base::TaskRunner> io_thread_task_runner);
~ScopedIPCSupport();
@@ -26,6 +28,7 @@ class ScopedIPCSupport {
DISALLOW_COPY_AND_ASSIGN(ScopedIPCSupport);
};
-} // namespace IPC
+} // namespace edk
+} // namespace mojo
-#endif // IPC_MOJO_SCOPED_IPC_SUPPORT_H_
+#endif // MOJO_EDK_EMBEDDER_SCOPED_IPC_SUPPORT_H_
« no previous file with comments | « mojo/edk/embedder/BUILD.gn ('k') | mojo/edk/embedder/scoped_ipc_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698