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 |