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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/public/bindings/lib/message.h" 5 #include "mojo/public/bindings/lib/message.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
viettrungluu 2013/11/05 22:45:29 stddef.h for NULL?
8 8
9 namespace mojo { 9 namespace mojo {
10 10
11 Message::Message() 11 Message::Message()
12 : data(NULL) { 12 : data(NULL) {
13 } 13 }
14 14
15 Message::~Message() { 15 Message::~Message() {
16 free(data); 16 free(data);
17 } 17 }
18 18
19 void Message::Swap(Message* other) {
20 std::swap(data, other->data);
viettrungluu 2013/11/05 22:45:29 #include <algorithm> for swap?
21 std::swap(handles, other->handles);
22 }
23
19 } // namespace mojo 24 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698