OLD | NEW |
---|---|
(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_ | |
OLD | NEW |