Index: mojo/dart/packages/mojo_services/lib/mojo/http_connection.mojom.dart |
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/http_connection.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/http_connection.mojom.dart |
index e209d65d34af4e80204e7bb924620328927a11d5..9c540d2c8cd56d35450c712579734ebd6a3e7981 100644 |
--- a/mojo/dart/packages/mojo_services/lib/mojo/http_connection.mojom.dart |
+++ b/mojo/dart/packages/mojo_services/lib/mojo/http_connection.mojom.dart |
@@ -5,9 +5,12 @@ |
library http_connection_mojom; |
import 'dart:async'; |
+import 'dart:collection'; |
import 'package:mojo/bindings.dart' as bindings; |
import 'package:mojo/core.dart' as core; |
+import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
+import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as service_describer; |
import 'package:mojo/mojo/network_error.mojom.dart' as network_error_mojom; |
import 'package:mojo_services/mojo/http_message.mojom.dart' as http_message_mojom; |
import 'package:mojo_services/mojo/web_socket.mojom.dart' as web_socket_mojom; |
@@ -79,6 +82,17 @@ class _HttpConnectionSetSendBufferSizeParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _http_connection_HttpConnection_SetSendBufferSize_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_HttpConnectionSetSendBufferSizeParams' |
+ ..fullIdentifier = 'mojo._HttpConnectionSetSendBufferSizeParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Size') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32), |
+ ]; |
+} |
class HttpConnectionSetSendBufferSizeResponseParams extends bindings.Struct { |
@@ -147,6 +161,22 @@ class HttpConnectionSetSendBufferSizeResponseParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _http_connection_HttpConnection_SetSendBufferSize_ResponseParams__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'HttpConnectionSetSendBufferSizeResponseParams' |
+ ..fullIdentifier = 'mojo.HttpConnectionSetSendBufferSizeResponseParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Result') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_network_error_NetworkError__' |
+ ..typeKey = '_network_error_NetworkError__' |
+ )), |
+ ]; |
+} |
class _HttpConnectionSetReceiveBufferSizeParams extends bindings.Struct { |
@@ -214,6 +244,17 @@ class _HttpConnectionSetReceiveBufferSizeParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _http_connection_HttpConnection_SetReceiveBufferSize_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_HttpConnectionSetReceiveBufferSizeParams' |
+ ..fullIdentifier = 'mojo._HttpConnectionSetReceiveBufferSizeParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Size') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32), |
+ ]; |
+} |
class HttpConnectionSetReceiveBufferSizeResponseParams extends bindings.Struct { |
@@ -282,6 +323,22 @@ class HttpConnectionSetReceiveBufferSizeResponseParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _http_connection_HttpConnection_SetReceiveBufferSize_ResponseParams__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'HttpConnectionSetReceiveBufferSizeResponseParams' |
+ ..fullIdentifier = 'mojo.HttpConnectionSetReceiveBufferSizeResponseParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Result') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_network_error_NetworkError__' |
+ ..typeKey = '_network_error_NetworkError__' |
+ )), |
+ ]; |
+} |
class _HttpConnectionDelegateOnReceivedRequestParams extends bindings.Struct { |
@@ -349,6 +406,22 @@ class _HttpConnectionDelegateOnReceivedRequestParams extends bindings.Struct { |
'Object containing handles cannot be encoded to JSON.'); |
} |
} |
+mojom_types.MojomStruct _http_connection_HttpConnectionDelegate_OnReceivedRequest_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_HttpConnectionDelegateOnReceivedRequestParams' |
+ ..fullIdentifier = 'mojo._HttpConnectionDelegateOnReceivedRequestParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Request') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_http_message_HttpRequest__' |
+ ..typeKey = '_http_message_HttpRequest__' |
+ )), |
+ ]; |
+} |
class HttpConnectionDelegateOnReceivedRequestResponseParams extends bindings.Struct { |
@@ -416,6 +489,22 @@ class HttpConnectionDelegateOnReceivedRequestResponseParams extends bindings.Str |
'Object containing handles cannot be encoded to JSON.'); |
} |
} |
+mojom_types.MojomStruct _http_connection_HttpConnectionDelegate_OnReceivedRequest_ResponseParams__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'HttpConnectionDelegateOnReceivedRequestResponseParams' |
+ ..fullIdentifier = 'mojo.HttpConnectionDelegateOnReceivedRequestResponseParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Response') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_http_message_HttpResponse__' |
+ ..typeKey = '_http_message_HttpResponse__' |
+ )), |
+ ]; |
+} |
class _HttpConnectionDelegateOnReceivedWebSocketRequestParams extends bindings.Struct { |
@@ -483,6 +572,22 @@ class _HttpConnectionDelegateOnReceivedWebSocketRequestParams extends bindings.S |
'Object containing handles cannot be encoded to JSON.'); |
} |
} |
+mojom_types.MojomStruct _http_connection_HttpConnectionDelegate_OnReceivedWebSocketRequest_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_HttpConnectionDelegateOnReceivedWebSocketRequestParams' |
+ ..fullIdentifier = 'mojo._HttpConnectionDelegateOnReceivedWebSocketRequestParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Request') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_http_message_HttpRequest__' |
+ ..typeKey = '_http_message_HttpRequest__' |
+ )), |
+ ]; |
+} |
class HttpConnectionDelegateOnReceivedWebSocketRequestResponseParams extends bindings.Struct { |
@@ -565,10 +670,77 @@ class HttpConnectionDelegateOnReceivedWebSocketRequestResponseParams extends bin |
'Object containing handles cannot be encoded to JSON.'); |
} |
} |
+mojom_types.MojomStruct _http_connection_HttpConnectionDelegate_OnReceivedWebSocketRequest_ResponseParams__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'HttpConnectionDelegateOnReceivedWebSocketRequestResponseParams' |
+ ..fullIdentifier = 'mojo.HttpConnectionDelegateOnReceivedWebSocketRequestResponseParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'WebSocket') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ ..nullable = true |
+ |
+ |
+ ..isInterfaceRequest = true |
+ ..identifier = '_web_socket_WebSocket__' |
+ ..typeKey = '_web_socket_WebSocket__' |
+ )), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SendStream') |
+ ..type = (new mojom_types.Type() |
+..handleType = (new mojom_types.HandleType() |
+..kind = mojom_types.HandleTypeKind.dataPipeConsumer |
+..nullable = true)), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Client') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ ..nullable = true |
+ |
+ |
+ ..identifier = '_web_socket_WebSocketClient__' |
+ ..typeKey = '_web_socket_WebSocketClient__' |
+ )), |
+ ]; |
+} |
+ |
const int _HttpConnection_setSendBufferSizeName = 0; |
const int _HttpConnection_setReceiveBufferSizeName = 1; |
+mojom_types.MojomInterface _http_connection_HttpConnection__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'HttpConnection' |
+ ..fullIdentifier = 'mojo.HttpConnection') |
+ ..interfaceName = 'HttpConnection' |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+_HttpConnection_setSendBufferSizeName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SetSendBufferSize') |
+ ..ordinal = _HttpConnection_setSendBufferSizeName |
+ ..responseParams = _http_connection_HttpConnection_SetSendBufferSize_ResponseParams__()..parameters = _http_connection_HttpConnection_SetSendBufferSize_Params__(),_HttpConnection_setReceiveBufferSizeName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SetReceiveBufferSize') |
+ ..ordinal = _HttpConnection_setReceiveBufferSizeName |
+ ..responseParams = _http_connection_HttpConnection_SetReceiveBufferSize_ResponseParams__()..parameters = _http_connection_HttpConnection_SetReceiveBufferSize_Params__(), |
+ }; |
+} |
+ |
+class _HttpConnectionServiceDescription implements service_describer.ServiceDescription { |
+dynamic getTopLevelInterface([Function responseFactory = null]) { |
+ return _http_connection_HttpConnection__(); |
+ } |
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions()[typeKey]; |
+ } |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions(); |
+ } |
+} |
+ |
abstract class HttpConnection { |
static const String serviceName = null; |
dynamic setSendBufferSize(int size,[Function responseFactory = null]); |
@@ -591,6 +763,9 @@ class _HttpConnectionProxyImpl extends bindings.Proxy { |
return new _HttpConnectionProxyImpl.fromEndpoint(endpoint); |
} |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _HttpConnectionServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
case _HttpConnection_setSendBufferSizeName: |
@@ -832,11 +1007,44 @@ class HttpConnectionStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _HttpConnectionServiceDescription(); |
} |
const int _HttpConnectionDelegate_onReceivedRequestName = 0; |
const int _HttpConnectionDelegate_onReceivedWebSocketRequestName = 1; |
+mojom_types.MojomInterface _http_connection_HttpConnectionDelegate__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'HttpConnectionDelegate' |
+ ..fullIdentifier = 'mojo.HttpConnectionDelegate') |
+ ..interfaceName = 'HttpConnectionDelegate' |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+_HttpConnectionDelegate_onReceivedRequestName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'OnReceivedRequest') |
+ ..ordinal = _HttpConnectionDelegate_onReceivedRequestName |
+ ..responseParams = _http_connection_HttpConnectionDelegate_OnReceivedRequest_ResponseParams__()..parameters = _http_connection_HttpConnectionDelegate_OnReceivedRequest_Params__(),_HttpConnectionDelegate_onReceivedWebSocketRequestName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'OnReceivedWebSocketRequest') |
+ ..ordinal = _HttpConnectionDelegate_onReceivedWebSocketRequestName |
+ ..responseParams = _http_connection_HttpConnectionDelegate_OnReceivedWebSocketRequest_ResponseParams__()..parameters = _http_connection_HttpConnectionDelegate_OnReceivedWebSocketRequest_Params__(), |
+ }; |
+} |
+ |
+class _HttpConnectionDelegateServiceDescription implements service_describer.ServiceDescription { |
+dynamic getTopLevelInterface([Function responseFactory = null]) { |
+ return _http_connection_HttpConnectionDelegate__(); |
+ } |
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions()[typeKey]; |
+ } |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions(); |
+ } |
+} |
+ |
abstract class HttpConnectionDelegate { |
static const String serviceName = null; |
dynamic onReceivedRequest(http_message_mojom.HttpRequest request,[Function responseFactory = null]); |
@@ -859,6 +1067,9 @@ class _HttpConnectionDelegateProxyImpl extends bindings.Proxy { |
return new _HttpConnectionDelegateProxyImpl.fromEndpoint(endpoint); |
} |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _HttpConnectionDelegateServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
case _HttpConnectionDelegate_onReceivedRequestName: |
@@ -1102,6 +1313,68 @@ class HttpConnectionDelegateStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _HttpConnectionDelegateServiceDescription(); |
} |
+ |
+ |
+ |
+ |
+ |
+Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
+ var map = new HashMap<String, mojom_types.UserDefinedType>(); |
+map["_http_connection_HttpConnection_SetSendBufferSize_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _http_connection_HttpConnection_SetSendBufferSize_Params__(); |
+map["_http_connection_HttpConnection_SetSendBufferSize_ResponseParams__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _http_connection_HttpConnection_SetSendBufferSize_ResponseParams__(); |
+map["_http_connection_HttpConnection_SetReceiveBufferSize_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _http_connection_HttpConnection_SetReceiveBufferSize_Params__(); |
+map["_http_connection_HttpConnection_SetReceiveBufferSize_ResponseParams__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _http_connection_HttpConnection_SetReceiveBufferSize_ResponseParams__(); |
+map["_http_connection_HttpConnectionDelegate_OnReceivedRequest_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _http_connection_HttpConnectionDelegate_OnReceivedRequest_Params__(); |
+map["_http_connection_HttpConnectionDelegate_OnReceivedRequest_ResponseParams__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _http_connection_HttpConnectionDelegate_OnReceivedRequest_ResponseParams__(); |
+map["_http_connection_HttpConnectionDelegate_OnReceivedWebSocketRequest_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _http_connection_HttpConnectionDelegate_OnReceivedWebSocketRequest_Params__(); |
+map["_http_connection_HttpConnectionDelegate_OnReceivedWebSocketRequest_ResponseParams__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _http_connection_HttpConnectionDelegate_OnReceivedWebSocketRequest_ResponseParams__(); |
+map["_http_connection_HttpConnection__"] = |
+ new mojom_types.UserDefinedType() |
+ ..interfaceType = _http_connection_HttpConnection__(); |
+map["_http_connection_HttpConnectionDelegate__"] = |
+ new mojom_types.UserDefinedType() |
+ ..interfaceType = _http_connection_HttpConnectionDelegate__(); |
+network_error_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) { |
+ map[s] = udt; |
+}); |
+http_message_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) { |
+ map[s] = udt; |
+}); |
+web_socket_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) { |
+ map[s] = udt; |
+}); |
+ |
+ return map; |
+} |
+ |
+var _MojomDesc; |
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
+ if (_MojomDesc == null) { |
+ _MojomDesc = _initDescriptions(); |
+ } |
+ return _MojomDesc; |
+} |
+ |