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

Unified Diff: mojo/system/channel.h

Issue 137273003: Mojo: Rename PlatformChannelHandle to PlatformHandle, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 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/mojo.gyp ('k') | mojo/system/channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/channel.h
diff --git a/mojo/system/channel.h b/mojo/system/channel.h
index a293dd2ecf325cc8cec753948d9c91a13c94b29c..b52767a55a07abbafeabfe5140707a19ebb70a1a 100644
--- a/mojo/system/channel.h
+++ b/mojo/system/channel.h
@@ -19,6 +19,7 @@
#include "mojo/system/message_in_transit.h"
#include "mojo/system/message_pipe.h"
#include "mojo/system/raw_channel.h"
+#include "mojo/system/scoped_platform_handle.h"
#include "mojo/system/system_impl_export.h"
namespace base {
@@ -63,9 +64,11 @@ class MOJO_SYSTEM_IMPL_EXPORT Channel
// This must be called on the creation thread before any other methods are
// called, and before references to this object are given to any other
- // threads. Takes ownership of |handle|. Returns true on success. On failure,
- // no other methods should be called (including |Shutdown()|).
- bool Init(const PlatformChannelHandle& handle);
+ // threads. |handle| should be a handle to a (platform-appropriate)
+ // bidirectional communication channel (e.g., a socket on POSIX, a named pipe
+ // on Windows). Returns true on success. On failure, no other methods should
+ // be called (including |Shutdown()|).
+ bool Init(ScopedPlatformHandle handle);
// This must be called on the creation thread before destruction (which can
// happen on any thread).
« no previous file with comments | « mojo/mojo.gyp ('k') | mojo/system/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698