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

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/url_loader.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.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/url_loader.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/url_loader.mojom.dart
index 88714de0720e133237c67c54a9d86cb77ebe7c75..d6d14cc5c29d8de198336c729f1a1448b4d3f596 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/url_loader.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/url_loader.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;
import 'package:mojo/mojo/url_request.mojom.dart' as url_request_mojom;
import 'package:mojo/mojo/url_response.mojom.dart' as url_response_mojom;
@@ -91,6 +93,8 @@ class UrlLoaderStatus extends bindings.Struct {
}
+
+
class _UrlLoaderStartParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -158,6 +162,8 @@ class _UrlLoaderStartParams extends bindings.Struct {
}
+
+
class UrlLoaderStartResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -225,6 +231,8 @@ class UrlLoaderStartResponseParams extends bindings.Struct {
}
+
+
class _UrlLoaderFollowRedirectParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(8, 0)
@@ -283,6 +291,8 @@ class _UrlLoaderFollowRedirectParams extends bindings.Struct {
}
+
+
class UrlLoaderFollowRedirectResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -350,6 +360,8 @@ class UrlLoaderFollowRedirectResponseParams extends bindings.Struct {
}
+
+
class _UrlLoaderQueryStatusParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(8, 0)
@@ -408,6 +420,8 @@ class _UrlLoaderQueryStatusParams extends bindings.Struct {
}
+
+
class UrlLoaderQueryStatusResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -475,10 +489,23 @@ class UrlLoaderQueryStatusResponseParams extends bindings.Struct {
}
}
+
+
+
const int _UrlLoader_startName = 0;
const int _UrlLoader_followRedirectName = 1;
const int _UrlLoader_queryStatusName = 2;
+
+
+class _UrlLoaderServiceDescription implements service_describer.ServiceDescription {
+ dynamic getTopLevelInterface([Function responseFactory]) => null;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null;
+}
+
abstract class UrlLoader {
static const String serviceName = null;
dynamic start(url_request_mojom.UrlRequest request,[Function responseFactory = null]);
@@ -502,6 +529,9 @@ class _UrlLoaderProxyImpl extends bindings.Proxy {
return new _UrlLoaderProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _UrlLoaderServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case _UrlLoader_startName:
@@ -797,6 +827,10 @@ class UrlLoaderStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _UrlLoaderServiceDescription();
}
+

Powered by Google App Engine
This is Rietveld 408576698