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 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:mojo/bindings.dart' as bindings; | 9 import 'package:mojo/bindings.dart' as bindings; |
10 import 'package:mojo/core.dart' as core; | 10 import 'package:mojo/core.dart' as core; |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 | 456 |
457 | 457 |
458 | 458 |
459 | 459 |
460 const int _HttpServer_setHandlerName = 0; | 460 const int _HttpServer_setHandlerName = 0; |
461 const int _HttpServer_getPortName = 1; | 461 const int _HttpServer_getPortName = 1; |
462 | 462 |
463 | 463 |
464 | 464 |
465 class _HttpServerServiceDescription implements service_describer.ServiceDescript
ion { | 465 class _HttpServerServiceDescription implements service_describer.ServiceDescript
ion { |
466 dynamic getTopLevelInterface([Function responseFactory]) => null; | 466 dynamic getTopLevelInterface([Function responseFactory]) => |
| 467 responseFactory(null); |
467 | 468 |
468 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 469 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 470 responseFactory(null); |
469 | 471 |
470 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 472 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 473 responseFactory(null); |
471 } | 474 } |
472 | 475 |
473 abstract class HttpServer { | 476 abstract class HttpServer { |
474 static const String serviceName = null; | 477 static const String serviceName = null; |
475 dynamic setHandler(String pattern,Object handler,[Function responseFactory = n
ull]); | 478 dynamic setHandler(String pattern,Object handler,[Function responseFactory = n
ull]); |
476 dynamic getPort([Function responseFactory = null]); | 479 dynamic getPort([Function responseFactory = null]); |
477 } | 480 } |
478 | 481 |
479 | 482 |
480 class _HttpServerProxyImpl extends bindings.Proxy { | 483 class _HttpServerProxyImpl extends bindings.Proxy { |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 _impl = d; | 733 _impl = d; |
731 } | 734 } |
732 | 735 |
733 String toString() { | 736 String toString() { |
734 var superString = super.toString(); | 737 var superString = super.toString(); |
735 return "HttpServerStub($superString)"; | 738 return "HttpServerStub($superString)"; |
736 } | 739 } |
737 | 740 |
738 int get version => 0; | 741 int get version => 0; |
739 | 742 |
740 service_describer.ServiceDescription get serviceDescription => | 743 static service_describer.ServiceDescription get serviceDescription => |
741 new _HttpServerServiceDescription(); | 744 new _HttpServerServiceDescription(); |
742 } | 745 } |
743 | 746 |
744 const int _HttpHandler_handleRequestName = 0; | 747 const int _HttpHandler_handleRequestName = 0; |
745 | 748 |
746 | 749 |
747 | 750 |
748 class _HttpHandlerServiceDescription implements service_describer.ServiceDescrip
tion { | 751 class _HttpHandlerServiceDescription implements service_describer.ServiceDescrip
tion { |
749 dynamic getTopLevelInterface([Function responseFactory]) => null; | 752 dynamic getTopLevelInterface([Function responseFactory]) => |
| 753 responseFactory(null); |
750 | 754 |
751 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 755 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 756 responseFactory(null); |
752 | 757 |
753 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 758 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 759 responseFactory(null); |
754 } | 760 } |
755 | 761 |
756 abstract class HttpHandler { | 762 abstract class HttpHandler { |
757 static const String serviceName = null; | 763 static const String serviceName = null; |
758 dynamic handleRequest(http_request_mojom.HttpRequest request,[Function respons
eFactory = null]); | 764 dynamic handleRequest(http_request_mojom.HttpRequest request,[Function respons
eFactory = null]); |
759 } | 765 } |
760 | 766 |
761 | 767 |
762 class _HttpHandlerProxyImpl extends bindings.Proxy { | 768 class _HttpHandlerProxyImpl extends bindings.Proxy { |
763 _HttpHandlerProxyImpl.fromEndpoint( | 769 _HttpHandlerProxyImpl.fromEndpoint( |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 _impl = d; | 962 _impl = d; |
957 } | 963 } |
958 | 964 |
959 String toString() { | 965 String toString() { |
960 var superString = super.toString(); | 966 var superString = super.toString(); |
961 return "HttpHandlerStub($superString)"; | 967 return "HttpHandlerStub($superString)"; |
962 } | 968 } |
963 | 969 |
964 int get version => 0; | 970 int get version => 0; |
965 | 971 |
966 service_describer.ServiceDescription get serviceDescription => | 972 static service_describer.ServiceDescription get serviceDescription => |
967 new _HttpHandlerServiceDescription(); | 973 new _HttpHandlerServiceDescription(); |
968 } | 974 } |
969 | 975 |
970 | 976 |
971 | 977 |
OLD | NEW |