Chromium Code Reviews| 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 bindings; | 5 part of bindings; |
| 6 | 6 |
| 7 abstract class Stub extends core.MojoEventHandler { | 7 abstract class Stub extends core.MojoEventHandler { |
| 8 int _outstandingResponseFutures = 0; | 8 int _outstandingResponseFutures = 0; |
| 9 bool _isClosing = false; | 9 bool _isClosing = false; |
| 10 Completer _closeCompleter; | 10 Completer _closeCompleter; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 var header = new MessageHeader.withRequestId(name, flags, id); | 125 var header = new MessageHeader.withRequestId(name, flags, id); |
| 126 return response.serializeWithHeader(header); | 126 return response.serializeWithHeader(header); |
| 127 } | 127 } |
| 128 | 128 |
| 129 String toString() { | 129 String toString() { |
| 130 var superString = super.toString(); | 130 var superString = super.toString(); |
| 131 return "Stub(${superString})"; | 131 return "Stub(${superString})"; |
| 132 } | 132 } |
| 133 | 133 |
| 134 int get version; | 134 int get version; |
| 135 | |
| 136 /// Returns a service description, which exposes the mojom type information | |
|
zra
2016/01/27 18:15:12
Ditto.
alexfandrianto
2016/01/28 03:45:12
Done.
| |
| 137 /// of the service being stubbed. This type information can be forwarded to | |
| 138 /// other Mojo applications and can be used to implement a generic client. | |
| 139 /// Note: In some implementations, the ServiceDescription returned will not | |
| 140 /// provide type information. Methods called may return null or an error. | |
| 141 service_describer.ServiceDescription get description => null; | |
| 135 } | 142 } |
| OLD | NEW |