| Index: remoting/host/security_key/security_key_message_writer_impl.cc
|
| diff --git a/remoting/host/security_key/remote_security_key_message_writer_impl.cc b/remoting/host/security_key/security_key_message_writer_impl.cc
|
| similarity index 79%
|
| rename from remoting/host/security_key/remote_security_key_message_writer_impl.cc
|
| rename to remoting/host/security_key/security_key_message_writer_impl.cc
|
| index 4a434dfb838ef68dcffd9884233f1b917011e738..a14055bd2e63b1feaf1f875c35096f12a456470e 100644
|
| --- a/remoting/host/security_key/remote_security_key_message_writer_impl.cc
|
| +++ b/remoting/host/security_key/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_impl.h"
|
| +#include "remoting/host/security_key/security_key_message_writer_impl.h"
|
|
|
| #include <cstdint>
|
| #include <string>
|
| @@ -12,19 +12,19 @@
|
|
|
| namespace remoting {
|
|
|
| -RemoteSecurityKeyMessageWriterImpl::RemoteSecurityKeyMessageWriterImpl(
|
| +SecurityKeyMessageWriterImpl::SecurityKeyMessageWriterImpl(
|
| base::File output_file)
|
| : output_stream_(std::move(output_file)) {}
|
|
|
| -RemoteSecurityKeyMessageWriterImpl::~RemoteSecurityKeyMessageWriterImpl() {}
|
| +SecurityKeyMessageWriterImpl::~SecurityKeyMessageWriterImpl() {}
|
|
|
| -bool RemoteSecurityKeyMessageWriterImpl::WriteMessage(
|
| - RemoteSecurityKeyMessageType message_type) {
|
| +bool SecurityKeyMessageWriterImpl::WriteMessage(
|
| + SecurityKeyMessageType message_type) {
|
| return WriteMessageWithPayload(message_type, std::string());
|
| }
|
|
|
| -bool RemoteSecurityKeyMessageWriterImpl::WriteMessageWithPayload(
|
| - RemoteSecurityKeyMessageType message_type,
|
| +bool SecurityKeyMessageWriterImpl::WriteMessageWithPayload(
|
| + SecurityKeyMessageType message_type,
|
| const std::string& message_payload) {
|
| if (write_failed_ || !output_stream_.IsValid()) {
|
| return false;
|
| @@ -62,9 +62,8 @@ bool RemoteSecurityKeyMessageWriterImpl::WriteMessageWithPayload(
|
| return true;
|
| }
|
|
|
| -bool RemoteSecurityKeyMessageWriterImpl::WriteBytesToOutput(
|
| - const char* message,
|
| - int bytes_to_write) {
|
| +bool SecurityKeyMessageWriterImpl::WriteBytesToOutput(const char* message,
|
| + int bytes_to_write) {
|
| DCHECK(message);
|
| DCHECK_GT(bytes_to_write, 0);
|
|
|
|
|