| Index: tools/battor_agent/battor_connection_impl.cc
|
| diff --git a/tools/battor_agent/battor_connection_impl.cc b/tools/battor_agent/battor_connection_impl.cc
|
| index cc113a982906f354db84011fe34451bed2c0327e..787c8e0247864844ff133292238e716212779129 100644
|
| --- a/tools/battor_agent/battor_connection_impl.cc
|
| +++ b/tools/battor_agent/battor_connection_impl.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "tools/battor_agent/battor_connection_impl.h"
|
|
|
| +#include <iostream>
|
| +
|
| #include "base/bind.h"
|
| #include "base/bind_helpers.h"
|
| #include "base/command_line.h"
|
| @@ -181,6 +183,10 @@ void BattOrConnectionImpl::ReadMessage(BattOrMessageType type) {
|
| BeginReadBytes(message_max_bytes - already_read_buffer_.size());
|
| }
|
|
|
| +void BattOrConnectionImpl::CancelReadMessage() {
|
| + io_handler_->CancelRead(device::serial::ReceiveError::TIMEOUT);
|
| +}
|
| +
|
| void BattOrConnectionImpl::Flush() {
|
| io_handler_->Flush();
|
| already_read_buffer_.clear();
|
|
|