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

Side by Side Diff: mojo/public/dart/lib/src/message.dart

Issue 1132063007: Rationalize Dart mojo and sky package structure (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 part of bindings; 5 part of bindings;
6 6
7 class MessageHeader { 7 class MessageHeader {
8 static const int kSimpleMessageSize = 16; 8 static const int kSimpleMessageSize = 16;
9 static const int kSimpleMessageVersion = 0; 9 static const int kSimpleMessageVersion = 0;
10 static const int kMessageWithRequestIdSize = 24; 10 static const int kMessageWithRequestIdSize = 24;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 Message get payload { 118 Message get payload {
119 if (_payload == null) { 119 if (_payload == null) {
120 var truncatedBuffer = new ByteData.view(buffer.buffer, header.size); 120 var truncatedBuffer = new ByteData.view(buffer.buffer, header.size);
121 _payload = new Message(truncatedBuffer, handles); 121 _payload = new Message(truncatedBuffer, handles);
122 } 122 }
123 return _payload; 123 return _payload;
124 } 124 }
125 125
126 String toString() => "ServiceMessage($header, $_payload)"; 126 String toString() => "ServiceMessage($header, $_payload)";
127 } 127 }
OLDNEW
« no previous file with comments | « mojo/public/dart/lib/src/handle_watcher.dart ('k') | mojo/public/dart/lib/src/message_pipe.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698