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

Unified Diff: mojo/edk/base_edk/platform_pipe.cc

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/base_edk/BUILD.gn ('k') | mojo/edk/embedder/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/base_edk/platform_pipe.cc
diff --git a/mojo/edk/embedder/platform_channel_pair.cc b/mojo/edk/base_edk/platform_pipe.cc
similarity index 85%
rename from mojo/edk/embedder/platform_channel_pair.cc
rename to mojo/edk/base_edk/platform_pipe.cc
index 43b6e281c4e57c88e8f049091d236a0b2e0e0b0a..9f678259c2ef8f5f6daaa4595e9e019096b33154 100644
--- a/mojo/edk/embedder/platform_channel_pair.cc
+++ b/mojo/edk/base_edk/platform_pipe.cc
@@ -2,7 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "mojo/edk/embedder/platform_channel_pair.h"
+// This file implements the class declared in
+// //mojo/edk/platform/platform_pipe.h.
+
+#include "mojo/edk/platform/platform_pipe.h"
#include <fcntl.h>
#include <sys/socket.h>
@@ -13,12 +16,10 @@
#include "build/build_config.h"
#include "mojo/edk/platform/platform_handle.h"
-using mojo::platform::PlatformHandle;
-
namespace mojo {
-namespace embedder {
+namespace platform {
-PlatformChannelPair::PlatformChannelPair() {
+PlatformPipe::PlatformPipe() {
// Create the Unix domain socket and set the ends to nonblocking.
int fds[2];
// TODO(vtl): Maybe fail gracefully if |socketpair()| fails.
@@ -43,7 +44,7 @@ PlatformChannelPair::PlatformChannelPair() {
DCHECK(handle1.is_valid());
}
-PlatformChannelPair::~PlatformChannelPair() {}
+PlatformPipe::~PlatformPipe() {}
-} // namespace embedder
+} // namespace platform
} // namespace mojo
« no previous file with comments | « mojo/edk/base_edk/BUILD.gn ('k') | mojo/edk/embedder/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698