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 #ifndef MOJO_COMMON_TRACING_IMPL_H_ | 5 #ifndef MOJO_COMMON_TRACING_IMPL_H_ |
6 #define MOJO_COMMON_TRACING_IMPL_H_ | 6 #define MOJO_COMMON_TRACING_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "mojo/common/trace_provider_impl.h" | 9 #include "mojo/common/trace_provider_impl.h" |
10 #include "mojo/public/cpp/application/service_provider_impl.h" | |
11 | 10 |
12 namespace mojo { | 11 namespace mojo { |
13 | 12 |
14 class ApplicationImpl; | 13 class ApplicationImpl; |
15 | 14 |
16 class TracingImpl { | 15 class TracingImpl { |
17 public: | 16 public: |
18 TracingImpl(); | 17 TracingImpl(); |
19 ~TracingImpl(); | 18 ~TracingImpl(); |
20 | 19 |
21 // This connects to the tracing service and registers ourselves to provide | 20 // This connects to the tracing service and registers ourselves to provide |
22 // tracing data on demand. | 21 // tracing data on demand. |
23 void Initialize(ApplicationImpl* app); | 22 void Initialize(ApplicationImpl* app); |
24 | 23 |
25 private: | 24 private: |
26 TraceProviderImpl provider_impl_; | 25 TraceProviderImpl provider_impl_; |
27 | 26 |
28 DISALLOW_COPY_AND_ASSIGN(TracingImpl); | 27 DISALLOW_COPY_AND_ASSIGN(TracingImpl); |
29 }; | 28 }; |
30 | 29 |
31 } // namespace mojo | 30 } // namespace mojo |
32 | 31 |
33 #endif // MOJO_COMMON_TRACING_IMPL_H_ | 32 #endif // MOJO_COMMON_TRACING_IMPL_H_ |
OLD | NEW |