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> |
(...skipping 20 matching lines...) Expand all Loading... |
31 public mojom::Collector, | 31 public mojom::Collector, |
32 public mojom::StartupPerformanceDataCollector { | 32 public mojom::StartupPerformanceDataCollector { |
33 public: | 33 public: |
34 Service(); | 34 Service(); |
35 ~Service() override; | 35 ~Service() override; |
36 | 36 |
37 private: | 37 private: |
38 // service_manager::Service implementation. | 38 // service_manager::Service implementation. |
39 bool OnConnect(const service_manager::ServiceInfo& remote_info, | 39 bool OnConnect(const service_manager::ServiceInfo& remote_info, |
40 service_manager::InterfaceRegistry* registry) override; | 40 service_manager::InterfaceRegistry* registry) override; |
41 bool OnStop() override; | 41 bool OnServiceManagerConnectionLost() override; |
42 | 42 |
43 // service_manager::InterfaceFactory<mojom::Factory>: | 43 // service_manager::InterfaceFactory<mojom::Factory>: |
44 void Create(const service_manager::Identity& remote_identity, | 44 void Create(const service_manager::Identity& remote_identity, |
45 mojom::FactoryRequest request) override; | 45 mojom::FactoryRequest request) override; |
46 | 46 |
47 // service_manager::InterfaceFactory<mojom::Collector>: | 47 // service_manager::InterfaceFactory<mojom::Collector>: |
48 void Create(const service_manager::Identity& remote_identity, | 48 void Create(const service_manager::Identity& remote_identity, |
49 mojom::CollectorRequest request) override; | 49 mojom::CollectorRequest request) override; |
50 | 50 |
51 // service_manager::InterfaceFactory<mojom::StartupPerformanceDataCollector>: | 51 // service_manager::InterfaceFactory<mojom::StartupPerformanceDataCollector>: |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 mojom::StartupPerformanceTimes startup_performance_times_; | 83 mojom::StartupPerformanceTimes startup_performance_times_; |
84 bool tracing_active_; | 84 bool tracing_active_; |
85 std::string tracing_categories_; | 85 std::string tracing_categories_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(Service); | 87 DISALLOW_COPY_AND_ASSIGN(Service); |
88 }; | 88 }; |
89 | 89 |
90 } // namespace tracing | 90 } // namespace tracing |
91 | 91 |
92 #endif // SERVICES_TRACING_SERVICE_H_ | 92 #endif // SERVICES_TRACING_SERVICE_H_ |
OLD | NEW |