| Index: remoting/host/security_key/security_key_message.h
|
| diff --git a/remoting/host/security_key/security_key_message.h b/remoting/host/security_key/security_key_message.h
|
| index 631da020f303b67b4267b368b3d4cde8bbc07518..a51afa5a05a013027aacf6d9b55fae1f5f8f95e6 100644
|
| --- a/remoting/host/security_key/security_key_message.h
|
| +++ b/remoting/host/security_key/security_key_message.h
|
| @@ -44,7 +44,7 @@
|
| // -----------------------------------------------------------------------------
|
| // NOTE: Make sure SecurityKeyMessage::MessageTypeFromValue is updated when new
|
| // enum values are added/removed.
|
| -enum class SecurityKeyMessageType : uint8_t {
|
| +enum class RemoteSecurityKeyMessageType : uint8_t {
|
| INVALID = 0,
|
|
|
| // Sent to the remote_security_key process to ask it to establish a
|
| @@ -115,32 +115,32 @@
|
| // length is within the allowable size range.
|
| static bool IsValidMessageSize(uint32_t message_size);
|
|
|
| - // Returns a SecurityKeyMessageType enum value corresponding to the
|
| + // Returns a RemoteSecurityKeyMessageType enum value corresponding to the
|
| // value passed in if it is valid, otherwise INVALID is returned.
|
| - static SecurityKeyMessageType MessageTypeFromValue(int value);
|
| + static RemoteSecurityKeyMessageType MessageTypeFromValue(int value);
|
|
|
| // Creates a message from the passed in values, no validation is done as this
|
| // method is only expected to be called from test code.
|
| static std::unique_ptr<SecurityKeyMessage> CreateMessageForTest(
|
| - SecurityKeyMessageType type,
|
| + RemoteSecurityKeyMessageType type,
|
| const std::string& payload);
|
|
|
| // Parses |message_data| and initializes the internal members. Returns true
|
| // if |message_data| was parsed and the instance was initialized successfully.
|
| bool ParseMessage(const std::string& message_data);
|
|
|
| - SecurityKeyMessageType type() { return type_; }
|
| + RemoteSecurityKeyMessageType type() { return type_; }
|
|
|
| const std::string& payload() { return payload_; }
|
|
|
| private:
|
| - SecurityKeyMessageType type_ = SecurityKeyMessageType::INVALID;
|
| + RemoteSecurityKeyMessageType type_ = RemoteSecurityKeyMessageType::INVALID;
|
| std::string payload_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(SecurityKeyMessage);
|
| };
|
|
|
| -// Used to pass security key message data between classes.
|
| +// Used to pass remote security key message data between classes.
|
| typedef base::Callback<void(std::unique_ptr<SecurityKeyMessage> message)>
|
| SecurityKeyMessageCallback;
|
|
|
|
|