Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file | |
| 4 | |
| 5 part of models; | |
| 6 | |
| 7 enum SampleProfileTag { | |
| 8 UserVM, | |
|
Cutch
2016/08/04 15:35:52
lowerCamelCase (here and elsewhere)
cbernaschina
2016/08/04 19:45:08
Done.
| |
| 9 UserOnly, | |
| 10 VMUser, | |
| 11 VMOnly, | |
| 12 None | |
| 13 } | |
| 14 | |
| 15 enum SampleProfileLoadingStatus { | |
| 16 Disabled, | |
| 17 Fetching, | |
| 18 Loading, | |
| 19 Loaded | |
| 20 } | |
| 21 | |
| 22 abstract class SampleProfileLoadingProgressEvent { | |
| 23 SampleProfileLoadingProgress get progress; | |
| 24 } | |
| 25 | |
| 26 abstract class SampleProfileLoadingProgress { | |
| 27 SampleProfileLoadingStatus get status; | |
| 28 double get progress; | |
| 29 Duration get fetchingTime; | |
| 30 Duration get loadingTime; | |
| 31 SampleProfile get profile; | |
| 32 | |
| 33 Stream<SampleProfileLoadingProgressEvent> get onProgress; | |
| 34 } | |
| 35 | |
| 36 abstract class ClassSampleProfileRepository { | |
| 37 SampleProfileLoadingProgress get(ClassRef cls, | |
| 38 SampleProfileTag tag, {bool clear: false}); | |
| 39 } | |
| 40 | |
| 41 abstract class IsolateSampleProfileRepository { | |
| 42 SampleProfileLoadingProgress get(IsolateRef cls, | |
| 43 SampleProfileTag tag, {bool clear: false, bool forceFetch: false}); | |
| 44 } | |
| OLD | NEW |