OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef SERVICES_DART_DART_TRACING_H_ | 5 #ifndef SERVICES_DART_DART_TRACING_H_ |
6 #define SERVICES_DART_DART_TRACING_H_ | 6 #define SERVICES_DART_DART_TRACING_H_ |
7 | 7 |
8 #include "base/trace_event/trace_event.h" | 8 #include "base/trace_event/trace_event.h" |
9 #include "mojo/common/tracing_impl.h" | 9 #include "mojo/common/tracing_impl.h" |
10 #include "mojo/public/cpp/bindings/interface_request.h" | 10 #include "mojo/public/cpp/bindings/interface_request.h" |
11 #include "mojo/services/tracing/public/interfaces/tracing.mojom.h" | 11 #include "mojo/services/tracing/interfaces/tracing.mojom.h" |
12 | 12 |
13 namespace dart { | 13 namespace dart { |
14 | 14 |
15 class DartTimelineController { | 15 class DartTimelineController { |
16 public: | 16 public: |
17 static void Enable(const mojo::String& categories); | 17 static void Enable(const mojo::String& categories); |
18 static void EnableAll(); | 18 static void EnableAll(); |
19 static void Disable(); | 19 static void Disable(); |
20 }; | 20 }; |
21 | 21 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 void Create(mojo::ApplicationConnection* connection, | 53 void Create(mojo::ApplicationConnection* connection, |
54 mojo::InterfaceRequest<tracing::TraceProvider> request) override; | 54 mojo::InterfaceRequest<tracing::TraceProvider> request) override; |
55 private: | 55 private: |
56 DartTraceProvider provider_impl_; | 56 DartTraceProvider provider_impl_; |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(DartTracingImpl); | 58 DISALLOW_COPY_AND_ASSIGN(DartTracingImpl); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace dart | 61 } // namespace dart |
62 | 62 |
63 #endif // SERVICES_DART_DART_TRACING_H_ | 63 #endif // SERVICES_DART_DART_TRACING_H_ |
OLD | NEW |