Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: mojo/common/trace_controller_impl.h

Issue 791493006: De-client tracing.TraceController interface (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MOJO_COMMON_TRACING_CONTROLLER_IMPL_H_
6 #define MOJO_COMMON_TRACING_CONTROLLER_IMPL_H_
7
8 #include "base/memory/ref_counted_memory.h"
9 #include "mojo/public/cpp/bindings/interface_request.h"
10 #include "mojo/public/cpp/bindings/strong_binding.h"
11 #include "services/tracing/tracing.mojom.h"
12
13 namespace mojo {
14
15 class TraceControllerImpl : public tracing::TraceController {
16 public:
17 TraceControllerImpl();
18
19 ~TraceControllerImpl() override;
20
21 void Bind(InterfaceRequest<tracing::TraceController> request);
22
23 private:
24 // Overridden from tracing::TraceController:
25 void StartTracing(const String& categories,
26 tracing::TraceDataCollectorPtr collector) override;
27 void StopTracing() override;
28
29 void SendChunk(const scoped_refptr<base::RefCountedString>& events_str,
30 bool has_more_events);
31
32 tracing::TraceDataCollectorPtr collector_;
33 StrongBinding<tracing::TraceController> binding_;
34 };
35
36 } // namespace mojo
37
38 #endif // MOJO_COMMON_TRACING_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698