| 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" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 DISALLOW_COPY_AND_ASSIGN(DartTraceProvider); | 41 DISALLOW_COPY_AND_ASSIGN(DartTraceProvider); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 class DartTracingImpl { | 44 class DartTracingImpl { |
| 45 public: | 45 public: |
| 46 DartTracingImpl(); | 46 DartTracingImpl(); |
| 47 ~DartTracingImpl(); | 47 ~DartTracingImpl(); |
| 48 | 48 |
| 49 // This connects to the tracing service and registers ourselves to provide | 49 // This connects to the tracing service and registers ourselves to provide |
| 50 // tracing data on demand. | 50 // tracing data on demand. |
| 51 void Initialize(mojo::ApplicationImpl* app); | 51 void Initialize(mojo::Shell* shell); |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 DartTraceProvider provider_impl_; | 54 DartTraceProvider provider_impl_; |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(DartTracingImpl); | 56 DISALLOW_COPY_AND_ASSIGN(DartTracingImpl); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace dart | 59 } // namespace dart |
| 60 | 60 |
| 61 #endif // SERVICES_DART_DART_TRACING_H_ | 61 #endif // SERVICES_DART_DART_TRACING_H_ |
| OLD | NEW |