Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: examples/dart/netcat/main.dart

Issue 1132063007: Rationalize Dart mojo and sky package structure (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « examples/dart/netcat/BUILD.gn ('k') | examples/dart/wget/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:core'; 6 import 'dart:core';
7 import 'dart:typed_data'; 7 import 'dart:typed_data';
8 8
9 import 'package:mojo/public/dart/application.dart'; 9 import 'package:mojo/application.dart';
10 import 'package:mojo/public/dart/bindings.dart'; 10 import 'package:mojo/bindings.dart';
11 import 'package:mojo/public/dart/core.dart'; 11 import 'package:mojo/core.dart';
12 import 'package:mojom/mojo/files/file.mojom.dart' as files; 12 import 'package:mojom/mojo/files/file.mojom.dart' as files;
13 import 'package:mojom/mojo/files/types.mojom.dart' as files; 13 import 'package:mojom/mojo/files/types.mojom.dart' as files;
14 import 'package:mojom/mojo/net_address.mojom.dart'; 14 import 'package:mojom/mojo/net_address.mojom.dart';
15 import 'package:mojom/mojo/network_error.mojom.dart'; 15 import 'package:mojom/mojo/network_error.mojom.dart';
16 import 'package:mojom/mojo/network_service.mojom.dart'; 16 import 'package:mojom/mojo/network_service.mojom.dart';
17 import 'package:mojom/mojo/tcp_bound_socket.mojom.dart'; 17 import 'package:mojom/mojo/tcp_bound_socket.mojom.dart';
18 import 'package:mojom/mojo/tcp_connected_socket.mojom.dart'; 18 import 'package:mojom/mojo/tcp_connected_socket.mojom.dart';
19 import 'package:mojom/mojo/terminal/terminal_client.mojom.dart'; 19 import 'package:mojom/mojo/terminal/terminal_client.mojom.dart';
20 20
21 void ignoreFuture(Future f) { 21 void ignoreFuture(Future f) {
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 } 202 }
203 203
204 main(List args) { 204 main(List args) {
205 MojoHandle appHandle = new MojoHandle(args[0]); 205 MojoHandle appHandle = new MojoHandle(args[0]);
206 String url = args[1]; 206 String url = args[1];
207 new NetcatApplication.fromHandle(appHandle) 207 new NetcatApplication.fromHandle(appHandle)
208 ..onError = (() { 208 ..onError = (() {
209 assert(MojoHandle.reportLeakedHandles()); 209 assert(MojoHandle.reportLeakedHandles());
210 }); 210 });
211 } 211 }
OLDNEW
« no previous file with comments | « examples/dart/netcat/BUILD.gn ('k') | examples/dart/wget/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698