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

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

Issue 1964193002: Dart: Refactors Proxies (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address comments Created 4 years, 7 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 import 'dart:async'; 6 import 'dart:async';
7 import 'package:mojo/bindings.dart' as bindings; 7 import 'package:mojo/bindings.dart' as bindings;
8 import 'package:mojo/core.dart' as core; 8 import 'package:mojo/core.dart' as core;
9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer; 9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer;
10 10
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 responseFactory(null); 379 responseFactory(null);
380 } 380 }
381 381
382 abstract class TraceProvider { 382 abstract class TraceProvider {
383 static const String serviceName = "tracing::TraceProvider"; 383 static const String serviceName = "tracing::TraceProvider";
384 void startTracing(String categories, Object recorder); 384 void startTracing(String categories, Object recorder);
385 void stopTracing(); 385 void stopTracing();
386 } 386 }
387 387
388 388
389 class _TraceProviderProxyImpl extends bindings.Proxy { 389 class _TraceProviderProxyControl extends bindings.ProxyMessageHandler
390 _TraceProviderProxyImpl.fromEndpoint( 390 implements bindings.ProxyControl {
391 _TraceProviderProxyControl.fromEndpoint(
391 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 392 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
392 393
393 _TraceProviderProxyImpl.fromHandle(core.MojoHandle handle) : 394 _TraceProviderProxyControl.fromHandle(
394 super.fromHandle(handle); 395 core.MojoHandle handle) : super.fromHandle(handle);
395 396
396 _TraceProviderProxyImpl.unbound() : super.unbound(); 397 _TraceProviderProxyControl.unbound() : super.unbound();
397
398 static _TraceProviderProxyImpl newFromEndpoint(
399 core.MojoMessagePipeEndpoint endpoint) {
400 assert(endpoint.setDescription("For _TraceProviderProxyImpl"));
401 return new _TraceProviderProxyImpl.fromEndpoint(endpoint);
402 }
403 398
404 service_describer.ServiceDescription get serviceDescription => 399 service_describer.ServiceDescription get serviceDescription =>
405 new _TraceProviderServiceDescription(); 400 new _TraceProviderServiceDescription();
406 401
402 String get serviceName => TraceProvider.serviceName;
403
404 @override
407 void handleResponse(bindings.ServiceMessage message) { 405 void handleResponse(bindings.ServiceMessage message) {
408 switch (message.header.type) { 406 switch (message.header.type) {
409 default: 407 default:
410 proxyError("Unexpected message type: ${message.header.type}"); 408 proxyError("Unexpected message type: ${message.header.type}");
411 close(immediate: true); 409 close(immediate: true);
412 break; 410 break;
413 } 411 }
414 } 412 }
415 413
414 @override
416 String toString() { 415 String toString() {
417 var superString = super.toString(); 416 var superString = super.toString();
418 return "_TraceProviderProxyImpl($superString)"; 417 return "_TraceProviderProxyControl($superString)";
419 } 418 }
420 } 419 }
421 420
422 421
423 class _TraceProviderProxyCalls implements TraceProvider { 422 class TraceProviderProxy extends bindings.Proxy
424 _TraceProviderProxyImpl _proxyImpl; 423 implements TraceProvider {
424 TraceProviderProxy.fromEndpoint(
425 core.MojoMessagePipeEndpoint endpoint)
426 : super(new _TraceProviderProxyControl.fromEndpoint(endpoint));
425 427
426 _TraceProviderProxyCalls(this._proxyImpl); 428 TraceProviderProxy.fromHandle(core.MojoHandle handle)
427 void startTracing(String categories, Object recorder) { 429 : super(new _TraceProviderProxyControl.fromHandle(handle));
428 if (!_proxyImpl.isBound) {
429 _proxyImpl.proxyError("The Proxy is closed.");
430 return;
431 }
432 var params = new _TraceProviderStartTracingParams();
433 params.categories = categories;
434 params.recorder = recorder;
435 _proxyImpl.sendMessage(params, _traceProviderMethodStartTracingName);
436 }
437 void stopTracing() {
438 if (!_proxyImpl.isBound) {
439 _proxyImpl.proxyError("The Proxy is closed.");
440 return;
441 }
442 var params = new _TraceProviderStopTracingParams();
443 _proxyImpl.sendMessage(params, _traceProviderMethodStopTracingName);
444 }
445 }
446 430
431 TraceProviderProxy.unbound()
432 : super(new _TraceProviderProxyControl.unbound());
447 433
448 class TraceProviderProxy implements bindings.ProxyBase { 434 static TraceProviderProxy newFromEndpoint(
449 final bindings.Proxy impl; 435 core.MojoMessagePipeEndpoint endpoint) {
450 TraceProvider ptr; 436 assert(endpoint.setDescription("For TraceProviderProxy"));
451 437 return new TraceProviderProxy.fromEndpoint(endpoint);
452 TraceProviderProxy(_TraceProviderProxyImpl proxyImpl) :
453 impl = proxyImpl,
454 ptr = new _TraceProviderProxyCalls(proxyImpl);
455
456 TraceProviderProxy.fromEndpoint(
457 core.MojoMessagePipeEndpoint endpoint) :
458 impl = new _TraceProviderProxyImpl.fromEndpoint(endpoint) {
459 ptr = new _TraceProviderProxyCalls(impl);
460 }
461
462 TraceProviderProxy.fromHandle(core.MojoHandle handle) :
463 impl = new _TraceProviderProxyImpl.fromHandle(handle) {
464 ptr = new _TraceProviderProxyCalls(impl);
465 }
466
467 TraceProviderProxy.unbound() :
468 impl = new _TraceProviderProxyImpl.unbound() {
469 ptr = new _TraceProviderProxyCalls(impl);
470 } 438 }
471 439
472 factory TraceProviderProxy.connectToService( 440 factory TraceProviderProxy.connectToService(
473 bindings.ServiceConnector s, String url, [String serviceName]) { 441 bindings.ServiceConnector s, String url, [String serviceName]) {
474 TraceProviderProxy p = new TraceProviderProxy.unbound(); 442 TraceProviderProxy p = new TraceProviderProxy.unbound();
475 s.connectToService(url, p, serviceName); 443 s.connectToService(url, p, serviceName);
476 return p; 444 return p;
477 } 445 }
478 446
479 static TraceProviderProxy newFromEndpoint( 447
480 core.MojoMessagePipeEndpoint endpoint) { 448 void startTracing(String categories, Object recorder) {
481 assert(endpoint.setDescription("For TraceProviderProxy")); 449 if (!ctrl.isBound) {
482 return new TraceProviderProxy.fromEndpoint(endpoint); 450 ctrl.proxyError("The Proxy is closed.");
451 return;
452 }
453 var params = new _TraceProviderStartTracingParams();
454 params.categories = categories;
455 params.recorder = recorder;
456 ctrl.sendMessage(params,
457 _traceProviderMethodStartTracingName);
483 } 458 }
484 459 void stopTracing() {
485 String get serviceName => TraceProvider.serviceName; 460 if (!ctrl.isBound) {
486 461 ctrl.proxyError("The Proxy is closed.");
487 Future close({bool immediate: false}) => impl.close(immediate: immediate); 462 return;
488 463 }
489 Future responseOrError(Future f) => impl.responseOrError(f); 464 var params = new _TraceProviderStopTracingParams();
490 465 ctrl.sendMessage(params,
491 Future get errorFuture => impl.errorFuture; 466 _traceProviderMethodStopTracingName);
492
493 int get version => impl.version;
494
495 Future<int> queryVersion() => impl.queryVersion();
496
497 void requireVersion(int requiredVersion) {
498 impl.requireVersion(requiredVersion);
499 }
500
501 String toString() {
502 return "TraceProviderProxy($impl)";
503 } 467 }
504 } 468 }
505 469
506 470
507 class TraceProviderStub extends bindings.Stub { 471 class TraceProviderStub extends bindings.Stub {
508 TraceProvider _impl; 472 TraceProvider _impl;
509 473
510 TraceProviderStub.fromEndpoint( 474 TraceProviderStub.fromEndpoint(
511 core.MojoMessagePipeEndpoint endpoint, [TraceProvider impl]) 475 core.MojoMessagePipeEndpoint endpoint, [TraceProvider impl])
512 : super.fromEndpoint(endpoint, autoBegin: impl != null) { 476 : super.fromEndpoint(endpoint, autoBegin: impl != null) {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 dynamic getAllTypeDefinitions([Function responseFactory]) => 565 dynamic getAllTypeDefinitions([Function responseFactory]) =>
602 responseFactory(null); 566 responseFactory(null);
603 } 567 }
604 568
605 abstract class TraceRecorder { 569 abstract class TraceRecorder {
606 static const String serviceName = null; 570 static const String serviceName = null;
607 void record(String json); 571 void record(String json);
608 } 572 }
609 573
610 574
611 class _TraceRecorderProxyImpl extends bindings.Proxy { 575 class _TraceRecorderProxyControl extends bindings.ProxyMessageHandler
612 _TraceRecorderProxyImpl.fromEndpoint( 576 implements bindings.ProxyControl {
577 _TraceRecorderProxyControl.fromEndpoint(
613 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 578 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
614 579
615 _TraceRecorderProxyImpl.fromHandle(core.MojoHandle handle) : 580 _TraceRecorderProxyControl.fromHandle(
616 super.fromHandle(handle); 581 core.MojoHandle handle) : super.fromHandle(handle);
617 582
618 _TraceRecorderProxyImpl.unbound() : super.unbound(); 583 _TraceRecorderProxyControl.unbound() : super.unbound();
619
620 static _TraceRecorderProxyImpl newFromEndpoint(
621 core.MojoMessagePipeEndpoint endpoint) {
622 assert(endpoint.setDescription("For _TraceRecorderProxyImpl"));
623 return new _TraceRecorderProxyImpl.fromEndpoint(endpoint);
624 }
625 584
626 service_describer.ServiceDescription get serviceDescription => 585 service_describer.ServiceDescription get serviceDescription =>
627 new _TraceRecorderServiceDescription(); 586 new _TraceRecorderServiceDescription();
628 587
588 String get serviceName => TraceRecorder.serviceName;
589
590 @override
629 void handleResponse(bindings.ServiceMessage message) { 591 void handleResponse(bindings.ServiceMessage message) {
630 switch (message.header.type) { 592 switch (message.header.type) {
631 default: 593 default:
632 proxyError("Unexpected message type: ${message.header.type}"); 594 proxyError("Unexpected message type: ${message.header.type}");
633 close(immediate: true); 595 close(immediate: true);
634 break; 596 break;
635 } 597 }
636 } 598 }
637 599
600 @override
638 String toString() { 601 String toString() {
639 var superString = super.toString(); 602 var superString = super.toString();
640 return "_TraceRecorderProxyImpl($superString)"; 603 return "_TraceRecorderProxyControl($superString)";
641 } 604 }
642 } 605 }
643 606
644 607
645 class _TraceRecorderProxyCalls implements TraceRecorder { 608 class TraceRecorderProxy extends bindings.Proxy
646 _TraceRecorderProxyImpl _proxyImpl; 609 implements TraceRecorder {
610 TraceRecorderProxy.fromEndpoint(
611 core.MojoMessagePipeEndpoint endpoint)
612 : super(new _TraceRecorderProxyControl.fromEndpoint(endpoint));
647 613
648 _TraceRecorderProxyCalls(this._proxyImpl); 614 TraceRecorderProxy.fromHandle(core.MojoHandle handle)
649 void record(String json) { 615 : super(new _TraceRecorderProxyControl.fromHandle(handle));
650 if (!_proxyImpl.isBound) {
651 _proxyImpl.proxyError("The Proxy is closed.");
652 return;
653 }
654 var params = new _TraceRecorderRecordParams();
655 params.json = json;
656 _proxyImpl.sendMessage(params, _traceRecorderMethodRecordName);
657 }
658 }
659 616
617 TraceRecorderProxy.unbound()
618 : super(new _TraceRecorderProxyControl.unbound());
660 619
661 class TraceRecorderProxy implements bindings.ProxyBase { 620 static TraceRecorderProxy newFromEndpoint(
662 final bindings.Proxy impl; 621 core.MojoMessagePipeEndpoint endpoint) {
663 TraceRecorder ptr; 622 assert(endpoint.setDescription("For TraceRecorderProxy"));
664 623 return new TraceRecorderProxy.fromEndpoint(endpoint);
665 TraceRecorderProxy(_TraceRecorderProxyImpl proxyImpl) :
666 impl = proxyImpl,
667 ptr = new _TraceRecorderProxyCalls(proxyImpl);
668
669 TraceRecorderProxy.fromEndpoint(
670 core.MojoMessagePipeEndpoint endpoint) :
671 impl = new _TraceRecorderProxyImpl.fromEndpoint(endpoint) {
672 ptr = new _TraceRecorderProxyCalls(impl);
673 }
674
675 TraceRecorderProxy.fromHandle(core.MojoHandle handle) :
676 impl = new _TraceRecorderProxyImpl.fromHandle(handle) {
677 ptr = new _TraceRecorderProxyCalls(impl);
678 }
679
680 TraceRecorderProxy.unbound() :
681 impl = new _TraceRecorderProxyImpl.unbound() {
682 ptr = new _TraceRecorderProxyCalls(impl);
683 } 624 }
684 625
685 factory TraceRecorderProxy.connectToService( 626 factory TraceRecorderProxy.connectToService(
686 bindings.ServiceConnector s, String url, [String serviceName]) { 627 bindings.ServiceConnector s, String url, [String serviceName]) {
687 TraceRecorderProxy p = new TraceRecorderProxy.unbound(); 628 TraceRecorderProxy p = new TraceRecorderProxy.unbound();
688 s.connectToService(url, p, serviceName); 629 s.connectToService(url, p, serviceName);
689 return p; 630 return p;
690 } 631 }
691 632
692 static TraceRecorderProxy newFromEndpoint(
693 core.MojoMessagePipeEndpoint endpoint) {
694 assert(endpoint.setDescription("For TraceRecorderProxy"));
695 return new TraceRecorderProxy.fromEndpoint(endpoint);
696 }
697 633
698 String get serviceName => TraceRecorder.serviceName; 634 void record(String json) {
699 635 if (!ctrl.isBound) {
700 Future close({bool immediate: false}) => impl.close(immediate: immediate); 636 ctrl.proxyError("The Proxy is closed.");
701 637 return;
702 Future responseOrError(Future f) => impl.responseOrError(f); 638 }
703 639 var params = new _TraceRecorderRecordParams();
704 Future get errorFuture => impl.errorFuture; 640 params.json = json;
705 641 ctrl.sendMessage(params,
706 int get version => impl.version; 642 _traceRecorderMethodRecordName);
707
708 Future<int> queryVersion() => impl.queryVersion();
709
710 void requireVersion(int requiredVersion) {
711 impl.requireVersion(requiredVersion);
712 }
713
714 String toString() {
715 return "TraceRecorderProxy($impl)";
716 } 643 }
717 } 644 }
718 645
719 646
720 class TraceRecorderStub extends bindings.Stub { 647 class TraceRecorderStub extends bindings.Stub {
721 TraceRecorder _impl; 648 TraceRecorder _impl;
722 649
723 TraceRecorderStub.fromEndpoint( 650 TraceRecorderStub.fromEndpoint(
724 core.MojoMessagePipeEndpoint endpoint, [TraceRecorder impl]) 651 core.MojoMessagePipeEndpoint endpoint, [TraceRecorder impl])
725 : super.fromEndpoint(endpoint, autoBegin: impl != null) { 652 : super.fromEndpoint(endpoint, autoBegin: impl != null) {
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 responseFactory(null); 740 responseFactory(null);
814 } 741 }
815 742
816 abstract class TraceCollector { 743 abstract class TraceCollector {
817 static const String serviceName = "tracing::TraceCollector"; 744 static const String serviceName = "tracing::TraceCollector";
818 void start(core.MojoDataPipeProducer stream, String categories); 745 void start(core.MojoDataPipeProducer stream, String categories);
819 void stopAndFlush(); 746 void stopAndFlush();
820 } 747 }
821 748
822 749
823 class _TraceCollectorProxyImpl extends bindings.Proxy { 750 class _TraceCollectorProxyControl extends bindings.ProxyMessageHandler
824 _TraceCollectorProxyImpl.fromEndpoint( 751 implements bindings.ProxyControl {
752 _TraceCollectorProxyControl.fromEndpoint(
825 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 753 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
826 754
827 _TraceCollectorProxyImpl.fromHandle(core.MojoHandle handle) : 755 _TraceCollectorProxyControl.fromHandle(
828 super.fromHandle(handle); 756 core.MojoHandle handle) : super.fromHandle(handle);
829 757
830 _TraceCollectorProxyImpl.unbound() : super.unbound(); 758 _TraceCollectorProxyControl.unbound() : super.unbound();
831
832 static _TraceCollectorProxyImpl newFromEndpoint(
833 core.MojoMessagePipeEndpoint endpoint) {
834 assert(endpoint.setDescription("For _TraceCollectorProxyImpl"));
835 return new _TraceCollectorProxyImpl.fromEndpoint(endpoint);
836 }
837 759
838 service_describer.ServiceDescription get serviceDescription => 760 service_describer.ServiceDescription get serviceDescription =>
839 new _TraceCollectorServiceDescription(); 761 new _TraceCollectorServiceDescription();
840 762
763 String get serviceName => TraceCollector.serviceName;
764
765 @override
841 void handleResponse(bindings.ServiceMessage message) { 766 void handleResponse(bindings.ServiceMessage message) {
842 switch (message.header.type) { 767 switch (message.header.type) {
843 default: 768 default:
844 proxyError("Unexpected message type: ${message.header.type}"); 769 proxyError("Unexpected message type: ${message.header.type}");
845 close(immediate: true); 770 close(immediate: true);
846 break; 771 break;
847 } 772 }
848 } 773 }
849 774
775 @override
850 String toString() { 776 String toString() {
851 var superString = super.toString(); 777 var superString = super.toString();
852 return "_TraceCollectorProxyImpl($superString)"; 778 return "_TraceCollectorProxyControl($superString)";
853 } 779 }
854 } 780 }
855 781
856 782
857 class _TraceCollectorProxyCalls implements TraceCollector { 783 class TraceCollectorProxy extends bindings.Proxy
858 _TraceCollectorProxyImpl _proxyImpl; 784 implements TraceCollector {
785 TraceCollectorProxy.fromEndpoint(
786 core.MojoMessagePipeEndpoint endpoint)
787 : super(new _TraceCollectorProxyControl.fromEndpoint(endpoint));
859 788
860 _TraceCollectorProxyCalls(this._proxyImpl); 789 TraceCollectorProxy.fromHandle(core.MojoHandle handle)
861 void start(core.MojoDataPipeProducer stream, String categories) { 790 : super(new _TraceCollectorProxyControl.fromHandle(handle));
862 if (!_proxyImpl.isBound) {
863 _proxyImpl.proxyError("The Proxy is closed.");
864 return;
865 }
866 var params = new _TraceCollectorStartParams();
867 params.stream = stream;
868 params.categories = categories;
869 _proxyImpl.sendMessage(params, _traceCollectorMethodStartName);
870 }
871 void stopAndFlush() {
872 if (!_proxyImpl.isBound) {
873 _proxyImpl.proxyError("The Proxy is closed.");
874 return;
875 }
876 var params = new _TraceCollectorStopAndFlushParams();
877 _proxyImpl.sendMessage(params, _traceCollectorMethodStopAndFlushName);
878 }
879 }
880 791
792 TraceCollectorProxy.unbound()
793 : super(new _TraceCollectorProxyControl.unbound());
881 794
882 class TraceCollectorProxy implements bindings.ProxyBase { 795 static TraceCollectorProxy newFromEndpoint(
883 final bindings.Proxy impl; 796 core.MojoMessagePipeEndpoint endpoint) {
884 TraceCollector ptr; 797 assert(endpoint.setDescription("For TraceCollectorProxy"));
885 798 return new TraceCollectorProxy.fromEndpoint(endpoint);
886 TraceCollectorProxy(_TraceCollectorProxyImpl proxyImpl) :
887 impl = proxyImpl,
888 ptr = new _TraceCollectorProxyCalls(proxyImpl);
889
890 TraceCollectorProxy.fromEndpoint(
891 core.MojoMessagePipeEndpoint endpoint) :
892 impl = new _TraceCollectorProxyImpl.fromEndpoint(endpoint) {
893 ptr = new _TraceCollectorProxyCalls(impl);
894 }
895
896 TraceCollectorProxy.fromHandle(core.MojoHandle handle) :
897 impl = new _TraceCollectorProxyImpl.fromHandle(handle) {
898 ptr = new _TraceCollectorProxyCalls(impl);
899 }
900
901 TraceCollectorProxy.unbound() :
902 impl = new _TraceCollectorProxyImpl.unbound() {
903 ptr = new _TraceCollectorProxyCalls(impl);
904 } 799 }
905 800
906 factory TraceCollectorProxy.connectToService( 801 factory TraceCollectorProxy.connectToService(
907 bindings.ServiceConnector s, String url, [String serviceName]) { 802 bindings.ServiceConnector s, String url, [String serviceName]) {
908 TraceCollectorProxy p = new TraceCollectorProxy.unbound(); 803 TraceCollectorProxy p = new TraceCollectorProxy.unbound();
909 s.connectToService(url, p, serviceName); 804 s.connectToService(url, p, serviceName);
910 return p; 805 return p;
911 } 806 }
912 807
913 static TraceCollectorProxy newFromEndpoint( 808
914 core.MojoMessagePipeEndpoint endpoint) { 809 void start(core.MojoDataPipeProducer stream, String categories) {
915 assert(endpoint.setDescription("For TraceCollectorProxy")); 810 if (!ctrl.isBound) {
916 return new TraceCollectorProxy.fromEndpoint(endpoint); 811 ctrl.proxyError("The Proxy is closed.");
812 return;
813 }
814 var params = new _TraceCollectorStartParams();
815 params.stream = stream;
816 params.categories = categories;
817 ctrl.sendMessage(params,
818 _traceCollectorMethodStartName);
917 } 819 }
918 820 void stopAndFlush() {
919 String get serviceName => TraceCollector.serviceName; 821 if (!ctrl.isBound) {
920 822 ctrl.proxyError("The Proxy is closed.");
921 Future close({bool immediate: false}) => impl.close(immediate: immediate); 823 return;
922 824 }
923 Future responseOrError(Future f) => impl.responseOrError(f); 825 var params = new _TraceCollectorStopAndFlushParams();
924 826 ctrl.sendMessage(params,
925 Future get errorFuture => impl.errorFuture; 827 _traceCollectorMethodStopAndFlushName);
926
927 int get version => impl.version;
928
929 Future<int> queryVersion() => impl.queryVersion();
930
931 void requireVersion(int requiredVersion) {
932 impl.requireVersion(requiredVersion);
933 }
934
935 String toString() {
936 return "TraceCollectorProxy($impl)";
937 } 828 }
938 } 829 }
939 830
940 831
941 class TraceCollectorStub extends bindings.Stub { 832 class TraceCollectorStub extends bindings.Stub {
942 TraceCollector _impl; 833 TraceCollector _impl;
943 834
944 TraceCollectorStub.fromEndpoint( 835 TraceCollectorStub.fromEndpoint(
945 core.MojoMessagePipeEndpoint endpoint, [TraceCollector impl]) 836 core.MojoMessagePipeEndpoint endpoint, [TraceCollector impl])
946 : super.fromEndpoint(endpoint, autoBegin: impl != null) { 837 : super.fromEndpoint(endpoint, autoBegin: impl != null) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 static service_describer.ServiceDescription get serviceDescription { 909 static service_describer.ServiceDescription get serviceDescription {
1019 if (_cachedServiceDescription == null) { 910 if (_cachedServiceDescription == null) {
1020 _cachedServiceDescription = new _TraceCollectorServiceDescription(); 911 _cachedServiceDescription = new _TraceCollectorServiceDescription();
1021 } 912 }
1022 return _cachedServiceDescription; 913 return _cachedServiceDescription;
1023 } 914 }
1024 } 915 }
1025 916
1026 917
1027 918
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698