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

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: Rebase 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
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..0eb6589aa99f614eef7781c5f45aaeddba5066e3 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()
@@ -16,4 +18,9 @@ Message::~Message() {
free(data);
}
+void Message::Swap(Message* other) {
+ std::swap(data, other->data);
+ std::swap(handles, other->handles);
+}
+
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698