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

Side by Side Diff: chrome/browser/chromeos/trace/sys_trace_agent.h

Issue 2400163003: arc: enable Android tracing in verified-boot mode (Closed)
Patch Set: arc: enable Android framework tracing in chrome://tracing Created 4 years, 2 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 CHROME_BROWSER_CHROMEOS_TRACE_SYS_TRACE_AGENT_H_
6 #define CHROME_BROWSER_CHROMEOS_TRACE_SYS_TRACE_AGENT_H_
7
8 #include "base/macros.h"
9 #include "base/task_runner.h"
10 #include "base/trace_event/tracing_agent.h"
11
12 namespace base {
13 template <typename Type>
14 struct DefaultSingletonTraits;
15 }
16
17 namespace chromeos {
18
19 // A wrapper for controlling system tracing on Chrome OS.
20 class SysTraceAgent : public base::trace_event::TracingAgent {
21
Luis Héctor Chávez 2016/10/11 03:38:49 Can you run `git cl format` and `git cl lint`?
shunhsingou 2016/10/11 07:22:05 Done.
22 public:
23 // Gets the Singleton of this class.
24 static SysTraceAgent* GetInstance();
25
26 // Overrides TracingAgent functions.
27 std::string GetTracingAgentName() override;
28
29 std::string GetTraceEventLabel() override;
30
31 void StopAgentTracing(const StopAgentTracingCallback& callback) override;
32
33 void StartAgentTracing(const base::trace_event::TraceConfig& trace_config,
34 const StartAgentTracingCallback& callback) override;
35
36 void SetStopAgentTracingTaskRunner(
37 scoped_refptr<base::TaskRunner> task_runner);
38
39 private:
40 // This allows constructor and destructor to be private and usable only
41 // by the Singleton class.
42 friend struct base::DefaultSingletonTraits<SysTraceAgent>;
43
44 SysTraceAgent();
45 ~SysTraceAgent() override;
46
47 DISALLOW_COPY_AND_ASSIGN(SysTraceAgent);
48 };
49
50 } // namespace chromeos
51
52 #endif // CHROME_BROWSER_CHROMEOS_TRACE_SYS_TRACE_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698