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_TRACING_APP_H_ | 5 #ifndef MOJO_SERVICES_TRACING_TRACING_APP_H_ |
6 #define MOJO_SERVICES_TRACING_TRACING_APP_H_ | 6 #define MOJO_SERVICES_TRACING_TRACING_APP_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 public TraceCollector, | 27 public TraceCollector, |
28 public mojo::InterfaceFactory<StartupPerformanceDataCollector>, | 28 public mojo::InterfaceFactory<StartupPerformanceDataCollector>, |
29 public StartupPerformanceDataCollector { | 29 public StartupPerformanceDataCollector { |
30 public: | 30 public: |
31 TracingApp(); | 31 TracingApp(); |
32 ~TracingApp() override; | 32 ~TracingApp() override; |
33 | 33 |
34 private: | 34 private: |
35 // mojo::ShellClient implementation. | 35 // mojo::ShellClient implementation. |
36 bool AcceptConnection(mojo::Connection* connection) override; | 36 bool AcceptConnection(mojo::Connection* connection) override; |
37 void ShellConnectionLost() override; | 37 bool ShellConnectionLost() override; |
38 | 38 |
39 // mojo::InterfaceFactory<TraceCollector> implementation. | 39 // mojo::InterfaceFactory<TraceCollector> implementation. |
40 void Create(mojo::Connection* connection, | 40 void Create(mojo::Connection* connection, |
41 mojo::InterfaceRequest<TraceCollector> request) override; | 41 mojo::InterfaceRequest<TraceCollector> request) override; |
42 | 42 |
43 // mojo::InterfaceFactory<StartupPerformanceDataCollector> implementation. | 43 // mojo::InterfaceFactory<StartupPerformanceDataCollector> implementation. |
44 void Create( | 44 void Create( |
45 mojo::Connection* connection, | 45 mojo::Connection* connection, |
46 mojo::InterfaceRequest<StartupPerformanceDataCollector> request) override; | 46 mojo::InterfaceRequest<StartupPerformanceDataCollector> request) override; |
47 | 47 |
(...skipping 24 matching lines...) Expand all Loading... |
72 StartupPerformanceTimes startup_performance_times_; | 72 StartupPerformanceTimes startup_performance_times_; |
73 bool tracing_active_; | 73 bool tracing_active_; |
74 mojo::String tracing_categories_; | 74 mojo::String tracing_categories_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(TracingApp); | 76 DISALLOW_COPY_AND_ASSIGN(TracingApp); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace tracing | 79 } // namespace tracing |
80 | 80 |
81 #endif // MOJO_SERVICES_TRACING_TRACING_APP_H_ | 81 #endif // MOJO_SERVICES_TRACING_TRACING_APP_H_ |
OLD | NEW |