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

Unified Diff: mojo/edk/platform/platform_pipe.h

Issue 1659213002: Move PlatformChannelPair to //mojo/edk/platform and rename it PlatformPipe. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 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/platform/BUILD.gn ('k') | mojo/edk/system/channel_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/platform/platform_pipe.h
diff --git a/mojo/edk/embedder/platform_channel_pair.h b/mojo/edk/platform/platform_pipe.h
similarity index 68%
rename from mojo/edk/embedder/platform_channel_pair.h
rename to mojo/edk/platform/platform_pipe.h
index c9927e8bf66fee60f8478f6f35387977c6a3d202..137efff03ab28a1590a766f0cbaa57badc26b2d7 100644
--- a/mojo/edk/embedder/platform_channel_pair.h
+++ b/mojo/edk/platform/platform_pipe.h
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_
-#define MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_
+#ifndef MOJO_EDK_PLATFORM_PLATFORM_PIPE_H_
+#define MOJO_EDK_PLATFORM_PLATFORM_PIPE_H_
#include "mojo/edk/platform/scoped_platform_handle.h"
namespace mojo {
-namespace embedder {
+namespace platform {
// A helper class for creating a pair of |PlatformHandle|s that are connected by
// a suitable (platform-specific) bidirectional "pipe" (e.g., Unix domain
@@ -19,16 +19,16 @@ namespace embedder {
// |PlatformChannel{Write,Writev}()| (from platform_channel_utils.h) instead of
// |write()|, |writev()|, etc. Otherwise, you have to worry about platform
// differences in suppressing |SIGPIPE|.
-class PlatformChannelPair {
+class PlatformPipe {
public:
- PlatformChannelPair();
- ~PlatformChannelPair();
+ PlatformPipe();
+ ~PlatformPipe();
- platform::ScopedPlatformHandle handle0;
- platform::ScopedPlatformHandle handle1;
+ ScopedPlatformHandle handle0;
+ ScopedPlatformHandle handle1;
};
-} // namespace embedder
+} // namespace platform
} // namespace mojo
-#endif // MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_
+#endif // MOJO_EDK_PLATFORM_PLATFORM_PIPE_H_
« no previous file with comments | « mojo/edk/platform/BUILD.gn ('k') | mojo/edk/system/channel_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698