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

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: Extract SimpleBindingsSupport 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..3d35f1137b445b93f1758a1e1010088bb914caaa 100644
--- a/mojo/public/bindings/lib/message.cc
+++ b/mojo/public/bindings/lib/message.cc
@@ -16,4 +16,9 @@ Message::~Message() {
free(data);
}
+void Message::Swap(Message* other) {
+ std::swap(data, other->data);
viettrungluu 2013/11/05 22:45:29 #include <algorithm> for swap?
+ std::swap(handles, other->handles);
+}
+
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698