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_TRACING_TRACING_APP_H_ | 5 #ifndef SERVICES_TRACING_TRACING_APP_H_ |
6 #define SERVICES_TRACING_TRACING_APP_H_ | 6 #define SERVICES_TRACING_TRACING_APP_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
11 #include "mojo/common/interface_ptr_set.h" | 11 #include "mojo/common/interface_ptr_set.h" |
12 #include "mojo/public/cpp/application/application_delegate.h" | 12 #include "mojo/public/cpp/application/application_delegate.h" |
13 #include "mojo/public/cpp/application/application_impl.h" | 13 #include "mojo/public/cpp/application/application_impl.h" |
14 #include "mojo/public/cpp/bindings/strong_binding.h" | 14 #include "mojo/public/cpp/bindings/strong_binding.h" |
15 #include "mojo/services/tracing/public/interfaces/tracing.mojom.h" | 15 #include "mojo/services/tracing/interfaces/tracing.mojom.h" |
16 #include "services/tracing/trace_data_sink.h" | 16 #include "services/tracing/trace_data_sink.h" |
17 #include "services/tracing/trace_recorder_impl.h" | 17 #include "services/tracing/trace_recorder_impl.h" |
18 | 18 |
19 namespace tracing { | 19 namespace tracing { |
20 | 20 |
21 class TracingApp : public mojo::ApplicationDelegate, | 21 class TracingApp : public mojo::ApplicationDelegate, |
22 public mojo::InterfaceFactory<TraceCollector>, | 22 public mojo::InterfaceFactory<TraceCollector>, |
23 public TraceCollector { | 23 public TraceCollector { |
24 public: | 24 public: |
25 TracingApp(); | 25 TracingApp(); |
(...skipping 21 matching lines...) Expand all Loading... |
47 mojo::Binding<TraceCollector> collector_binding_; | 47 mojo::Binding<TraceCollector> collector_binding_; |
48 bool tracing_active_; | 48 bool tracing_active_; |
49 mojo::String tracing_categories_; | 49 mojo::String tracing_categories_; |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(TracingApp); | 51 DISALLOW_COPY_AND_ASSIGN(TracingApp); |
52 }; | 52 }; |
53 | 53 |
54 } // namespace tracing | 54 } // namespace tracing |
55 | 55 |
56 #endif // SERVICES_TRACING_TRACING_APP_H_ | 56 #endif // SERVICES_TRACING_TRACING_APP_H_ |
OLD | NEW |