Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/url_loader_interceptor.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge with master Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/dart/packages/mojo_services/lib/mojo/url_loader_interceptor.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/url_loader_interceptor.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/url_loader_interceptor.mojom.dart
index db51ac98ae73da74e1440ca2eaf731712408b968..6e1108f9aa5355ffe3111329fa1a3c37c74b0162 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/url_loader_interceptor.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/url_loader_interceptor.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/url_request.mojom.dart' as url_request_mojom;
import 'package:mojo/mojo/url_response.mojom.dart' as url_response_mojom;
@@ -89,6 +91,8 @@ class UrlLoaderInterceptorResponse extends bindings.Struct {
}
+
+
class _UrlLoaderInterceptorFactoryCreateParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -155,6 +159,8 @@ class _UrlLoaderInterceptorFactoryCreateParams extends bindings.Struct {
}
+
+
class _UrlLoaderInterceptorInterceptRequestParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -222,6 +228,8 @@ class _UrlLoaderInterceptorInterceptRequestParams extends bindings.Struct {
}
+
+
class UrlLoaderInterceptorInterceptRequestResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -289,6 +297,8 @@ class UrlLoaderInterceptorInterceptRequestResponseParams extends bindings.Struct
}
+
+
class _UrlLoaderInterceptorInterceptFollowRedirectParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(8, 0)
@@ -347,6 +357,8 @@ class _UrlLoaderInterceptorInterceptFollowRedirectParams extends bindings.Struct
}
+
+
class UrlLoaderInterceptorInterceptFollowRedirectResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -414,6 +426,8 @@ class UrlLoaderInterceptorInterceptFollowRedirectResponseParams extends bindings
}
+
+
class _UrlLoaderInterceptorInterceptResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -481,6 +495,8 @@ class _UrlLoaderInterceptorInterceptResponseParams extends bindings.Struct {
}
+
+
class UrlLoaderInterceptorInterceptResponseResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -547,8 +563,21 @@ class UrlLoaderInterceptorInterceptResponseResponseParams extends bindings.Struc
}
}
+
+
+
const int _UrlLoaderInterceptorFactory_createName = 0;
+
+
+class _UrlLoaderInterceptorFactoryServiceDescription implements service_describer.ServiceDescription {
+ dynamic getTopLevelInterface([Function responseFactory]) => null;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null;
+}
+
abstract class UrlLoaderInterceptorFactory {
static const String serviceName = null;
void create(Object interceptor);
@@ -570,6 +599,9 @@ class _UrlLoaderInterceptorFactoryProxyImpl extends bindings.Proxy {
return new _UrlLoaderInterceptorFactoryProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _UrlLoaderInterceptorFactoryServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -713,12 +745,25 @@ class UrlLoaderInterceptorFactoryStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _UrlLoaderInterceptorFactoryServiceDescription();
}
const int _UrlLoaderInterceptor_interceptRequestName = 0;
const int _UrlLoaderInterceptor_interceptFollowRedirectName = 1;
const int _UrlLoaderInterceptor_interceptResponseName = 2;
+
+
+class _UrlLoaderInterceptorServiceDescription implements service_describer.ServiceDescription {
+ dynamic getTopLevelInterface([Function responseFactory]) => null;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null;
+}
+
abstract class UrlLoaderInterceptor {
static const String serviceName = null;
dynamic interceptRequest(url_request_mojom.UrlRequest request,[Function responseFactory = null]);
@@ -742,6 +787,9 @@ class _UrlLoaderInterceptorProxyImpl extends bindings.Proxy {
return new _UrlLoaderInterceptorProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _UrlLoaderInterceptorServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case _UrlLoaderInterceptor_interceptRequestName:
@@ -1038,6 +1086,10 @@ class UrlLoaderInterceptorStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _UrlLoaderInterceptorServiceDescription();
}
+

Powered by Google App Engine
This is Rietveld 408576698