| Index: mojo/dart/packages/mojo_services/lib/authentication/authentication.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/authentication/authentication.mojom.dart b/mojo/dart/packages/mojo_services/lib/authentication/authentication.mojom.dart
|
| index 4c503dc7260657619ed0dd15838bd2d69629f581..9ef610f5d95c24a5b4abb21dbdb80e53366c4b53 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/authentication/authentication.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/authentication/authentication.mojom.dart
|
| @@ -9,8 +9,6 @@ import 'dart:async';
|
| import 'package:mojo/bindings.dart' as bindings;
|
| import 'package:mojo/core.dart' as core;
|
|
|
| -
|
| -
|
| class AuthenticationServiceSelectAccountParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -19,7 +17,8 @@ class AuthenticationServiceSelectAccountParams extends bindings.Struct {
|
|
|
| AuthenticationServiceSelectAccountParams() : super(kVersions.last.size);
|
|
|
| - static AuthenticationServiceSelectAccountParams deserialize(bindings.Message message) {
|
| + static AuthenticationServiceSelectAccountParams deserialize(
|
| + bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| if (decoder.excessHandles != null) {
|
| @@ -28,11 +27,13 @@ class AuthenticationServiceSelectAccountParams extends bindings.Struct {
|
| return result;
|
| }
|
|
|
| - static AuthenticationServiceSelectAccountParams decode(bindings.Decoder decoder0) {
|
| + static AuthenticationServiceSelectAccountParams decode(
|
| + bindings.Decoder decoder0) {
|
| if (decoder0 == null) {
|
| return null;
|
| }
|
| - AuthenticationServiceSelectAccountParams result = new AuthenticationServiceSelectAccountParams();
|
| + AuthenticationServiceSelectAccountParams result =
|
| + new AuthenticationServiceSelectAccountParams();
|
|
|
| var mainDataHeader = decoder0.decodeStructDataHeader();
|
| if (mainDataHeader.version <= kVersions.last.version) {
|
| @@ -49,11 +50,10 @@ class AuthenticationServiceSelectAccountParams extends bindings.Struct {
|
| }
|
| } else if (mainDataHeader.size < kVersions.last.size) {
|
| throw new bindings.MojoCodecError(
|
| - 'Message newer than the last known version cannot be shorter than '
|
| - 'required by the last known version.');
|
| + 'Message newer than the last known version cannot be shorter than '
|
| + 'required by the last known version.');
|
| }
|
| if (mainDataHeader.version >= 0) {
|
| -
|
| result.returnLastSelected = decoder0.decodeBool(8, 0);
|
| }
|
| return result;
|
| @@ -61,13 +61,14 @@ class AuthenticationServiceSelectAccountParams extends bindings.Struct {
|
|
|
| void encode(bindings.Encoder encoder) {
|
| var encoder0 = encoder.getStructEncoderAtOffset(kVersions.last);
|
| -
|
| +
|
| encoder0.encodeBool(returnLastSelected, 8, 0);
|
| }
|
|
|
| String toString() {
|
| return "AuthenticationServiceSelectAccountParams("
|
| - "returnLastSelected: $returnLastSelected" ")";
|
| + "returnLastSelected: $returnLastSelected"
|
| + ")";
|
| }
|
|
|
| Map toJson() {
|
| @@ -77,7 +78,6 @@ class AuthenticationServiceSelectAccountParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| -
|
| class AuthenticationServiceSelectAccountResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(24, 0)
|
| @@ -85,9 +85,11 @@ class AuthenticationServiceSelectAccountResponseParams extends bindings.Struct {
|
| String username = null;
|
| String error = null;
|
|
|
| - AuthenticationServiceSelectAccountResponseParams() : super(kVersions.last.size);
|
| + AuthenticationServiceSelectAccountResponseParams()
|
| + : super(kVersions.last.size);
|
|
|
| - static AuthenticationServiceSelectAccountResponseParams deserialize(bindings.Message message) {
|
| + static AuthenticationServiceSelectAccountResponseParams deserialize(
|
| + bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| if (decoder.excessHandles != null) {
|
| @@ -96,11 +98,13 @@ class AuthenticationServiceSelectAccountResponseParams extends bindings.Struct {
|
| return result;
|
| }
|
|
|
| - static AuthenticationServiceSelectAccountResponseParams decode(bindings.Decoder decoder0) {
|
| + static AuthenticationServiceSelectAccountResponseParams decode(
|
| + bindings.Decoder decoder0) {
|
| if (decoder0 == null) {
|
| return null;
|
| }
|
| - AuthenticationServiceSelectAccountResponseParams result = new AuthenticationServiceSelectAccountResponseParams();
|
| + AuthenticationServiceSelectAccountResponseParams result =
|
| + new AuthenticationServiceSelectAccountResponseParams();
|
|
|
| var mainDataHeader = decoder0.decodeStructDataHeader();
|
| if (mainDataHeader.version <= kVersions.last.version) {
|
| @@ -117,15 +121,13 @@ class AuthenticationServiceSelectAccountResponseParams extends bindings.Struct {
|
| }
|
| } else if (mainDataHeader.size < kVersions.last.size) {
|
| throw new bindings.MojoCodecError(
|
| - 'Message newer than the last known version cannot be shorter than '
|
| - 'required by the last known version.');
|
| + 'Message newer than the last known version cannot be shorter than '
|
| + 'required by the last known version.');
|
| }
|
| if (mainDataHeader.version >= 0) {
|
| -
|
| result.username = decoder0.decodeString(8, true);
|
| }
|
| if (mainDataHeader.version >= 0) {
|
| -
|
| result.error = decoder0.decodeString(16, true);
|
| }
|
| return result;
|
| @@ -133,16 +135,18 @@ class AuthenticationServiceSelectAccountResponseParams extends bindings.Struct {
|
|
|
| void encode(bindings.Encoder encoder) {
|
| var encoder0 = encoder.getStructEncoderAtOffset(kVersions.last);
|
| -
|
| +
|
| encoder0.encodeString(username, 8, true);
|
| -
|
| +
|
| encoder0.encodeString(error, 16, true);
|
| }
|
|
|
| String toString() {
|
| return "AuthenticationServiceSelectAccountResponseParams("
|
| - "username: $username" ", "
|
| - "error: $error" ")";
|
| + "username: $username"
|
| + ", "
|
| + "error: $error"
|
| + ")";
|
| }
|
|
|
| Map toJson() {
|
| @@ -153,7 +157,6 @@ class AuthenticationServiceSelectAccountResponseParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| -
|
| class AuthenticationServiceGetOAuth2TokenParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(24, 0)
|
| @@ -163,7 +166,8 @@ class AuthenticationServiceGetOAuth2TokenParams extends bindings.Struct {
|
|
|
| AuthenticationServiceGetOAuth2TokenParams() : super(kVersions.last.size);
|
|
|
| - static AuthenticationServiceGetOAuth2TokenParams deserialize(bindings.Message message) {
|
| + static AuthenticationServiceGetOAuth2TokenParams deserialize(
|
| + bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| if (decoder.excessHandles != null) {
|
| @@ -172,11 +176,13 @@ class AuthenticationServiceGetOAuth2TokenParams extends bindings.Struct {
|
| return result;
|
| }
|
|
|
| - static AuthenticationServiceGetOAuth2TokenParams decode(bindings.Decoder decoder0) {
|
| + static AuthenticationServiceGetOAuth2TokenParams decode(
|
| + bindings.Decoder decoder0) {
|
| if (decoder0 == null) {
|
| return null;
|
| }
|
| - AuthenticationServiceGetOAuth2TokenParams result = new AuthenticationServiceGetOAuth2TokenParams();
|
| + AuthenticationServiceGetOAuth2TokenParams result =
|
| + new AuthenticationServiceGetOAuth2TokenParams();
|
|
|
| var mainDataHeader = decoder0.decodeStructDataHeader();
|
| if (mainDataHeader.version <= kVersions.last.version) {
|
| @@ -193,22 +199,22 @@ class AuthenticationServiceGetOAuth2TokenParams extends bindings.Struct {
|
| }
|
| } else if (mainDataHeader.size < kVersions.last.size) {
|
| throw new bindings.MojoCodecError(
|
| - 'Message newer than the last known version cannot be shorter than '
|
| - 'required by the last known version.');
|
| + 'Message newer than the last known version cannot be shorter than '
|
| + 'required by the last known version.');
|
| }
|
| if (mainDataHeader.version >= 0) {
|
| -
|
| result.username = decoder0.decodeString(8, false);
|
| }
|
| if (mainDataHeader.version >= 0) {
|
| -
|
| var decoder1 = decoder0.decodePointer(16, false);
|
| {
|
| - var si1 = decoder1.decodeDataHeaderForPointerArray(bindings.kUnspecifiedArrayLength);
|
| + var si1 = decoder1
|
| + .decodeDataHeaderForPointerArray(bindings.kUnspecifiedArrayLength);
|
| result.scopes = new List<String>(si1.numElements);
|
| for (int i1 = 0; i1 < si1.numElements; ++i1) {
|
| -
|
| - result.scopes[i1] = decoder1.decodeString(bindings.ArrayDataHeader.kHeaderSize + bindings.kPointerSize * i1, false);
|
| + result.scopes[i1] = decoder1.decodeString(
|
| + bindings.ArrayDataHeader.kHeaderSize + bindings.kPointerSize * i1,
|
| + false);
|
| }
|
| }
|
| }
|
| @@ -217,24 +223,29 @@ class AuthenticationServiceGetOAuth2TokenParams extends bindings.Struct {
|
|
|
| void encode(bindings.Encoder encoder) {
|
| var encoder0 = encoder.getStructEncoderAtOffset(kVersions.last);
|
| -
|
| +
|
| encoder0.encodeString(username, 8, false);
|
| -
|
| +
|
| if (scopes == null) {
|
| encoder0.encodeNullPointer(16, false);
|
| } else {
|
| - var encoder1 = encoder0.encodePointerArray(scopes.length, 16, bindings.kUnspecifiedArrayLength);
|
| + var encoder1 = encoder0.encodePointerArray(
|
| + scopes.length, 16, bindings.kUnspecifiedArrayLength);
|
| for (int i0 = 0; i0 < scopes.length; ++i0) {
|
| -
|
| - encoder1.encodeString(scopes[i0], bindings.ArrayDataHeader.kHeaderSize + bindings.kPointerSize * i0, false);
|
| + encoder1.encodeString(
|
| + scopes[i0],
|
| + bindings.ArrayDataHeader.kHeaderSize + bindings.kPointerSize * i0,
|
| + false);
|
| }
|
| }
|
| }
|
|
|
| String toString() {
|
| return "AuthenticationServiceGetOAuth2TokenParams("
|
| - "username: $username" ", "
|
| - "scopes: $scopes" ")";
|
| + "username: $username"
|
| + ", "
|
| + "scopes: $scopes"
|
| + ")";
|
| }
|
|
|
| Map toJson() {
|
| @@ -245,17 +256,19 @@ class AuthenticationServiceGetOAuth2TokenParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| -
|
| -class AuthenticationServiceGetOAuth2TokenResponseParams extends bindings.Struct {
|
| +class AuthenticationServiceGetOAuth2TokenResponseParams
|
| + extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(24, 0)
|
| ];
|
| String token = null;
|
| String error = null;
|
|
|
| - AuthenticationServiceGetOAuth2TokenResponseParams() : super(kVersions.last.size);
|
| + AuthenticationServiceGetOAuth2TokenResponseParams()
|
| + : super(kVersions.last.size);
|
|
|
| - static AuthenticationServiceGetOAuth2TokenResponseParams deserialize(bindings.Message message) {
|
| + static AuthenticationServiceGetOAuth2TokenResponseParams deserialize(
|
| + bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| if (decoder.excessHandles != null) {
|
| @@ -264,11 +277,13 @@ class AuthenticationServiceGetOAuth2TokenResponseParams extends bindings.Struct
|
| return result;
|
| }
|
|
|
| - static AuthenticationServiceGetOAuth2TokenResponseParams decode(bindings.Decoder decoder0) {
|
| + static AuthenticationServiceGetOAuth2TokenResponseParams decode(
|
| + bindings.Decoder decoder0) {
|
| if (decoder0 == null) {
|
| return null;
|
| }
|
| - AuthenticationServiceGetOAuth2TokenResponseParams result = new AuthenticationServiceGetOAuth2TokenResponseParams();
|
| + AuthenticationServiceGetOAuth2TokenResponseParams result =
|
| + new AuthenticationServiceGetOAuth2TokenResponseParams();
|
|
|
| var mainDataHeader = decoder0.decodeStructDataHeader();
|
| if (mainDataHeader.version <= kVersions.last.version) {
|
| @@ -285,15 +300,13 @@ class AuthenticationServiceGetOAuth2TokenResponseParams extends bindings.Struct
|
| }
|
| } else if (mainDataHeader.size < kVersions.last.size) {
|
| throw new bindings.MojoCodecError(
|
| - 'Message newer than the last known version cannot be shorter than '
|
| - 'required by the last known version.');
|
| + 'Message newer than the last known version cannot be shorter than '
|
| + 'required by the last known version.');
|
| }
|
| if (mainDataHeader.version >= 0) {
|
| -
|
| result.token = decoder0.decodeString(8, true);
|
| }
|
| if (mainDataHeader.version >= 0) {
|
| -
|
| result.error = decoder0.decodeString(16, true);
|
| }
|
| return result;
|
| @@ -301,16 +314,18 @@ class AuthenticationServiceGetOAuth2TokenResponseParams extends bindings.Struct
|
|
|
| void encode(bindings.Encoder encoder) {
|
| var encoder0 = encoder.getStructEncoderAtOffset(kVersions.last);
|
| -
|
| +
|
| encoder0.encodeString(token, 8, true);
|
| -
|
| +
|
| encoder0.encodeString(error, 16, true);
|
| }
|
|
|
| String toString() {
|
| return "AuthenticationServiceGetOAuth2TokenResponseParams("
|
| - "token: $token" ", "
|
| - "error: $error" ")";
|
| + "token: $token"
|
| + ", "
|
| + "error: $error"
|
| + ")";
|
| }
|
|
|
| Map toJson() {
|
| @@ -321,7 +336,6 @@ class AuthenticationServiceGetOAuth2TokenResponseParams extends bindings.Struct
|
| }
|
| }
|
|
|
| -
|
| class AuthenticationServiceClearOAuth2TokenParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -330,7 +344,8 @@ class AuthenticationServiceClearOAuth2TokenParams extends bindings.Struct {
|
|
|
| AuthenticationServiceClearOAuth2TokenParams() : super(kVersions.last.size);
|
|
|
| - static AuthenticationServiceClearOAuth2TokenParams deserialize(bindings.Message message) {
|
| + static AuthenticationServiceClearOAuth2TokenParams deserialize(
|
| + bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| if (decoder.excessHandles != null) {
|
| @@ -339,11 +354,13 @@ class AuthenticationServiceClearOAuth2TokenParams extends bindings.Struct {
|
| return result;
|
| }
|
|
|
| - static AuthenticationServiceClearOAuth2TokenParams decode(bindings.Decoder decoder0) {
|
| + static AuthenticationServiceClearOAuth2TokenParams decode(
|
| + bindings.Decoder decoder0) {
|
| if (decoder0 == null) {
|
| return null;
|
| }
|
| - AuthenticationServiceClearOAuth2TokenParams result = new AuthenticationServiceClearOAuth2TokenParams();
|
| + AuthenticationServiceClearOAuth2TokenParams result =
|
| + new AuthenticationServiceClearOAuth2TokenParams();
|
|
|
| var mainDataHeader = decoder0.decodeStructDataHeader();
|
| if (mainDataHeader.version <= kVersions.last.version) {
|
| @@ -360,11 +377,10 @@ class AuthenticationServiceClearOAuth2TokenParams extends bindings.Struct {
|
| }
|
| } else if (mainDataHeader.size < kVersions.last.size) {
|
| throw new bindings.MojoCodecError(
|
| - 'Message newer than the last known version cannot be shorter than '
|
| - 'required by the last known version.');
|
| + 'Message newer than the last known version cannot be shorter than '
|
| + 'required by the last known version.');
|
| }
|
| if (mainDataHeader.version >= 0) {
|
| -
|
| result.token = decoder0.decodeString(8, false);
|
| }
|
| return result;
|
| @@ -372,13 +388,14 @@ class AuthenticationServiceClearOAuth2TokenParams extends bindings.Struct {
|
|
|
| void encode(bindings.Encoder encoder) {
|
| var encoder0 = encoder.getStructEncoderAtOffset(kVersions.last);
|
| -
|
| +
|
| encoder0.encodeString(token, 8, false);
|
| }
|
|
|
| String toString() {
|
| return "AuthenticationServiceClearOAuth2TokenParams("
|
| - "token: $token" ")";
|
| + "token: $token"
|
| + ")";
|
| }
|
|
|
| Map toJson() {
|
| @@ -388,25 +405,368 @@ class AuthenticationServiceClearOAuth2TokenParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +class AuthenticationServiceGetOAuth2DeviceCodeParams extends bindings.Struct {
|
| + static const List<bindings.StructDataHeader> kVersions = const [
|
| + const bindings.StructDataHeader(16, 0)
|
| + ];
|
| + List<String> scopes = null;
|
| +
|
| + AuthenticationServiceGetOAuth2DeviceCodeParams() : super(kVersions.last.size);
|
| +
|
| + static AuthenticationServiceGetOAuth2DeviceCodeParams deserialize(
|
| + bindings.Message message) {
|
| + var decoder = new bindings.Decoder(message);
|
| + var result = decode(decoder);
|
| + if (decoder.excessHandles != null) {
|
| + decoder.excessHandles.forEach((h) => h.close());
|
| + }
|
| + return result;
|
| + }
|
| +
|
| + static AuthenticationServiceGetOAuth2DeviceCodeParams decode(
|
| + bindings.Decoder decoder0) {
|
| + if (decoder0 == null) {
|
| + return null;
|
| + }
|
| + AuthenticationServiceGetOAuth2DeviceCodeParams result =
|
| + new AuthenticationServiceGetOAuth2DeviceCodeParams();
|
| +
|
| + var mainDataHeader = decoder0.decodeStructDataHeader();
|
| + if (mainDataHeader.version <= kVersions.last.version) {
|
| + // Scan in reverse order to optimize for more recent versions.
|
| + for (int i = kVersions.length - 1; i >= 0; --i) {
|
| + if (mainDataHeader.version >= kVersions[i].version) {
|
| + if (mainDataHeader.size == kVersions[i].size) {
|
| + // Found a match.
|
| + break;
|
| + }
|
| + throw new bindings.MojoCodecError(
|
| + 'Header size doesn\'t correspond to known version size.');
|
| + }
|
| + }
|
| + } else if (mainDataHeader.size < kVersions.last.size) {
|
| + throw new bindings.MojoCodecError(
|
| + 'Message newer than the last known version cannot be shorter than '
|
| + 'required by the last known version.');
|
| + }
|
| + if (mainDataHeader.version >= 0) {
|
| + var decoder1 = decoder0.decodePointer(8, false);
|
| + {
|
| + var si1 = decoder1
|
| + .decodeDataHeaderForPointerArray(bindings.kUnspecifiedArrayLength);
|
| + result.scopes = new List<String>(si1.numElements);
|
| + for (int i1 = 0; i1 < si1.numElements; ++i1) {
|
| + result.scopes[i1] = decoder1.decodeString(
|
| + bindings.ArrayDataHeader.kHeaderSize + bindings.kPointerSize * i1,
|
| + false);
|
| + }
|
| + }
|
| + }
|
| + return result;
|
| + }
|
| +
|
| + void encode(bindings.Encoder encoder) {
|
| + var encoder0 = encoder.getStructEncoderAtOffset(kVersions.last);
|
| +
|
| + if (scopes == null) {
|
| + encoder0.encodeNullPointer(8, false);
|
| + } else {
|
| + var encoder1 = encoder0.encodePointerArray(
|
| + scopes.length, 8, bindings.kUnspecifiedArrayLength);
|
| + for (int i0 = 0; i0 < scopes.length; ++i0) {
|
| + encoder1.encodeString(
|
| + scopes[i0],
|
| + bindings.ArrayDataHeader.kHeaderSize + bindings.kPointerSize * i0,
|
| + false);
|
| + }
|
| + }
|
| + }
|
| +
|
| + String toString() {
|
| + return "AuthenticationServiceGetOAuth2DeviceCodeParams("
|
| + "scopes: $scopes"
|
| + ")";
|
| + }
|
| +
|
| + Map toJson() {
|
| + Map map = new Map();
|
| + map["scopes"] = scopes;
|
| + return map;
|
| + }
|
| +}
|
| +
|
| +class AuthenticationServiceGetOAuth2DeviceCodeResponseParams
|
| + extends bindings.Struct {
|
| + static const List<bindings.StructDataHeader> kVersions = const [
|
| + const bindings.StructDataHeader(40, 0)
|
| + ];
|
| + String verificationUrl = null;
|
| + String deviceCode = null;
|
| + String userCode = null;
|
| + String error = null;
|
| +
|
| + AuthenticationServiceGetOAuth2DeviceCodeResponseParams()
|
| + : super(kVersions.last.size);
|
| +
|
| + static AuthenticationServiceGetOAuth2DeviceCodeResponseParams deserialize(
|
| + bindings.Message message) {
|
| + var decoder = new bindings.Decoder(message);
|
| + var result = decode(decoder);
|
| + if (decoder.excessHandles != null) {
|
| + decoder.excessHandles.forEach((h) => h.close());
|
| + }
|
| + return result;
|
| + }
|
| +
|
| + static AuthenticationServiceGetOAuth2DeviceCodeResponseParams decode(
|
| + bindings.Decoder decoder0) {
|
| + if (decoder0 == null) {
|
| + return null;
|
| + }
|
| + AuthenticationServiceGetOAuth2DeviceCodeResponseParams result =
|
| + new AuthenticationServiceGetOAuth2DeviceCodeResponseParams();
|
| +
|
| + var mainDataHeader = decoder0.decodeStructDataHeader();
|
| + if (mainDataHeader.version <= kVersions.last.version) {
|
| + // Scan in reverse order to optimize for more recent versions.
|
| + for (int i = kVersions.length - 1; i >= 0; --i) {
|
| + if (mainDataHeader.version >= kVersions[i].version) {
|
| + if (mainDataHeader.size == kVersions[i].size) {
|
| + // Found a match.
|
| + break;
|
| + }
|
| + throw new bindings.MojoCodecError(
|
| + 'Header size doesn\'t correspond to known version size.');
|
| + }
|
| + }
|
| + } else if (mainDataHeader.size < kVersions.last.size) {
|
| + throw new bindings.MojoCodecError(
|
| + 'Message newer than the last known version cannot be shorter than '
|
| + 'required by the last known version.');
|
| + }
|
| + if (mainDataHeader.version >= 0) {
|
| + result.verificationUrl = decoder0.decodeString(8, true);
|
| + }
|
| + if (mainDataHeader.version >= 0) {
|
| + result.deviceCode = decoder0.decodeString(16, true);
|
| + }
|
| + if (mainDataHeader.version >= 0) {
|
| + result.userCode = decoder0.decodeString(24, true);
|
| + }
|
| + if (mainDataHeader.version >= 0) {
|
| + result.error = decoder0.decodeString(32, true);
|
| + }
|
| + return result;
|
| + }
|
| +
|
| + void encode(bindings.Encoder encoder) {
|
| + var encoder0 = encoder.getStructEncoderAtOffset(kVersions.last);
|
| +
|
| + encoder0.encodeString(verificationUrl, 8, true);
|
| +
|
| + encoder0.encodeString(deviceCode, 16, true);
|
| +
|
| + encoder0.encodeString(userCode, 24, true);
|
| +
|
| + encoder0.encodeString(error, 32, true);
|
| + }
|
| +
|
| + String toString() {
|
| + return "AuthenticationServiceGetOAuth2DeviceCodeResponseParams("
|
| + "verificationUrl: $verificationUrl"
|
| + ", "
|
| + "deviceCode: $deviceCode"
|
| + ", "
|
| + "userCode: $userCode"
|
| + ", "
|
| + "error: $error"
|
| + ")";
|
| + }
|
| +
|
| + Map toJson() {
|
| + Map map = new Map();
|
| + map["verificationUrl"] = verificationUrl;
|
| + map["deviceCode"] = deviceCode;
|
| + map["userCode"] = userCode;
|
| + map["error"] = error;
|
| + return map;
|
| + }
|
| +}
|
| +
|
| +class AuthenticationServiceAddAccountParams extends bindings.Struct {
|
| + static const List<bindings.StructDataHeader> kVersions = const [
|
| + const bindings.StructDataHeader(16, 0)
|
| + ];
|
| + String deviceCode = null;
|
| +
|
| + AuthenticationServiceAddAccountParams() : super(kVersions.last.size);
|
| +
|
| + static AuthenticationServiceAddAccountParams deserialize(
|
| + bindings.Message message) {
|
| + var decoder = new bindings.Decoder(message);
|
| + var result = decode(decoder);
|
| + if (decoder.excessHandles != null) {
|
| + decoder.excessHandles.forEach((h) => h.close());
|
| + }
|
| + return result;
|
| + }
|
| +
|
| + static AuthenticationServiceAddAccountParams decode(
|
| + bindings.Decoder decoder0) {
|
| + if (decoder0 == null) {
|
| + return null;
|
| + }
|
| + AuthenticationServiceAddAccountParams result =
|
| + new AuthenticationServiceAddAccountParams();
|
| +
|
| + var mainDataHeader = decoder0.decodeStructDataHeader();
|
| + if (mainDataHeader.version <= kVersions.last.version) {
|
| + // Scan in reverse order to optimize for more recent versions.
|
| + for (int i = kVersions.length - 1; i >= 0; --i) {
|
| + if (mainDataHeader.version >= kVersions[i].version) {
|
| + if (mainDataHeader.size == kVersions[i].size) {
|
| + // Found a match.
|
| + break;
|
| + }
|
| + throw new bindings.MojoCodecError(
|
| + 'Header size doesn\'t correspond to known version size.');
|
| + }
|
| + }
|
| + } else if (mainDataHeader.size < kVersions.last.size) {
|
| + throw new bindings.MojoCodecError(
|
| + 'Message newer than the last known version cannot be shorter than '
|
| + 'required by the last known version.');
|
| + }
|
| + if (mainDataHeader.version >= 0) {
|
| + result.deviceCode = decoder0.decodeString(8, false);
|
| + }
|
| + return result;
|
| + }
|
| +
|
| + void encode(bindings.Encoder encoder) {
|
| + var encoder0 = encoder.getStructEncoderAtOffset(kVersions.last);
|
| +
|
| + encoder0.encodeString(deviceCode, 8, false);
|
| + }
|
| +
|
| + String toString() {
|
| + return "AuthenticationServiceAddAccountParams("
|
| + "deviceCode: $deviceCode"
|
| + ")";
|
| + }
|
| +
|
| + Map toJson() {
|
| + Map map = new Map();
|
| + map["deviceCode"] = deviceCode;
|
| + return map;
|
| + }
|
| +}
|
| +
|
| +class AuthenticationServiceAddAccountResponseParams extends bindings.Struct {
|
| + static const List<bindings.StructDataHeader> kVersions = const [
|
| + const bindings.StructDataHeader(24, 0)
|
| + ];
|
| + String username = null;
|
| + String error = null;
|
| +
|
| + AuthenticationServiceAddAccountResponseParams() : super(kVersions.last.size);
|
| +
|
| + static AuthenticationServiceAddAccountResponseParams deserialize(
|
| + bindings.Message message) {
|
| + var decoder = new bindings.Decoder(message);
|
| + var result = decode(decoder);
|
| + if (decoder.excessHandles != null) {
|
| + decoder.excessHandles.forEach((h) => h.close());
|
| + }
|
| + return result;
|
| + }
|
| +
|
| + static AuthenticationServiceAddAccountResponseParams decode(
|
| + bindings.Decoder decoder0) {
|
| + if (decoder0 == null) {
|
| + return null;
|
| + }
|
| + AuthenticationServiceAddAccountResponseParams result =
|
| + new AuthenticationServiceAddAccountResponseParams();
|
| +
|
| + var mainDataHeader = decoder0.decodeStructDataHeader();
|
| + if (mainDataHeader.version <= kVersions.last.version) {
|
| + // Scan in reverse order to optimize for more recent versions.
|
| + for (int i = kVersions.length - 1; i >= 0; --i) {
|
| + if (mainDataHeader.version >= kVersions[i].version) {
|
| + if (mainDataHeader.size == kVersions[i].size) {
|
| + // Found a match.
|
| + break;
|
| + }
|
| + throw new bindings.MojoCodecError(
|
| + 'Header size doesn\'t correspond to known version size.');
|
| + }
|
| + }
|
| + } else if (mainDataHeader.size < kVersions.last.size) {
|
| + throw new bindings.MojoCodecError(
|
| + 'Message newer than the last known version cannot be shorter than '
|
| + 'required by the last known version.');
|
| + }
|
| + if (mainDataHeader.version >= 0) {
|
| + result.username = decoder0.decodeString(8, true);
|
| + }
|
| + if (mainDataHeader.version >= 0) {
|
| + result.error = decoder0.decodeString(16, true);
|
| + }
|
| + return result;
|
| + }
|
| +
|
| + void encode(bindings.Encoder encoder) {
|
| + var encoder0 = encoder.getStructEncoderAtOffset(kVersions.last);
|
| +
|
| + encoder0.encodeString(username, 8, true);
|
| +
|
| + encoder0.encodeString(error, 16, true);
|
| + }
|
| +
|
| + String toString() {
|
| + return "AuthenticationServiceAddAccountResponseParams("
|
| + "username: $username"
|
| + ", "
|
| + "error: $error"
|
| + ")";
|
| + }
|
| +
|
| + Map toJson() {
|
| + Map map = new Map();
|
| + map["username"] = username;
|
| + map["error"] = error;
|
| + return map;
|
| + }
|
| +}
|
| +
|
| const int kAuthenticationService_selectAccount_name = 0;
|
| const int kAuthenticationService_getOAuth2Token_name = 1;
|
| const int kAuthenticationService_clearOAuth2Token_name = 2;
|
| -const String AuthenticationServiceName = "authentication::AuthenticationService";
|
| +const int kAuthenticationService_getOAuth2DeviceCode_name = 3;
|
| +const int kAuthenticationService_addAccount_name = 4;
|
| +
|
| +const String AuthenticationServiceName =
|
| + 'authentication::AuthenticationService';
|
|
|
| abstract class AuthenticationService {
|
| - dynamic selectAccount(bool returnLastSelected,[Function responseFactory = null]);
|
| - dynamic getOAuth2Token(String username,List<String> scopes,[Function responseFactory = null]);
|
| + dynamic selectAccount(bool returnLastSelected,
|
| + [Function responseFactory = null]);
|
| + dynamic getOAuth2Token(String username, List<String> scopes,
|
| + [Function responseFactory = null]);
|
| void clearOAuth2Token(String token);
|
| -
|
| + dynamic getOAuth2DeviceCode(List<String> scopes,
|
| + [Function responseFactory = null]);
|
| + dynamic addAccount(String deviceCode, [Function responseFactory = null]);
|
| }
|
|
|
| -
|
| class AuthenticationServiceProxyImpl extends bindings.Proxy {
|
| AuthenticationServiceProxyImpl.fromEndpoint(
|
| - core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
|
| + core.MojoMessagePipeEndpoint endpoint)
|
| + : super.fromEndpoint(endpoint);
|
|
|
| - AuthenticationServiceProxyImpl.fromHandle(core.MojoHandle handle) :
|
| - super.fromHandle(handle);
|
| + AuthenticationServiceProxyImpl.fromHandle(core.MojoHandle handle)
|
| + : super.fromHandle(handle);
|
|
|
| AuthenticationServiceProxyImpl.unbound() : super.unbound();
|
|
|
| @@ -421,8 +781,8 @@ class AuthenticationServiceProxyImpl extends bindings.Proxy {
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case kAuthenticationService_selectAccount_name:
|
| - var r = AuthenticationServiceSelectAccountResponseParams.deserialize(
|
| - message.payload);
|
| + var r = AuthenticationServiceSelectAccountResponseParams
|
| + .deserialize(message.payload);
|
| if (!message.header.hasRequestId) {
|
| proxyError("Expected a message with a valid request Id.");
|
| return;
|
| @@ -441,8 +801,48 @@ class AuthenticationServiceProxyImpl extends bindings.Proxy {
|
| c.complete(r);
|
| break;
|
| case kAuthenticationService_getOAuth2Token_name:
|
| - var r = AuthenticationServiceGetOAuth2TokenResponseParams.deserialize(
|
| - message.payload);
|
| + var r = AuthenticationServiceGetOAuth2TokenResponseParams
|
| + .deserialize(message.payload);
|
| + if (!message.header.hasRequestId) {
|
| + proxyError("Expected a message with a valid request Id.");
|
| + return;
|
| + }
|
| + Completer c = completerMap[message.header.requestId];
|
| + if (c == null) {
|
| + proxyError(
|
| + "Message had unknown request Id: ${message.header.requestId}");
|
| + return;
|
| + }
|
| + completerMap.remove(message.header.requestId);
|
| + if (c.isCompleted) {
|
| + proxyError("Response completer already completed");
|
| + return;
|
| + }
|
| + c.complete(r);
|
| + break;
|
| + case kAuthenticationService_getOAuth2DeviceCode_name:
|
| + var r = AuthenticationServiceGetOAuth2DeviceCodeResponseParams
|
| + .deserialize(message.payload);
|
| + if (!message.header.hasRequestId) {
|
| + proxyError("Expected a message with a valid request Id.");
|
| + return;
|
| + }
|
| + Completer c = completerMap[message.header.requestId];
|
| + if (c == null) {
|
| + proxyError(
|
| + "Message had unknown request Id: ${message.header.requestId}");
|
| + return;
|
| + }
|
| + completerMap.remove(message.header.requestId);
|
| + if (c.isCompleted) {
|
| + proxyError("Response completer already completed");
|
| + return;
|
| + }
|
| + c.complete(r);
|
| + break;
|
| + case kAuthenticationService_addAccount_name:
|
| + var r = AuthenticationServiceAddAccountResponseParams
|
| + .deserialize(message.payload);
|
| if (!message.header.hasRequestId) {
|
| proxyError("Expected a message with a valid request Id.");
|
| return;
|
| @@ -473,70 +873,93 @@ class AuthenticationServiceProxyImpl extends bindings.Proxy {
|
| }
|
| }
|
|
|
| -
|
| class _AuthenticationServiceProxyCalls implements AuthenticationService {
|
| AuthenticationServiceProxyImpl _proxyImpl;
|
|
|
| _AuthenticationServiceProxyCalls(this._proxyImpl);
|
| - dynamic selectAccount(bool returnLastSelected,[Function responseFactory = null]) {
|
| - var params = new AuthenticationServiceSelectAccountParams();
|
| - params.returnLastSelected = returnLastSelected;
|
| - return _proxyImpl.sendMessageWithRequestId(
|
| - params,
|
| - kAuthenticationService_selectAccount_name,
|
| - -1,
|
| - bindings.MessageHeader.kMessageExpectsResponse);
|
| - }
|
| - dynamic getOAuth2Token(String username,List<String> scopes,[Function responseFactory = null]) {
|
| - var params = new AuthenticationServiceGetOAuth2TokenParams();
|
| - params.username = username;
|
| - params.scopes = scopes;
|
| - return _proxyImpl.sendMessageWithRequestId(
|
| - params,
|
| - kAuthenticationService_getOAuth2Token_name,
|
| - -1,
|
| - bindings.MessageHeader.kMessageExpectsResponse);
|
| - }
|
| - void clearOAuth2Token(String token) {
|
| - if (!_proxyImpl.isBound) {
|
| - _proxyImpl.proxyError("The Proxy is closed.");
|
| - return;
|
| - }
|
| - var params = new AuthenticationServiceClearOAuth2TokenParams();
|
| - params.token = token;
|
| - _proxyImpl.sendMessage(params, kAuthenticationService_clearOAuth2Token_name);
|
| + dynamic selectAccount(bool returnLastSelected,
|
| + [Function responseFactory = null]) {
|
| + var params = new AuthenticationServiceSelectAccountParams();
|
| + params.returnLastSelected = returnLastSelected;
|
| + return _proxyImpl.sendMessageWithRequestId(
|
| + params,
|
| + kAuthenticationService_selectAccount_name,
|
| + -1,
|
| + bindings.MessageHeader.kMessageExpectsResponse);
|
| + }
|
| +
|
| + dynamic getOAuth2Token(String username, List<String> scopes,
|
| + [Function responseFactory = null]) {
|
| + var params = new AuthenticationServiceGetOAuth2TokenParams();
|
| + params.username = username;
|
| + params.scopes = scopes;
|
| + return _proxyImpl.sendMessageWithRequestId(
|
| + params,
|
| + kAuthenticationService_getOAuth2Token_name,
|
| + -1,
|
| + bindings.MessageHeader.kMessageExpectsResponse);
|
| + }
|
| +
|
| + void clearOAuth2Token(String token) {
|
| + if (!_proxyImpl.isBound) {
|
| + _proxyImpl.proxyError("The Proxy is closed.");
|
| + return;
|
| }
|
| -
|
| -}
|
| + var params = new AuthenticationServiceClearOAuth2TokenParams();
|
| + params.token = token;
|
| + _proxyImpl.sendMessage(
|
| + params, kAuthenticationService_clearOAuth2Token_name);
|
| + }
|
|
|
| + dynamic getOAuth2DeviceCode(List<String> scopes,
|
| + [Function responseFactory = null]) {
|
| + var params = new AuthenticationServiceGetOAuth2DeviceCodeParams();
|
| + params.scopes = scopes;
|
| + return _proxyImpl.sendMessageWithRequestId(
|
| + params,
|
| + kAuthenticationService_getOAuth2DeviceCode_name,
|
| + -1,
|
| + bindings.MessageHeader.kMessageExpectsResponse);
|
| + }
|
| +
|
| + dynamic addAccount(String deviceCode, [Function responseFactory = null]) {
|
| + var params = new AuthenticationServiceAddAccountParams();
|
| + params.deviceCode = deviceCode;
|
| + return _proxyImpl.sendMessageWithRequestId(
|
| + params,
|
| + kAuthenticationService_addAccount_name,
|
| + -1,
|
| + bindings.MessageHeader.kMessageExpectsResponse);
|
| + }
|
| +}
|
|
|
| class AuthenticationServiceProxy implements bindings.ProxyBase {
|
| final bindings.Proxy impl;
|
| AuthenticationService ptr;
|
| final String name = AuthenticationServiceName;
|
|
|
| - AuthenticationServiceProxy(AuthenticationServiceProxyImpl proxyImpl) :
|
| - impl = proxyImpl,
|
| - ptr = new _AuthenticationServiceProxyCalls(proxyImpl);
|
| + AuthenticationServiceProxy(AuthenticationServiceProxyImpl proxyImpl)
|
| + : impl = proxyImpl,
|
| + ptr = new _AuthenticationServiceProxyCalls(proxyImpl);
|
|
|
| - AuthenticationServiceProxy.fromEndpoint(
|
| - core.MojoMessagePipeEndpoint endpoint) :
|
| - impl = new AuthenticationServiceProxyImpl.fromEndpoint(endpoint) {
|
| + AuthenticationServiceProxy.fromEndpoint(core.MojoMessagePipeEndpoint endpoint)
|
| + : impl = new AuthenticationServiceProxyImpl.fromEndpoint(endpoint) {
|
| ptr = new _AuthenticationServiceProxyCalls(impl);
|
| }
|
|
|
| - AuthenticationServiceProxy.fromHandle(core.MojoHandle handle) :
|
| - impl = new AuthenticationServiceProxyImpl.fromHandle(handle) {
|
| + AuthenticationServiceProxy.fromHandle(core.MojoHandle handle)
|
| + : impl = new AuthenticationServiceProxyImpl.fromHandle(handle) {
|
| ptr = new _AuthenticationServiceProxyCalls(impl);
|
| }
|
|
|
| - AuthenticationServiceProxy.unbound() :
|
| - impl = new AuthenticationServiceProxyImpl.unbound() {
|
| + AuthenticationServiceProxy.unbound()
|
| + : impl = new AuthenticationServiceProxyImpl.unbound() {
|
| ptr = new _AuthenticationServiceProxyCalls(impl);
|
| }
|
|
|
| factory AuthenticationServiceProxy.connectToService(
|
| - bindings.ServiceConnector s, String url, [String serviceName]) {
|
| + bindings.ServiceConnector s, String url,
|
| + [String serviceName]) {
|
| AuthenticationServiceProxy p = new AuthenticationServiceProxy.unbound();
|
| s.connectToService(url, p, serviceName);
|
| return p;
|
| @@ -567,12 +990,11 @@ class AuthenticationServiceProxy implements bindings.ProxyBase {
|
| }
|
| }
|
|
|
| -
|
| class AuthenticationServiceStub extends bindings.Stub {
|
| AuthenticationService _impl = null;
|
|
|
| - AuthenticationServiceStub.fromEndpoint(
|
| - core.MojoMessagePipeEndpoint endpoint, [this._impl])
|
| + AuthenticationServiceStub.fromEndpoint(core.MojoMessagePipeEndpoint endpoint,
|
| + [this._impl])
|
| : super.fromEndpoint(endpoint);
|
|
|
| AuthenticationServiceStub.fromHandle(core.MojoHandle handle, [this._impl])
|
| @@ -588,32 +1010,58 @@ class AuthenticationServiceStub extends bindings.Stub {
|
|
|
| static const String name = AuthenticationServiceName;
|
|
|
| -
|
| - AuthenticationServiceSelectAccountResponseParams _AuthenticationServiceSelectAccountResponseParamsFactory(String username, String error) {
|
| - var mojo_factory_result = new AuthenticationServiceSelectAccountResponseParams();
|
| + AuthenticationServiceSelectAccountResponseParams _AuthenticationServiceSelectAccountResponseParamsFactory(
|
| + String username, String error) {
|
| + var mojo_factory_result =
|
| + new AuthenticationServiceSelectAccountResponseParams();
|
| mojo_factory_result.username = username;
|
| mojo_factory_result.error = error;
|
| return mojo_factory_result;
|
| }
|
| - AuthenticationServiceGetOAuth2TokenResponseParams _AuthenticationServiceGetOAuth2TokenResponseParamsFactory(String token, String error) {
|
| - var mojo_factory_result = new AuthenticationServiceGetOAuth2TokenResponseParams();
|
| +
|
| + AuthenticationServiceGetOAuth2TokenResponseParams _AuthenticationServiceGetOAuth2TokenResponseParamsFactory(
|
| + String token, String error) {
|
| + var mojo_factory_result =
|
| + new AuthenticationServiceGetOAuth2TokenResponseParams();
|
| mojo_factory_result.token = token;
|
| mojo_factory_result.error = error;
|
| return mojo_factory_result;
|
| }
|
|
|
| + AuthenticationServiceGetOAuth2DeviceCodeResponseParams _AuthenticationServiceGetOAuth2DeviceCodeResponseParamsFactory(
|
| + String verificationUrl,
|
| + String deviceCode,
|
| + String userCode,
|
| + String error) {
|
| + var mojo_factory_result =
|
| + new AuthenticationServiceGetOAuth2DeviceCodeResponseParams();
|
| + mojo_factory_result.verificationUrl = verificationUrl;
|
| + mojo_factory_result.deviceCode = deviceCode;
|
| + mojo_factory_result.userCode = userCode;
|
| + mojo_factory_result.error = error;
|
| + return mojo_factory_result;
|
| + }
|
| +
|
| + AuthenticationServiceAddAccountResponseParams _AuthenticationServiceAddAccountResponseParamsFactory(
|
| + String username, String error) {
|
| + var mojo_factory_result =
|
| + new AuthenticationServiceAddAccountResponseParams();
|
| + mojo_factory_result.username = username;
|
| + mojo_factory_result.error = error;
|
| + return mojo_factory_result;
|
| + }
|
| +
|
| dynamic handleMessage(bindings.ServiceMessage message) {
|
| if (bindings.ControlMessageHandler.isControlMessage(message)) {
|
| - return bindings.ControlMessageHandler.handleMessage(this,
|
| - 0,
|
| - message);
|
| + return bindings.ControlMessageHandler.handleMessage(this, 0, message);
|
| }
|
| assert(_impl != null);
|
| switch (message.header.type) {
|
| case kAuthenticationService_selectAccount_name:
|
| - var params = AuthenticationServiceSelectAccountParams.deserialize(
|
| - message.payload);
|
| - var response = _impl.selectAccount(params.returnLastSelected,_AuthenticationServiceSelectAccountResponseParamsFactory);
|
| + var params = AuthenticationServiceSelectAccountParams
|
| + .deserialize(message.payload);
|
| + var response = _impl.selectAccount(params.returnLastSelected,
|
| + _AuthenticationServiceSelectAccountResponseParamsFactory);
|
| if (response is Future) {
|
| return response.then((response) {
|
| if (response != null) {
|
| @@ -633,9 +1081,10 @@ class AuthenticationServiceStub extends bindings.Stub {
|
| }
|
| break;
|
| case kAuthenticationService_getOAuth2Token_name:
|
| - var params = AuthenticationServiceGetOAuth2TokenParams.deserialize(
|
| - message.payload);
|
| - var response = _impl.getOAuth2Token(params.username,params.scopes,_AuthenticationServiceGetOAuth2TokenResponseParamsFactory);
|
| + var params = AuthenticationServiceGetOAuth2TokenParams
|
| + .deserialize(message.payload);
|
| + var response = _impl.getOAuth2Token(params.username, params.scopes,
|
| + _AuthenticationServiceGetOAuth2TokenResponseParamsFactory);
|
| if (response is Future) {
|
| return response.then((response) {
|
| if (response != null) {
|
| @@ -655,10 +1104,56 @@ class AuthenticationServiceStub extends bindings.Stub {
|
| }
|
| break;
|
| case kAuthenticationService_clearOAuth2Token_name:
|
| - var params = AuthenticationServiceClearOAuth2TokenParams.deserialize(
|
| - message.payload);
|
| + var params = AuthenticationServiceClearOAuth2TokenParams
|
| + .deserialize(message.payload);
|
| _impl.clearOAuth2Token(params.token);
|
| break;
|
| + case kAuthenticationService_getOAuth2DeviceCode_name:
|
| + var params = AuthenticationServiceGetOAuth2DeviceCodeParams
|
| + .deserialize(message.payload);
|
| + var response = _impl.getOAuth2DeviceCode(params.scopes,
|
| + _AuthenticationServiceGetOAuth2DeviceCodeResponseParamsFactory);
|
| + if (response is Future) {
|
| + return response.then((response) {
|
| + if (response != null) {
|
| + return buildResponseWithId(
|
| + response,
|
| + kAuthenticationService_getOAuth2DeviceCode_name,
|
| + message.header.requestId,
|
| + bindings.MessageHeader.kMessageIsResponse);
|
| + }
|
| + });
|
| + } else if (response != null) {
|
| + return buildResponseWithId(
|
| + response,
|
| + kAuthenticationService_getOAuth2DeviceCode_name,
|
| + message.header.requestId,
|
| + bindings.MessageHeader.kMessageIsResponse);
|
| + }
|
| + break;
|
| + case kAuthenticationService_addAccount_name:
|
| + var params =
|
| + AuthenticationServiceAddAccountParams.deserialize(message.payload);
|
| + var response = _impl.addAccount(params.deviceCode,
|
| + _AuthenticationServiceAddAccountResponseParamsFactory);
|
| + if (response is Future) {
|
| + return response.then((response) {
|
| + if (response != null) {
|
| + return buildResponseWithId(
|
| + response,
|
| + kAuthenticationService_addAccount_name,
|
| + message.header.requestId,
|
| + bindings.MessageHeader.kMessageIsResponse);
|
| + }
|
| + });
|
| + } else if (response != null) {
|
| + return buildResponseWithId(
|
| + response,
|
| + kAuthenticationService_addAccount_name,
|
| + message.header.requestId,
|
| + bindings.MessageHeader.kMessageIsResponse);
|
| + }
|
| + break;
|
| default:
|
| throw new bindings.MojoCodecError("Unexpected message name");
|
| break;
|
| @@ -679,5 +1174,3 @@ class AuthenticationServiceStub extends bindings.Stub {
|
|
|
| int get version => 0;
|
| }
|
| -
|
| -
|
|
|