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

Unified Diff: mojo/edk/embedder/platform_channel_pair.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/embedder/multiprocess_embedder_unittest.cc ('k') | mojo/edk/embedder/platform_channel_pair.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/platform_channel_pair.h
diff --git a/mojo/edk/embedder/platform_channel_pair.h b/mojo/edk/embedder/platform_channel_pair.h
deleted file mode 100644
index c9927e8bf66fee60f8478f6f35387977c6a3d202..0000000000000000000000000000000000000000
--- a/mojo/edk/embedder/platform_channel_pair.h
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2014 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 MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_
-#define MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_
-
-#include "mojo/edk/platform/scoped_platform_handle.h"
-
-namespace mojo {
-namespace embedder {
-
-// A helper class for creating a pair of |PlatformHandle|s that are connected by
-// a suitable (platform-specific) bidirectional "pipe" (e.g., Unix domain
-// socket). The resulting handles can then be used in the same process (e.g., in
-// tests) or between processes.
-//
-// Note: On POSIX platforms, to write to the "pipe", use
-// |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 {
- public:
- PlatformChannelPair();
- ~PlatformChannelPair();
-
- platform::ScopedPlatformHandle handle0;
- platform::ScopedPlatformHandle handle1;
-};
-
-} // namespace embedder
-} // namespace mojo
-
-#endif // MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_PAIR_H_
« no previous file with comments | « mojo/edk/embedder/multiprocess_embedder_unittest.cc ('k') | mojo/edk/embedder/platform_channel_pair.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698