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

Side by Side Diff: chromeos/dbus/arc_trace_agent.h

Issue 2400163003: arc: enable Android tracing in verified-boot mode (Closed)
Patch Set: add FakeArcTraceAgent for linux and test Created 3 years, 12 months 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 2016 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 CHROMEOS_DBUS_ARC_TRACE_AGENT_H_
6 #define CHROMEOS_DBUS_ARC_TRACE_AGENT_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "base/task_runner.h"
12 #include "base/trace_event/trace_event.h"
13 #include "base/trace_event/tracing_agent.h"
14 #include "chromeos/chromeos_export.h"
15 #include "chromeos/dbus/dbus_client.h"
16
17 namespace chromeos {
18
19 // ArcTraceAgent is used to commuicate with ArcTraceService and debugd to
20 // trigger tracing and collect trace logs.
21 class CHROMEOS_EXPORT ArcTraceAgent : public base::trace_event::TracingAgent,
22 public DBusClient {
23 public:
24 class Delegate {
25 public:
26 virtual void StartTracing(
27 const base::trace_event::TraceConfig& trace_config) = 0;
28
29 virtual void StopTracing() = 0;
30 };
31
32 ~ArcTraceAgent() override = default;
33
34 virtual void SetDelegate(Delegate* delegate) = 0;
35
36 virtual void SetStopAgentTracingTaskRunner(
37 scoped_refptr<base::TaskRunner> task_runner) = 0;
38
39 static ArcTraceAgent* Create();
40
41 protected:
42 // Create() should be used instead.
43 ArcTraceAgent() {}
Luis Héctor Chávez 2016/12/28 17:21:58 nit: ArcTraceAgent(); and then ArcTraceAgent() =
shunhsingou 2016/12/29 09:40:29 Done.
44
45 private:
46 DISALLOW_COPY_AND_ASSIGN(ArcTraceAgent);
47 };
48
49 } // namespace chromeos
50
51 #endif // CHROMEOS_DBUS_ARC_TRACE_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698