| 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:_mojo/public/dart/application.dart'; | 5 import 'dart:_mojo/application.dart'; |
| 6 import 'dart:_mojo/public/dart/bindings.dart'; | 6 import 'dart:_mojo/bindings.dart'; |
| 7 import 'dart:_mojo/public/dart/core.dart'; | 7 import 'dart:_mojo/core.dart'; |
| 8 import 'dart:_mojom/mojo/net_address.mojom.dart'; | 8 import 'dart:_mojom/mojo/net_address.mojom.dart'; |
| 9 import 'dart:_mojom/mojo/network_error.mojom.dart'; | 9 import 'dart:_mojom/mojo/network_error.mojom.dart'; |
| 10 import 'dart:_mojom/mojo/network_service.mojom.dart'; | 10 import 'dart:_mojom/mojo/network_service.mojom.dart'; |
| 11 import 'dart:_mojom/mojo/tcp_bound_socket.mojom.dart'; | 11 import 'dart:_mojom/mojo/tcp_bound_socket.mojom.dart'; |
| 12 import 'dart:_mojom/mojo/tcp_connected_socket.mojom.dart'; | 12 import 'dart:_mojom/mojo/tcp_connected_socket.mojom.dart'; |
| 13 import 'dart:_mojom/mojo/tcp_server_socket.mojom.dart'; | 13 import 'dart:_mojom/mojo/tcp_server_socket.mojom.dart'; |
| 14 | 14 |
| 15 // | 15 // |
| 16 // Mojo objects and helper functions used by the 'dart:io' library. | 16 // Mojo objects and helper functions used by the 'dart:io' library. |
| 17 // | 17 // |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 } | 170 } |
| 171 | 171 |
| 172 static _throwOnError(NetworkError error) { | 172 static _throwOnError(NetworkError error) { |
| 173 if (_okay(error)) { | 173 if (_okay(error)) { |
| 174 return; | 174 return; |
| 175 } | 175 } |
| 176 throw new OSError(error.description, error.code); | 176 throw new OSError(error.description, error.code); |
| 177 } | 177 } |
| 178 } | 178 } |
| 179 | 179 |
| OLD | NEW |