OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
nednguyen
2015/12/21 17:04:15
Can we remove this file? I think it's replaced by
Zhen Wang
2015/12/21 17:10:21
This will be replaced by battor_agent.h. Since it
shatch
2015/12/21 17:10:23
I'm fine with keeping this to house all the intern
| |
5 #ifndef CONTENT_BROWSER_TRACING_BATTOR_POWER_TRACE_PROVIDER_H_ | 5 #ifndef CONTENT_BROWSER_TRACING_BATTOR_POWER_TRACE_PROVIDER_H_ |
6 #define CONTENT_BROWSER_TRACING_BATTOR_POWER_TRACE_PROVIDER_H_ | 6 #define CONTENT_BROWSER_TRACING_BATTOR_POWER_TRACE_PROVIDER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 // This class handles the connection with the battor h/w using | 14 // This class handles the connection with the battor h/w using |
15 // chrome serial port interfaces. | 15 // chrome serial port interfaces. |
16 // TODO (aschulman) port over battor C code. | 16 // TODO(charliea): port over battor C code. |
17 class BattorPowerTraceProvider { | 17 class BattorPowerTraceProvider { |
18 public: | 18 public: |
19 BattorPowerTraceProvider(); | 19 BattorPowerTraceProvider(); |
20 bool IsConnected(); | 20 bool IsConnected(); |
21 bool StartTracing(); | 21 bool StartTracing(); |
22 bool StopTracing(); | 22 bool StopTracing(); |
23 void RecordClockSyncMarker(int sync_id); | |
23 void GetLog(std::string* log_str); | 24 void GetLog(std::string* log_str); |
24 ~BattorPowerTraceProvider(); | 25 ~BattorPowerTraceProvider(); |
25 | 26 |
26 private: | 27 private: |
27 DISALLOW_COPY_AND_ASSIGN(BattorPowerTraceProvider); | 28 DISALLOW_COPY_AND_ASSIGN(BattorPowerTraceProvider); |
28 }; | 29 }; |
29 } | 30 } |
30 #endif // CONTENT_BROWSER_TRACING_BATTOR_POWER_TRACE_PROVIDER_H_ | 31 #endif // CONTENT_BROWSER_TRACING_BATTOR_POWER_TRACE_PROVIDER_H_ |
OLD | NEW |