[refactor] More post-NSS WebCrypto cleanups (utility functions).
[chromium-blink-merge.git] / content / browser / tracing / battor_power_trace_provider.h
blob26ab3e01e308184f2c4402081157c455a973beed
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_TRACING_BATTOR_POWER_TRACE_PROVIDER_H_
6 #define CONTENT_BROWSER_TRACING_BATTOR_POWER_TRACE_PROVIDER_H_
8 #include <string>
10 #include "base/macros.h"
12 namespace content {
14 // This class handles the connection with the battor h/w using
15 // chrome serial port interfaces.
16 // TODO (aschulman) port over battor C code.
17 class BattorPowerTraceProvider {
18 public:
19 BattorPowerTraceProvider();
20 bool IsConnected();
21 bool StartTracing();
22 bool StopTracing();
23 void GetLog(std::string* log_str);
24 ~BattorPowerTraceProvider();
26 private:
27 DISALLOW_COPY_AND_ASSIGN(BattorPowerTraceProvider);
30 #endif // CONTENT_BROWSER_TRACING_BATTOR_POWER_TRACE_PROVIDER_H_