| 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 http_server_mojom; | 5 library http_server_mojom; |
| 6 import 'dart:async'; | 6 import 'dart:async'; |
| 7 import 'package:mojo/bindings.dart' as bindings; | 7 import 'package:mojo/bindings.dart' as bindings; |
| 8 import 'package:mojo/core.dart' as core; | 8 import 'package:mojo/core.dart' as core; |
| 9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; | 9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; |
| 10 import 'package:mojo_services/mojo/http_connection.mojom.dart' as http_connectio
n_mojom; | 10 import 'package:mojo_services/mojo/http_connection.mojom.dart' as http_connectio
n_mojom; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 "connection: $connection" ", " | 87 "connection: $connection" ", " |
| 88 "delegate: $delegate" ")"; | 88 "delegate: $delegate" ")"; |
| 89 } | 89 } |
| 90 | 90 |
| 91 Map toJson() { | 91 Map toJson() { |
| 92 throw new bindings.MojoCodecError( | 92 throw new bindings.MojoCodecError( |
| 93 'Object containing handles cannot be encoded to JSON.'); | 93 'Object containing handles cannot be encoded to JSON.'); |
| 94 } | 94 } |
| 95 } | 95 } |
| 96 | 96 |
| 97 | |
| 98 | |
| 99 | |
| 100 const int _HttpServerDelegate_onConnectedName = 0; | 97 const int _HttpServerDelegate_onConnectedName = 0; |
| 101 | 98 |
| 102 | |
| 103 | |
| 104 class _HttpServerDelegateServiceDescription implements service_describer.Service
Description { | 99 class _HttpServerDelegateServiceDescription implements service_describer.Service
Description { |
| 105 dynamic getTopLevelInterface([Function responseFactory]) => | 100 dynamic getTopLevelInterface([Function responseFactory]) => |
| 106 responseFactory(null); | 101 responseFactory(null); |
| 107 | 102 |
| 108 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 103 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 109 responseFactory(null); | 104 responseFactory(null); |
| 110 | 105 |
| 111 dynamic getAllTypeDefinitions([Function responseFactory]) => | 106 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 112 responseFactory(null); | 107 responseFactory(null); |
| 113 } | 108 } |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 static service_describer.ServiceDescription get serviceDescription { | 280 static service_describer.ServiceDescription get serviceDescription { |
| 286 if (_cachedServiceDescription == null) { | 281 if (_cachedServiceDescription == null) { |
| 287 _cachedServiceDescription = new _HttpServerDelegateServiceDescription(); | 282 _cachedServiceDescription = new _HttpServerDelegateServiceDescription(); |
| 288 } | 283 } |
| 289 return _cachedServiceDescription; | 284 return _cachedServiceDescription; |
| 290 } | 285 } |
| 291 } | 286 } |
| 292 | 287 |
| 293 | 288 |
| 294 | 289 |
| OLD | NEW |