| Index: tools/battor_agent/battor_connection_impl.h
|
| diff --git a/tools/battor_agent/battor_connection_impl.h b/tools/battor_agent/battor_connection_impl.h
|
| index e0ce5a20ffaebed0e37b2a6aa95f98db490fe13b..0631451beda0a698f03c956d1dfa2fa8bc604965 100644
|
| --- a/tools/battor_agent/battor_connection_impl.h
|
| +++ b/tools/battor_agent/battor_connection_impl.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef TOOLS_BATTOR_AGENT_BATTOR_CONNECTION_IMPL_H_
|
| #define TOOLS_BATTOR_AGENT_BATTOR_CONNECTION_IMPL_H_
|
|
|
| +#include <fstream>
|
| #include <vector>
|
|
|
| #include "base/callback_forward.h"
|
| @@ -75,6 +76,9 @@ class BattOrConnectionImpl
|
| // Internal callback for when bytes are sent.
|
| void OnBytesSent(int bytes_sent, device::serial::SendError error);
|
|
|
| + // Appends |str| to the serial log file if it exists.
|
| + void LogSerial(const std::string& str);
|
| +
|
| // The path of the BattOr.
|
| std::string path_;
|
|
|
| @@ -93,6 +97,8 @@ class BattOrConnectionImpl
|
| scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner_;
|
| scoped_refptr<base::SingleThreadTaskRunner> ui_thread_task_runner_;
|
|
|
| + std::fstream serial_log_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(BattOrConnectionImpl);
|
| };
|
|
|
|
|