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 18 matching lines...) Expand all Loading... |
29 public shell::InterfaceFactory<mojom::StartupPerformanceDataCollector>, | 29 public shell::InterfaceFactory<mojom::StartupPerformanceDataCollector>, |
30 public mojom::Factory, | 30 public mojom::Factory, |
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 // shell::Service implementation. | 38 // shell::Service implementation. |
39 bool OnConnect(shell::Connection* connection) override; | 39 bool OnConnect(const shell::Identity& remote_identity, |
| 40 shell::InterfaceRegistry* registry) override; |
40 bool OnStop() override; | 41 bool OnStop() override; |
41 | 42 |
42 // shell::InterfaceFactory<mojom::Factory>: | 43 // shell::InterfaceFactory<mojom::Factory>: |
43 void Create(const shell::Identity& remote_identity, | 44 void Create(const shell::Identity& remote_identity, |
44 mojom::FactoryRequest request) override; | 45 mojom::FactoryRequest request) override; |
45 | 46 |
46 // shell::InterfaceFactory<mojom::Collector>: | 47 // shell::InterfaceFactory<mojom::Collector>: |
47 void Create(const shell::Identity& remote_identity, | 48 void Create(const shell::Identity& remote_identity, |
48 mojom::CollectorRequest request) override; | 49 mojom::CollectorRequest request) override; |
49 | 50 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 mojom::StartupPerformanceTimes startup_performance_times_; | 84 mojom::StartupPerformanceTimes startup_performance_times_; |
84 bool tracing_active_; | 85 bool tracing_active_; |
85 mojo::String tracing_categories_; | 86 mojo::String tracing_categories_; |
86 | 87 |
87 DISALLOW_COPY_AND_ASSIGN(Service); | 88 DISALLOW_COPY_AND_ASSIGN(Service); |
88 }; | 89 }; |
89 | 90 |
90 } // namespace tracing | 91 } // namespace tracing |
91 | 92 |
92 #endif // SERVICES_TRACING_SERVICE_H_ | 93 #endif // SERVICES_TRACING_SERVICE_H_ |
OLD | NEW |