OLD | NEW |
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 core; | 5 part of core; |
6 | 6 |
7 class MojoMessagePipeReadResult { | 7 class MojoMessagePipeReadResult { |
8 final MojoResult status; | 8 final MojoResult status; |
9 final int bytesRead; | 9 final int bytesRead; |
10 final int handlesRead; | 10 final int handlesRead; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 MojoHandle end1 = new MojoHandle(result[1]); | 139 MojoHandle end1 = new MojoHandle(result[1]); |
140 MojoHandle end2 = new MojoHandle(result[2]); | 140 MojoHandle end2 = new MojoHandle(result[2]); |
141 MojoMessagePipe pipe = new MojoMessagePipe._(); | 141 MojoMessagePipe pipe = new MojoMessagePipe._(); |
142 pipe.endpoints = new List(2); | 142 pipe.endpoints = new List(2); |
143 pipe.endpoints[0] = new MojoMessagePipeEndpoint(end1); | 143 pipe.endpoints[0] = new MojoMessagePipeEndpoint(end1); |
144 pipe.endpoints[1] = new MojoMessagePipeEndpoint(end2); | 144 pipe.endpoints[1] = new MojoMessagePipeEndpoint(end2); |
145 pipe.status = new MojoResult(result[0]); | 145 pipe.status = new MojoResult(result[0]); |
146 return pipe; | 146 return pipe; |
147 } | 147 } |
148 } | 148 } |
OLD | NEW |