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

Unified Diff: mojo/public/bindings/lib/message.cc

Issue 54743003: Mojo: bindings connector (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove errant line from mojo.gyp Created 7 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/public/bindings/lib/message.h ('k') | mojo/public/bindings/lib/message_queue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/lib/message.cc
diff --git a/mojo/public/bindings/lib/message.cc b/mojo/public/bindings/lib/message.cc
index b01366ff526e5d2352b735598652312eb16a6cf3..b1637cc049d5e6b8641e77fb03890551f3815de8 100644
--- a/mojo/public/bindings/lib/message.cc
+++ b/mojo/public/bindings/lib/message.cc
@@ -6,6 +6,8 @@
#include <stdlib.h>
+#include <algorithm>
+
namespace mojo {
Message::Message()
@@ -14,6 +16,12 @@ Message::Message()
Message::~Message() {
free(data);
+ // TODO(darin): Need to Close any handles so they don't leak.
+}
+
+void Message::Swap(Message* other) {
+ std::swap(data, other->data);
+ std::swap(handles, other->handles);
}
} // namespace mojo
« no previous file with comments | « mojo/public/bindings/lib/message.h ('k') | mojo/public/bindings/lib/message_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698