| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 _cachedServiceDescription; |
| 579 new _TraceProviderServiceDescription(); | 582 static service_describer.ServiceDescription get serviceDescription { |
| 583 if (_cachedServiceDescription == null) { |
| 584 _cachedServiceDescription = new _TraceProviderServiceDescription(); |
| 585 } |
| 586 return _cachedServiceDescription; |
| 587 } |
| 580 } | 588 } |
| 581 | 589 |
| 582 const int _TraceRecorder_recordName = 0; | 590 const int _TraceRecorder_recordName = 0; |
| 583 | 591 |
| 584 | 592 |
| 585 | 593 |
| 586 class _TraceRecorderServiceDescription implements service_describer.ServiceDescr
iption { | 594 class _TraceRecorderServiceDescription implements service_describer.ServiceDescr
iption { |
| 587 dynamic getTopLevelInterface([Function responseFactory]) => null; | 595 dynamic getTopLevelInterface([Function responseFactory]) => |
| 596 responseFactory(null); |
| 588 | 597 |
| 589 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 598 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 599 responseFactory(null); |
| 590 | 600 |
| 591 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 601 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 602 responseFactory(null); |
| 592 } | 603 } |
| 593 | 604 |
| 594 abstract class TraceRecorder { | 605 abstract class TraceRecorder { |
| 595 static const String serviceName = null; | 606 static const String serviceName = null; |
| 596 void record(String json); | 607 void record(String json); |
| 597 } | 608 } |
| 598 | 609 |
| 599 | 610 |
| 600 class _TraceRecorderProxyImpl extends bindings.Proxy { | 611 class _TraceRecorderProxyImpl extends bindings.Proxy { |
| 601 _TraceRecorderProxyImpl.fromEndpoint( | 612 _TraceRecorderProxyImpl.fromEndpoint( |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 _impl = d; | 763 _impl = d; |
| 753 } | 764 } |
| 754 | 765 |
| 755 String toString() { | 766 String toString() { |
| 756 var superString = super.toString(); | 767 var superString = super.toString(); |
| 757 return "TraceRecorderStub($superString)"; | 768 return "TraceRecorderStub($superString)"; |
| 758 } | 769 } |
| 759 | 770 |
| 760 int get version => 0; | 771 int get version => 0; |
| 761 | 772 |
| 762 service_describer.ServiceDescription get serviceDescription => | 773 static service_describer.ServiceDescription _cachedServiceDescription; |
| 763 new _TraceRecorderServiceDescription(); | 774 static service_describer.ServiceDescription get serviceDescription { |
| 775 if (_cachedServiceDescription == null) { |
| 776 _cachedServiceDescription = new _TraceRecorderServiceDescription(); |
| 777 } |
| 778 return _cachedServiceDescription; |
| 779 } |
| 764 } | 780 } |
| 765 | 781 |
| 766 const int _TraceCollector_startName = 0; | 782 const int _TraceCollector_startName = 0; |
| 767 const int _TraceCollector_stopAndFlushName = 1; | 783 const int _TraceCollector_stopAndFlushName = 1; |
| 768 | 784 |
| 769 | 785 |
| 770 | 786 |
| 771 class _TraceCollectorServiceDescription implements service_describer.ServiceDesc
ription { | 787 class _TraceCollectorServiceDescription implements service_describer.ServiceDesc
ription { |
| 772 dynamic getTopLevelInterface([Function responseFactory]) => null; | 788 dynamic getTopLevelInterface([Function responseFactory]) => |
| 789 responseFactory(null); |
| 773 | 790 |
| 774 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 791 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 792 responseFactory(null); |
| 775 | 793 |
| 776 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 794 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 795 responseFactory(null); |
| 777 } | 796 } |
| 778 | 797 |
| 779 abstract class TraceCollector { | 798 abstract class TraceCollector { |
| 780 static const String serviceName = "tracing::TraceCollector"; | 799 static const String serviceName = "tracing::TraceCollector"; |
| 781 void start(core.MojoDataPipeProducer stream, String categories); | 800 void start(core.MojoDataPipeProducer stream, String categories); |
| 782 void stopAndFlush(); | 801 void stopAndFlush(); |
| 783 } | 802 } |
| 784 | 803 |
| 785 | 804 |
| 786 class _TraceCollectorProxyImpl extends bindings.Proxy { | 805 class _TraceCollectorProxyImpl extends bindings.Proxy { |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 _impl = d; | 971 _impl = d; |
| 953 } | 972 } |
| 954 | 973 |
| 955 String toString() { | 974 String toString() { |
| 956 var superString = super.toString(); | 975 var superString = super.toString(); |
| 957 return "TraceCollectorStub($superString)"; | 976 return "TraceCollectorStub($superString)"; |
| 958 } | 977 } |
| 959 | 978 |
| 960 int get version => 0; | 979 int get version => 0; |
| 961 | 980 |
| 962 service_describer.ServiceDescription get serviceDescription => | 981 static service_describer.ServiceDescription _cachedServiceDescription; |
| 963 new _TraceCollectorServiceDescription(); | 982 static service_describer.ServiceDescription get serviceDescription { |
| 983 if (_cachedServiceDescription == null) { |
| 984 _cachedServiceDescription = new _TraceCollectorServiceDescription(); |
| 985 } |
| 986 return _cachedServiceDescription; |
| 987 } |
| 964 } | 988 } |
| 965 | 989 |
| 966 | 990 |
| 967 | 991 |
| OLD | NEW |