blob: 3f9225a9d07e261ea7e595e6c910dc08fcf8b08e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MOJO_COMMON_TRACING_CONTROLLER_IMPL_H_
#define MOJO_COMMON_TRACING_CONTROLLER_IMPL_H_
#include "base/memory/ref_counted_memory.h"
#include "mojo/services/tracing/tracing.mojom.h"
#include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
#include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
namespace mojo {
class TraceControllerImpl : public tracing::TraceController {
public:
explicit TraceControllerImpl(
InterfaceRequest<tracing::TraceController> request);
~TraceControllerImpl() override;
private:
// tracing::TraceController implementation:
void StartTracing(const String& categories,
tracing::TraceDataCollectorPtr collector) override;
void StopTracing() override;
void SendChunk(const scoped_refptr<base::RefCountedString>& events_str,
bool has_more_events);
tracing::TraceDataCollectorPtr collector_;
StrongBinding<tracing::TraceController> binding_;
DISALLOW_COPY_AND_ASSIGN(TraceControllerImpl);
};
} // namespace mojo
#endif // MOJO_COMMON_TRACING_CONTROLLER_IMPL_H_
|