| Index: mojo/dart/packages/mojo_services/lib/mojo/web_socket.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/mojo/web_socket.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/web_socket.mojom.dart
|
| index 19e8337d7e16c6679ff91975bf241a7b2a6ebe94..4c9d5a20bb516212c331131ede9a48a30347a55e 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/mojo/web_socket.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/mojo/web_socket.mojom.dart
|
| @@ -8,6 +8,8 @@ import 'dart:async';
|
|
|
| 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;
|
|
|
|
|
| @@ -126,6 +128,8 @@ class _WebSocketConnectParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _WebSocketSendParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(24, 0)
|
| @@ -215,6 +219,8 @@ class _WebSocketSendParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _WebSocketFlowControlParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -282,6 +288,8 @@ class _WebSocketFlowControlParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _WebSocketCloseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(24, 0)
|
| @@ -358,6 +366,8 @@ class _WebSocketCloseParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _WebSocketClientDidConnectParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(32, 0)
|
| @@ -440,6 +450,8 @@ class _WebSocketClientDidConnectParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _WebSocketClientDidReceiveDataParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(24, 0)
|
| @@ -529,6 +541,8 @@ class _WebSocketClientDidReceiveDataParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _WebSocketClientDidReceiveFlowControlParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -596,6 +610,8 @@ class _WebSocketClientDidReceiveFlowControlParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _WebSocketClientDidFailParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -663,6 +679,8 @@ class _WebSocketClientDidFailParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _WebSocketClientDidCloseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(24, 0)
|
| @@ -747,12 +765,14 @@ class _WebSocketClientDidCloseParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +
|
| +
|
| +
|
| const int _WebSocket_connectName = 0;
|
| const int _WebSocket_sendName = 1;
|
| const int _WebSocket_flowControlName = 2;
|
| const int _WebSocket_closeName = 3;
|
| -
|
| -class WebSocketMessageType extends bindings.MojoEnum {
|
| + class WebSocketMessageType extends bindings.MojoEnum {
|
| static const WebSocketMessageType continuation = const WebSocketMessageType._(0);
|
| static const WebSocketMessageType text = const WebSocketMessageType._(1);
|
| static const WebSocketMessageType binary = const WebSocketMessageType._(2);
|
| @@ -803,12 +823,27 @@ class WebSocketMessageType extends bindings.MojoEnum {
|
| return 'WebSocketMessageType.text';
|
| case binary:
|
| return 'WebSocketMessageType.binary';
|
| + default:
|
| + return null;
|
| }
|
| }
|
|
|
| int toJson() => mojoEnumValue;
|
| }
|
|
|
| +
|
| +
|
| +
|
| +
|
| +class _WebSocketServiceDescription implements service_describer.ServiceDescription {
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) => null;
|
| +
|
| + dynamic getTypeDefinition(String typeKey, [Function responseFactory = null]) =>
|
| + null;
|
| +
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) => null;
|
| +}
|
| +
|
| abstract class WebSocket {
|
| static const String serviceName = null;
|
| void connect(String url, List<String> protocols, String origin, core.MojoDataPipeConsumer sendStream, Object client);
|
| @@ -834,6 +869,9 @@ class _WebSocketProxyImpl extends bindings.Proxy {
|
| return new _WebSocketProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _WebSocketServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| default:
|
| @@ -1026,6 +1064,9 @@ class WebSocketStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _WebSocketServiceDescription();
|
| }
|
|
|
| const int _WebSocketClient_didConnectName = 0;
|
| @@ -1034,6 +1075,17 @@ const int _WebSocketClient_didReceiveFlowControlName = 2;
|
| const int _WebSocketClient_didFailName = 3;
|
| const int _WebSocketClient_didCloseName = 4;
|
|
|
| +
|
| +
|
| +class _WebSocketClientServiceDescription implements service_describer.ServiceDescription {
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) => null;
|
| +
|
| + dynamic getTypeDefinition(String typeKey, [Function responseFactory = null]) =>
|
| + null;
|
| +
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) => null;
|
| +}
|
| +
|
| abstract class WebSocketClient {
|
| static const String serviceName = null;
|
| void didConnect(String selectedSubprotocol, String extensions, core.MojoDataPipeConsumer receiveStream);
|
| @@ -1059,6 +1111,9 @@ class _WebSocketClientProxyImpl extends bindings.Proxy {
|
| return new _WebSocketClientProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _WebSocketClientServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| default:
|
| @@ -1264,6 +1319,11 @@ class WebSocketClientStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _WebSocketClientServiceDescription();
|
| }
|
|
|
|
|
| +
|
| +
|
|
|