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 MOJO_SERVICES_TRACING_PUBLIC_CPP_TRACE_PROVIDER_IMPL_H_ | 5 #ifndef SERVICES_TRACING_PUBLIC_CPP_TRACE_PROVIDER_IMPL_H_ |
6 #define MOJO_SERVICES_TRACING_PUBLIC_CPP_TRACE_PROVIDER_IMPL_H_ | 6 #define SERVICES_TRACING_PUBLIC_CPP_TRACE_PROVIDER_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted_memory.h" | 9 #include "base/memory/ref_counted_memory.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "mojo/public/cpp/bindings/binding.h" | 11 #include "mojo/public/cpp/bindings/binding.h" |
12 #include "mojo/public/cpp/bindings/interface_request.h" | 12 #include "mojo/public/cpp/bindings/interface_request.h" |
13 #include "mojo/services/tracing/public/interfaces/tracing.mojom.h" | 13 #include "services/tracing/public/interfaces/tracing.mojom.h" |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 | 16 |
17 class TraceProviderImpl : public tracing::TraceProvider { | 17 class TraceProviderImpl : public tracing::TraceProvider { |
18 public: | 18 public: |
19 TraceProviderImpl(); | 19 TraceProviderImpl(); |
20 ~TraceProviderImpl() override; | 20 ~TraceProviderImpl() override; |
21 | 21 |
22 void Bind(InterfaceRequest<tracing::TraceProvider> request); | 22 void Bind(InterfaceRequest<tracing::TraceProvider> request); |
23 | 23 |
(...skipping 17 matching lines...) Expand all Loading... |
41 Binding<tracing::TraceProvider> binding_; | 41 Binding<tracing::TraceProvider> binding_; |
42 bool tracing_forced_; | 42 bool tracing_forced_; |
43 tracing::TraceRecorderPtr recorder_; | 43 tracing::TraceRecorderPtr recorder_; |
44 | 44 |
45 base::WeakPtrFactory<TraceProviderImpl> weak_factory_; | 45 base::WeakPtrFactory<TraceProviderImpl> weak_factory_; |
46 DISALLOW_COPY_AND_ASSIGN(TraceProviderImpl); | 46 DISALLOW_COPY_AND_ASSIGN(TraceProviderImpl); |
47 }; | 47 }; |
48 | 48 |
49 } // namespace mojo | 49 } // namespace mojo |
50 | 50 |
51 #endif // MOJO_SERVICES_TRACING_PUBLIC_CPP_TRACE_PROVIDER_IMPL_H_ | 51 #endif // SERVICES_TRACING_PUBLIC_CPP_TRACE_PROVIDER_IMPL_H_ |
OLD | NEW |