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

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: Use struct instead of pair to save category data and fix lints 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 <string>
9
10 #include "base/macros.h"
11 #include "base/task_runner.h"
12 #include "base/trace_event/tracing_agent.h"
13
14 namespace base {
Yusuke Sato 2016/10/12 05:58:12 spaces between 14 and 15, 16 and 17 are missing.
shunhsingou 2016/12/22 04:04:34 The forward declaration is now removed.
15 template <typename Type>
16 struct DefaultSingletonTraits;
17 }
Yusuke Sato 2016/10/12 05:58:12 } // namespace base ?
shunhsingou 2016/12/22 04:04:34 Done.
18
19 namespace chromeos {
20
21 // A wrapper for controlling system tracing on Chrome OS.
22 class SysTraceAgent : public base::trace_event::TracingAgent {
23 public:
24 // Gets the Singleton of this class.
25 static SysTraceAgent* GetInstance();
26
27 // Overrides TracingAgent functions.
28 std::string GetTracingAgentName() override;
29
30 std::string GetTraceEventLabel() override;
31
32 void StopAgentTracing(const StopAgentTracingCallback& callback) override;
33
34 void StartAgentTracing(const base::trace_event::TraceConfig& trace_config,
35 const StartAgentTracingCallback& callback) override;
36
37 void SetStopAgentTracingTaskRunner(
38 scoped_refptr<base::TaskRunner> task_runner);
Yusuke Sato 2016/10/12 05:58:12 IWYU: #include for scoped_refptr<> missing? (IWYU
shunhsingou 2016/12/22 04:04:34 Done.
39
40 private:
41 // This allows constructor and destructor to be private and usable only
42 // by the Singleton class.
43 friend struct base::DefaultSingletonTraits<SysTraceAgent>;
44
45 SysTraceAgent();
46 ~SysTraceAgent() override;
47
48 DISALLOW_COPY_AND_ASSIGN(SysTraceAgent);
49 };
50
51 } // namespace chromeos
52
53 #endif // CHROME_BROWSER_CHROMEOS_TRACE_SYS_TRACE_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698