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

Side by Side Diff: content/browser/tracing/battor_power_trace_provider.h

Issue 1526883005: [Tracing Clock Sync] Implement clock sync in Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review fix Created 5 years 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
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_
OLDNEW
« no previous file with comments | « base/trace_event/tracing_agent.h ('k') | content/browser/tracing/battor_power_trace_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698