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 library url_response_mojom; | 5 library url_response_mojom; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:mojo/bindings.dart' as bindings; | 9 import 'package:mojo/bindings.dart' as bindings; |
10 import 'package:mojo/core.dart' as core; | 10 import 'package:mojo/core.dart' as core; |
| 11 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
| 12 |
11 import 'package:mojo/mojo/http_header.mojom.dart' as http_header_mojom; | 13 import 'package:mojo/mojo/http_header.mojom.dart' as http_header_mojom; |
12 import 'package:mojo/mojo/network_error.mojom.dart' as network_error_mojom; | 14 import 'package:mojo/mojo/network_error.mojom.dart' as network_error_mojom; |
13 | 15 |
14 | 16 |
15 | 17 |
16 class UrlResponse extends bindings.Struct { | 18 class UrlResponse extends bindings.Struct { |
17 static const List<bindings.StructDataHeader> kVersions = const [ | 19 static const List<bindings.StructDataHeader> kVersions = const [ |
18 const bindings.StructDataHeader(88, 0) | 20 const bindings.StructDataHeader(88, 0) |
19 ]; | 21 ]; |
20 network_error_mojom.NetworkError error = null; | 22 network_error_mojom.NetworkError error = null; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 "redirectReferrer: $redirectReferrer" ")"; | 174 "redirectReferrer: $redirectReferrer" ")"; |
173 } | 175 } |
174 | 176 |
175 Map toJson() { | 177 Map toJson() { |
176 throw new bindings.MojoCodecError( | 178 throw new bindings.MojoCodecError( |
177 'Object containing handles cannot be encoded to JSON.'); | 179 'Object containing handles cannot be encoded to JSON.'); |
178 } | 180 } |
179 } | 181 } |
180 | 182 |
181 | 183 |
| 184 |
| 185 |
| 186 |
| 187 |
OLD | NEW |