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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/tracing/tracing.mojom.dart

Issue 1648803006: Expose Service Describer in Dart mojo package (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase Retest and Update Mojoms Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 library tracing_mojom; 5 library tracing_mojom;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:mojo/bindings.dart' as bindings; 9 import 'package:mojo/bindings.dart' as bindings;
10 import 'package:mojo/core.dart' as core; 10 import 'package:mojo/core.dart' as core;
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 378
379 379
380 380
381 381
382 const int _TraceProvider_startTracingName = 0; 382 const int _TraceProvider_startTracingName = 0;
383 const int _TraceProvider_stopTracingName = 1; 383 const int _TraceProvider_stopTracingName = 1;
384 384
385 385
386 386
387 class _TraceProviderServiceDescription implements service_describer.ServiceDescr iption { 387 class _TraceProviderServiceDescription implements service_describer.ServiceDescr iption {
388 dynamic getTopLevelInterface([Function responseFactory]) => null; 388 dynamic getTopLevelInterface([Function responseFactory]) =>
389 responseFactory(null);
389 390
390 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 391 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
392 responseFactory(null);
391 393
392 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 394 dynamic getAllTypeDefinitions([Function responseFactory]) =>
395 responseFactory(null);
393 } 396 }
394 397
395 abstract class TraceProvider { 398 abstract class TraceProvider {
396 static const String serviceName = "tracing::TraceProvider"; 399 static const String serviceName = "tracing::TraceProvider";
397 void startTracing(String categories, Object recorder); 400 void startTracing(String categories, Object recorder);
398 void stopTracing(); 401 void stopTracing();
399 } 402 }
400 403
401 404
402 class _TraceProviderProxyImpl extends bindings.Proxy { 405 class _TraceProviderProxyImpl extends bindings.Proxy {
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 _impl = d; 571 _impl = d;
569 } 572 }
570 573
571 String toString() { 574 String toString() {
572 var superString = super.toString(); 575 var superString = super.toString();
573 return "TraceProviderStub($superString)"; 576 return "TraceProviderStub($superString)";
574 } 577 }
575 578
576 int get version => 0; 579 int get version => 0;
577 580
578 service_describer.ServiceDescription get serviceDescription => 581 static service_describer.ServiceDescription get serviceDescription =>
579 new _TraceProviderServiceDescription(); 582 new _TraceProviderServiceDescription();
580 } 583 }
581 584
582 const int _TraceRecorder_recordName = 0; 585 const int _TraceRecorder_recordName = 0;
583 586
584 587
585 588
586 class _TraceRecorderServiceDescription implements service_describer.ServiceDescr iption { 589 class _TraceRecorderServiceDescription implements service_describer.ServiceDescr iption {
587 dynamic getTopLevelInterface([Function responseFactory]) => null; 590 dynamic getTopLevelInterface([Function responseFactory]) =>
591 responseFactory(null);
588 592
589 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 593 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
594 responseFactory(null);
590 595
591 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 596 dynamic getAllTypeDefinitions([Function responseFactory]) =>
597 responseFactory(null);
592 } 598 }
593 599
594 abstract class TraceRecorder { 600 abstract class TraceRecorder {
595 static const String serviceName = null; 601 static const String serviceName = null;
596 void record(String json); 602 void record(String json);
597 } 603 }
598 604
599 605
600 class _TraceRecorderProxyImpl extends bindings.Proxy { 606 class _TraceRecorderProxyImpl extends bindings.Proxy {
601 _TraceRecorderProxyImpl.fromEndpoint( 607 _TraceRecorderProxyImpl.fromEndpoint(
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 _impl = d; 758 _impl = d;
753 } 759 }
754 760
755 String toString() { 761 String toString() {
756 var superString = super.toString(); 762 var superString = super.toString();
757 return "TraceRecorderStub($superString)"; 763 return "TraceRecorderStub($superString)";
758 } 764 }
759 765
760 int get version => 0; 766 int get version => 0;
761 767
762 service_describer.ServiceDescription get serviceDescription => 768 static service_describer.ServiceDescription get serviceDescription =>
763 new _TraceRecorderServiceDescription(); 769 new _TraceRecorderServiceDescription();
764 } 770 }
765 771
766 const int _TraceCollector_startName = 0; 772 const int _TraceCollector_startName = 0;
767 const int _TraceCollector_stopAndFlushName = 1; 773 const int _TraceCollector_stopAndFlushName = 1;
768 774
769 775
770 776
771 class _TraceCollectorServiceDescription implements service_describer.ServiceDesc ription { 777 class _TraceCollectorServiceDescription implements service_describer.ServiceDesc ription {
772 dynamic getTopLevelInterface([Function responseFactory]) => null; 778 dynamic getTopLevelInterface([Function responseFactory]) =>
779 responseFactory(null);
773 780
774 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 781 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
782 responseFactory(null);
775 783
776 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 784 dynamic getAllTypeDefinitions([Function responseFactory]) =>
785 responseFactory(null);
777 } 786 }
778 787
779 abstract class TraceCollector { 788 abstract class TraceCollector {
780 static const String serviceName = "tracing::TraceCollector"; 789 static const String serviceName = "tracing::TraceCollector";
781 void start(core.MojoDataPipeProducer stream, String categories); 790 void start(core.MojoDataPipeProducer stream, String categories);
782 void stopAndFlush(); 791 void stopAndFlush();
783 } 792 }
784 793
785 794
786 class _TraceCollectorProxyImpl extends bindings.Proxy { 795 class _TraceCollectorProxyImpl extends bindings.Proxy {
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 _impl = d; 961 _impl = d;
953 } 962 }
954 963
955 String toString() { 964 String toString() {
956 var superString = super.toString(); 965 var superString = super.toString();
957 return "TraceCollectorStub($superString)"; 966 return "TraceCollectorStub($superString)";
958 } 967 }
959 968
960 int get version => 0; 969 int get version => 0;
961 970
962 service_describer.ServiceDescription get serviceDescription => 971 static service_describer.ServiceDescription get serviceDescription =>
963 new _TraceCollectorServiceDescription(); 972 new _TraceCollectorServiceDescription();
964 } 973 }
965 974
966 975
967 976
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698