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

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

Issue 1483823004: EDK: Move {platform_handle,scoped_platform_handle}.* to //mojo/edk/platform. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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/platform_channel_pair_unittest.cc ('k') | mojo/edk/embedder/platform_channel_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/platform_channel_utils.h
diff --git a/mojo/edk/embedder/platform_channel_utils.h b/mojo/edk/embedder/platform_channel_utils.h
index 0e88673e782fcde48513172ff8c9ed71d5adf41e..9787fdc771168b2c6b9eab190b71e3d9eafbe558 100644
--- a/mojo/edk/embedder/platform_channel_utils.h
+++ b/mojo/edk/embedder/platform_channel_utils.h
@@ -10,8 +10,8 @@
#include <deque>
-#include "mojo/edk/embedder/platform_handle.h"
-#include "mojo/edk/embedder/scoped_platform_handle.h"
+#include "mojo/edk/platform/platform_handle.h"
+#include "mojo/edk/platform/scoped_platform_handle.h"
struct iovec; // Declared in <sys/uio.h>.
@@ -28,10 +28,10 @@ const size_t kPlatformChannelMaxNumHandles = 128;
// equivalent). These are like |write()| and |writev()|, but handle |EINTR| and
// never raise |SIGPIPE|. (Note: On Mac, the suppression of |SIGPIPE| is set up
// by |PlatformChannelPair|.)
-ssize_t PlatformChannelWrite(PlatformHandle h,
+ssize_t PlatformChannelWrite(platform::PlatformHandle h,
const void* bytes,
size_t num_bytes);
-ssize_t PlatformChannelWritev(PlatformHandle h,
+ssize_t PlatformChannelWritev(platform::PlatformHandle h,
struct iovec* iov,
size_t num_iov);
@@ -43,20 +43,21 @@ ssize_t PlatformChannelWritev(PlatformHandle h,
// bytes of data sent on success (note that this may not be all the data
// specified by |iov|). (The handles are not closed, regardless of success or
// failure.)
-ssize_t PlatformChannelSendmsgWithHandles(PlatformHandle h,
- struct iovec* iov,
- size_t num_iov,
- PlatformHandle* platform_handles,
- size_t num_platform_handles);
+ssize_t PlatformChannelSendmsgWithHandles(
+ platform::PlatformHandle h,
+ struct iovec* iov,
+ size_t num_iov,
+ platform::PlatformHandle* platform_handles,
+ size_t num_platform_handles);
// Wrapper around |recvmsg()|, which will extract any attached file descriptors
// (in the control message) to |ScopedPlatformHandle|s (and append them to
// |platform_handles|). (This also handles |EINTR|.)
ssize_t PlatformChannelRecvmsg(
- PlatformHandle h,
+ platform::PlatformHandle h,
void* buf,
size_t num_bytes,
- std::deque<ScopedPlatformHandle>* platform_handles);
+ std::deque<platform::ScopedPlatformHandle>* platform_handles);
} // namespace embedder
} // namespace mojo
« no previous file with comments | « mojo/edk/embedder/platform_channel_pair_unittest.cc ('k') | mojo/edk/embedder/platform_channel_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698