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

Unified Diff: mojo/system/raw_channel.cc

Issue 226203003: Mojo: Add the ability to attach PlatformHandles to MessageInTransits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/system/message_in_transit.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/raw_channel.cc
diff --git a/mojo/system/raw_channel.cc b/mojo/system/raw_channel.cc
index d19e5f7507db5ec4df1649d138107dda5a478748..80f21765fcd641a5ad8e28ef25d9e7a69ad671e6 100644
--- a/mojo/system/raw_channel.cc
+++ b/mojo/system/raw_channel.cc
@@ -150,6 +150,14 @@ void RawChannel::Shutdown() {
// Reminder: This must be thread-safe.
bool RawChannel::WriteMessage(scoped_ptr<MessageInTransit> message) {
+ DCHECK(message);
+
+ // TODO(vtl)
+ if (message->has_platform_handles()) {
+ NOTIMPLEMENTED();
+ return false;
+ }
+
base::AutoLock locker(write_lock_);
if (write_stopped_)
return false;
« no previous file with comments | « mojo/system/message_in_transit.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698