| 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/application/public/cpp/interface_factory.h" |
| 9 #include "mojo/services/tracing/tracing.mojom.h" | 10 #include "mojo/services/tracing/tracing.mojom.h" |
| 10 #include "third_party/mojo/src/mojo/public/cpp/application/interface_factory.h" | |
| 11 | 11 |
| 12 namespace mojo { | 12 namespace mojo { |
| 13 | 13 |
| 14 class ApplicationImpl; | 14 class ApplicationImpl; |
| 15 | 15 |
| 16 class TracingImpl : public InterfaceFactory<tracing::TraceController> { | 16 class TracingImpl : public InterfaceFactory<tracing::TraceController> { |
| 17 public: | 17 public: |
| 18 TracingImpl(); | 18 TracingImpl(); |
| 19 ~TracingImpl() override; | 19 ~TracingImpl() override; |
| 20 | 20 |
| 21 // This connects to the tracing service and registers ourselves to provide | 21 // This connects to the tracing service and registers ourselves to provide |
| 22 // tracing data on demand. | 22 // tracing data on demand. |
| 23 void Initialize(ApplicationImpl* app); | 23 void Initialize(ApplicationImpl* app); |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 // InterfaceFactory<tracing::TraceController> implementation. | 26 // InterfaceFactory<tracing::TraceController> implementation. |
| 27 void Create(ApplicationConnection* connection, | 27 void Create(ApplicationConnection* connection, |
| 28 InterfaceRequest<tracing::TraceController> request) override; | 28 InterfaceRequest<tracing::TraceController> request) override; |
| 29 | 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(TracingImpl); | 30 DISALLOW_COPY_AND_ASSIGN(TracingImpl); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace mojo | 33 } // namespace mojo |
| 34 | 34 |
| 35 #endif // MOJO_COMMON_TRACING_IMPL_H_ | 35 #endif // MOJO_COMMON_TRACING_IMPL_H_ |
| OLD | NEW |