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_RECORDER_H_ | 5 #ifndef SERVICES_TRACING_RECORDER_H_ |
6 #define SERVICES_TRACING_RECORDER_H_ | 6 #define SERVICES_TRACING_RECORDER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "mojo/public/cpp/bindings/binding.h" | 9 #include "mojo/public/cpp/bindings/binding.h" |
10 #include "mojo/public/cpp/bindings/string.h" | |
11 #include "services/tracing/data_sink.h" | 10 #include "services/tracing/data_sink.h" |
12 #include "services/tracing/public/interfaces/tracing.mojom.h" | 11 #include "services/tracing/public/interfaces/tracing.mojom.h" |
13 | 12 |
14 namespace tracing { | 13 namespace tracing { |
15 | 14 |
16 class Recorder : public mojom::Recorder { | 15 class Recorder : public mojom::Recorder { |
17 public: | 16 public: |
18 Recorder(mojom::RecorderRequest request, DataSink* sink); | 17 Recorder(mojom::RecorderRequest request, DataSink* sink); |
19 ~Recorder() override; | 18 ~Recorder() override; |
20 | 19 |
(...skipping 12 matching lines...) Expand all Loading... |
33 | 32 |
34 DataSink* sink_; | 33 DataSink* sink_; |
35 mojo::Binding<mojom::Recorder> binding_; | 34 mojo::Binding<mojom::Recorder> binding_; |
36 | 35 |
37 DISALLOW_COPY_AND_ASSIGN(Recorder); | 36 DISALLOW_COPY_AND_ASSIGN(Recorder); |
38 }; | 37 }; |
39 | 38 |
40 } // namespace tracing | 39 } // namespace tracing |
41 | 40 |
42 #endif // SERVICES_TRACING_RECORDER_H_ | 41 #endif // SERVICES_TRACING_RECORDER_H_ |
OLD | NEW |