| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 import 'dart:nativewrappers'; |
| 6 |
| 5 import 'dart:_mojo/application.dart'; | 7 import 'dart:_mojo/application.dart'; |
| 6 import 'dart:_mojo/bindings.dart'; | 8 import 'dart:_mojo/bindings.dart'; |
| 7 import 'dart:_mojo/core.dart'; | 9 import 'dart:_mojo/core.dart'; |
| 8 import 'dart:_mojo/mojo/network_error.mojom.dart'; | 10 import 'dart:_mojo/mojo/network_error.mojom.dart'; |
| 9 import 'dart:_mojo_services/mojo/host_resolver.mojom.dart'; | 11 import 'dart:_mojo_services/mojo/host_resolver.mojom.dart'; |
| 10 import 'dart:_mojo_services/mojo/net_address.mojom.dart'; | 12 import 'dart:_mojo_services/mojo/net_address.mojom.dart'; |
| 11 import 'dart:_mojo_services/mojo/network_service.mojom.dart'; | 13 import 'dart:_mojo_services/mojo/network_service.mojom.dart'; |
| 12 import 'dart:_mojo_services/mojo/tcp_bound_socket.mojom.dart'; | 14 import 'dart:_mojo_services/mojo/tcp_bound_socket.mojom.dart'; |
| 13 import 'dart:_mojo_services/mojo/tcp_connected_socket.mojom.dart'; | 15 import 'dart:_mojo_services/mojo/tcp_connected_socket.mojom.dart'; |
| 14 import 'dart:_mojo_services/mojo/tcp_server_socket.mojom.dart'; | 16 import 'dart:_mojo_services/mojo/tcp_server_socket.mojom.dart'; |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 } | 294 } |
| 293 | 295 |
| 294 static _throwOnError(NetworkError error) { | 296 static _throwOnError(NetworkError error) { |
| 295 if (_okay(error)) { | 297 if (_okay(error)) { |
| 296 return; | 298 return; |
| 297 } | 299 } |
| 298 throw new OSError(error.description, error.code); | 300 throw new OSError(error.description, error.code); |
| 299 } | 301 } |
| 300 } | 302 } |
| 301 | 303 |
| OLD | NEW |