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