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_SERVICE_H_ | 5 #ifndef SERVICES_TRACING_SERVICE_H_ |
6 #define SERVICES_TRACING_SERVICE_H_ | 6 #define SERVICES_TRACING_SERVICE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
14 #include "mojo/public/cpp/bindings/binding_set.h" | 14 #include "mojo/public/cpp/bindings/binding_set.h" |
15 #include "mojo/public/cpp/bindings/interface_ptr_set.h" | 15 #include "mojo/public/cpp/bindings/interface_ptr_set.h" |
16 #include "mojo/public/cpp/bindings/strong_binding.h" | 16 #include "mojo/public/cpp/bindings/strong_binding.h" |
17 #include "services/shell/public/cpp/interface_factory.h" | 17 #include "services/service_manager/public/cpp/interface_factory.h" |
18 #include "services/shell/public/cpp/service.h" | 18 #include "services/service_manager/public/cpp/service.h" |
19 #include "services/tracing/data_sink.h" | 19 #include "services/tracing/data_sink.h" |
20 #include "services/tracing/public/interfaces/tracing.mojom.h" | 20 #include "services/tracing/public/interfaces/tracing.mojom.h" |
21 #include "services/tracing/recorder.h" | 21 #include "services/tracing/recorder.h" |
22 | 22 |
23 namespace tracing { | 23 namespace tracing { |
24 | 24 |
25 class Service | 25 class Service |
26 : public shell::Service, | 26 : public shell::Service, |
27 public shell::InterfaceFactory<mojom::Factory>, | 27 public shell::InterfaceFactory<mojom::Factory>, |
28 public shell::InterfaceFactory<mojom::Collector>, | 28 public shell::InterfaceFactory<mojom::Collector>, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 mojom::StartupPerformanceTimes startup_performance_times_; | 84 mojom::StartupPerformanceTimes startup_performance_times_; |
85 bool tracing_active_; | 85 bool tracing_active_; |
86 mojo::String tracing_categories_; | 86 mojo::String tracing_categories_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(Service); | 88 DISALLOW_COPY_AND_ASSIGN(Service); |
89 }; | 89 }; |
90 | 90 |
91 } // namespace tracing | 91 } // namespace tracing |
92 | 92 |
93 #endif // SERVICES_TRACING_SERVICE_H_ | 93 #endif // SERVICES_TRACING_SERVICE_H_ |
OLD | NEW |