OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_COMMON_TRACING_IMPL_H_ | 5 #ifndef MOJO_COMMON_TRACING_IMPL_H_ |
6 #define MOJO_COMMON_TRACING_IMPL_H_ | 6 #define MOJO_COMMON_TRACING_IMPL_H_ |
7 | 7 |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
8 #include "base/macros.h" | 11 #include "base/macros.h" |
9 #include "mojo/common/trace_provider_impl.h" | 12 #include "mojo/common/trace_provider_impl.h" |
10 | 13 |
11 namespace mojo { | 14 namespace mojo { |
12 | 15 |
13 class ApplicationImpl; | 16 class Shell; |
14 | 17 |
15 class TracingImpl { | 18 class TracingImpl { |
16 public: | 19 public: |
17 TracingImpl(); | 20 TracingImpl(); |
18 ~TracingImpl(); | 21 ~TracingImpl(); |
19 | 22 |
20 // This connects to the tracing service and registers ourselves to provide | 23 // This connects to the tracing service and registers ourselves to provide |
21 // tracing data on demand. | 24 // tracing data on demand. |shell| will not be stored (so it need only be |
22 void Initialize(ApplicationImpl* app); | 25 // valid for this call). |args| may be null, but if not should typically point |
| 26 // to the applications "command line". |
| 27 void Initialize(Shell* shell, const std::vector<std::string>* args); |
23 | 28 |
24 private: | 29 private: |
25 TraceProviderImpl provider_impl_; | 30 TraceProviderImpl provider_impl_; |
26 | 31 |
27 DISALLOW_COPY_AND_ASSIGN(TracingImpl); | 32 DISALLOW_COPY_AND_ASSIGN(TracingImpl); |
28 }; | 33 }; |
29 | 34 |
30 } // namespace mojo | 35 } // namespace mojo |
31 | 36 |
32 #endif // MOJO_COMMON_TRACING_IMPL_H_ | 37 #endif // MOJO_COMMON_TRACING_IMPL_H_ |
OLD | NEW |