OLD | NEW |
1 // WARNING: DO NOT EDIT. This file was generated by a program. | 1 // WARNING: DO NOT EDIT. This file was generated by a program. |
2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py. | 2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py. |
3 | 3 |
4 library url_response_mojom; | 4 library url_response_mojom; |
5 import 'package:mojo/bindings.dart' as bindings; | 5 import 'package:mojo/bindings.dart' as bindings; |
6 import 'package:mojo/core.dart' as core; | 6 import 'package:mojo/core.dart' as core; |
7 | 7 |
8 import 'package:mojo/mojo/http_header.mojom.dart' as http_header_mojom; | 8 import 'package:mojo/mojo/http_header.mojom.dart' as http_header_mojom; |
9 import 'package:mojo/mojo/network_error.mojom.dart' as network_error_mojom; | 9 import 'package:mojo/mojo/network_error.mojom.dart' as network_error_mojom; |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 String statusLine = null; | 21 String statusLine = null; |
22 List<http_header_mojom.HttpHeader> headers = null; | 22 List<http_header_mojom.HttpHeader> headers = null; |
23 String mimeType = null; | 23 String mimeType = null; |
24 String charset = null; | 24 String charset = null; |
25 String redirectMethod = null; | 25 String redirectMethod = null; |
26 String redirectUrl = null; | 26 String redirectUrl = null; |
27 String redirectReferrer = null; | 27 String redirectReferrer = null; |
28 | 28 |
29 UrlResponse() : super(kVersions.last.size); | 29 UrlResponse() : super(kVersions.last.size); |
30 | 30 |
| 31 UrlResponse.init( |
| 32 network_error_mojom.NetworkError this.error, |
| 33 core.MojoDataPipeConsumer this.body, |
| 34 int this.statusCode, |
| 35 String this.url, |
| 36 String this.statusLine, |
| 37 List<http_header_mojom.HttpHeader> this.headers, |
| 38 String this.mimeType, |
| 39 String this.charset, |
| 40 String this.redirectMethod, |
| 41 String this.redirectUrl, |
| 42 String this.redirectReferrer |
| 43 ) : super(kVersions.last.size); |
| 44 |
31 static UrlResponse deserialize(bindings.Message message) { | 45 static UrlResponse deserialize(bindings.Message message) { |
32 var decoder = new bindings.Decoder(message); | 46 var decoder = new bindings.Decoder(message); |
33 var result = decode(decoder); | 47 var result = decode(decoder); |
34 if (decoder.excessHandles != null) { | 48 if (decoder.excessHandles != null) { |
35 decoder.excessHandles.forEach((h) => h.close()); | 49 decoder.excessHandles.forEach((h) => h.close()); |
36 } | 50 } |
37 return result; | 51 return result; |
38 } | 52 } |
39 | 53 |
40 static UrlResponse decode(bindings.Decoder decoder0) { | 54 static UrlResponse decode(bindings.Decoder decoder0) { |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 } | 238 } |
225 | 239 |
226 Map toJson() { | 240 Map toJson() { |
227 throw new bindings.MojoCodecError( | 241 throw new bindings.MojoCodecError( |
228 'Object containing handles cannot be encoded to JSON.'); | 242 'Object containing handles cannot be encoded to JSON.'); |
229 } | 243 } |
230 } | 244 } |
231 | 245 |
232 | 246 |
233 | 247 |
OLD | NEW |