| Index: remoting/host/security_key/remote_security_key_message_writer_impl.cc
|
| diff --git a/remoting/host/security_key/remote_security_key_message_writer.cc b/remoting/host/security_key/remote_security_key_message_writer_impl.cc
|
| similarity index 84%
|
| copy from remoting/host/security_key/remote_security_key_message_writer.cc
|
| copy to remoting/host/security_key/remote_security_key_message_writer_impl.cc
|
| index 4a9f75e15e6a8cee5eaac2e93adc1f718dd82c38..4a434dfb838ef68dcffd9884233f1b917011e738 100644
|
| --- a/remoting/host/security_key/remote_security_key_message_writer.cc
|
| +++ b/remoting/host/security_key/remote_security_key_message_writer_impl.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "remoting/host/security_key/remote_security_key_message_writer.h"
|
| +#include "remoting/host/security_key/remote_security_key_message_writer_impl.h"
|
|
|
| #include <cstdint>
|
| #include <string>
|
| @@ -12,18 +12,18 @@
|
|
|
| namespace remoting {
|
|
|
| -RemoteSecurityKeyMessageWriter::RemoteSecurityKeyMessageWriter(
|
| +RemoteSecurityKeyMessageWriterImpl::RemoteSecurityKeyMessageWriterImpl(
|
| base::File output_file)
|
| : output_stream_(std::move(output_file)) {}
|
|
|
| -RemoteSecurityKeyMessageWriter::~RemoteSecurityKeyMessageWriter() {}
|
| +RemoteSecurityKeyMessageWriterImpl::~RemoteSecurityKeyMessageWriterImpl() {}
|
|
|
| -bool RemoteSecurityKeyMessageWriter::WriteMessage(
|
| +bool RemoteSecurityKeyMessageWriterImpl::WriteMessage(
|
| RemoteSecurityKeyMessageType message_type) {
|
| return WriteMessageWithPayload(message_type, std::string());
|
| }
|
|
|
| -bool RemoteSecurityKeyMessageWriter::WriteMessageWithPayload(
|
| +bool RemoteSecurityKeyMessageWriterImpl::WriteMessageWithPayload(
|
| RemoteSecurityKeyMessageType message_type,
|
| const std::string& message_payload) {
|
| if (write_failed_ || !output_stream_.IsValid()) {
|
| @@ -62,8 +62,9 @@ bool RemoteSecurityKeyMessageWriter::WriteMessageWithPayload(
|
| return true;
|
| }
|
|
|
| -bool RemoteSecurityKeyMessageWriter::WriteBytesToOutput(const char* message,
|
| - int bytes_to_write) {
|
| +bool RemoteSecurityKeyMessageWriterImpl::WriteBytesToOutput(
|
| + const char* message,
|
| + int bytes_to_write) {
|
| DCHECK(message);
|
| DCHECK_GT(bytes_to_write, 0);
|
|
|
|
|