| OLD | NEW |
| 1 #!mojo mojo:dart_content_handler | 1 #!mojo mojo:dart_content_handler |
| 2 | 2 |
| 3 // Copyright 2014 The Chromium Authors. All rights reserved. | 3 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 4 // Use of this source code is governed by a BSD-style license that can be | 4 // Use of this source code is governed by a BSD-style license that can be |
| 5 // found in the LICENSE file. | 5 // found in the LICENSE file. |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:mojo_application'; | 8 import 'dart:mojo_application'; |
| 9 import 'dart:mojo_bindings'; | 9 import 'dart:mojo_bindings'; |
| 10 import 'dart:mojo_core'; | 10 import 'dart:mojo_core'; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 } | 28 } |
| 29 | 29 |
| 30 class EchoApplication extends Application { | 30 class EchoApplication extends Application { |
| 31 EchoApplication.fromHandle(MojoHandle handle) : super.fromHandle(handle); | 31 EchoApplication.fromHandle(MojoHandle handle) : super.fromHandle(handle); |
| 32 | 32 |
| 33 Function stubFactoryClosure() => | 33 Function stubFactoryClosure() => |
| 34 (endpoint) => new EchoServiceImpl(this, endpoint); | 34 (endpoint) => new EchoServiceImpl(this, endpoint); |
| 35 } | 35 } |
| 36 | 36 |
| 37 main(List args) { | 37 main(List args) { |
| 38 MojoHandle shellHandle = new MojoHandle(args[0]); | 38 MojoHandle appHandle = new MojoHandle(args[0]); |
| 39 String url = args[1]; | 39 String url = args[1]; |
| 40 var echoApplication = new EchoApplication.fromHandle(shellHandle); | 40 var echoApplication = new EchoApplication.fromHandle(appHandle); |
| 41 echoApplication.listen(); | 41 echoApplication.listen(); |
| 42 } | 42 } |
| OLD | NEW |