Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / mojo / common / trace_controller_impl.h
blob3f9225a9d07e261ea7e595e6c910dc08fcf8b08e
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
3 // found in the LICENSE file.
5 #ifndef MOJO_COMMON_TRACING_CONTROLLER_IMPL_H_
6 #define MOJO_COMMON_TRACING_CONTROLLER_IMPL_H_
8 #include "base/memory/ref_counted_memory.h"
9 #include "mojo/services/tracing/tracing.mojom.h"
10 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
13 namespace mojo {
15 class TraceControllerImpl : public tracing::TraceController {
16 public:
17 explicit TraceControllerImpl(
18 InterfaceRequest<tracing::TraceController> request);
20 ~TraceControllerImpl() override;
22 private:
23 // tracing::TraceController implementation:
24 void StartTracing(const String& categories,
25 tracing::TraceDataCollectorPtr collector) override;
26 void StopTracing() override;
28 void SendChunk(const scoped_refptr<base::RefCountedString>& events_str,
29 bool has_more_events);
31 tracing::TraceDataCollectorPtr collector_;
32 StrongBinding<tracing::TraceController> binding_;
34 DISALLOW_COPY_AND_ASSIGN(TraceControllerImpl);
37 } // namespace mojo
39 #endif // MOJO_COMMON_TRACING_CONTROLLER_IMPL_H_