Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Unified Diff: remoting/host/security_key/security_key_message.h

Issue 2162083003: Renaming Gnubby and RemoteSecurityKey files/classes/members (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing a GYP build error Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 a51afa5a05a013027aacf6d9b55fae1f5f8f95e6..631da020f303b67b4267b368b3d4cde8bbc07518 100644
--- a/remoting/host/security_key/security_key_message.h
+++ b/remoting/host/security_key/security_key_message.h
@@ -44,7 +44,7 @@ namespace remoting {
// -----------------------------------------------------------------------------
// NOTE: Make sure SecurityKeyMessage::MessageTypeFromValue is updated when new
// enum values are added/removed.
-enum class RemoteSecurityKeyMessageType : uint8_t {
+enum class SecurityKeyMessageType : uint8_t {
INVALID = 0,
// Sent to the remote_security_key process to ask it to establish a
@@ -115,32 +115,32 @@ class SecurityKeyMessage final {
// length is within the allowable size range.
static bool IsValidMessageSize(uint32_t message_size);
- // Returns a RemoteSecurityKeyMessageType enum value corresponding to the
+ // Returns a SecurityKeyMessageType enum value corresponding to the
// value passed in if it is valid, otherwise INVALID is returned.
- static RemoteSecurityKeyMessageType MessageTypeFromValue(int value);
+ static SecurityKeyMessageType 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(
- RemoteSecurityKeyMessageType type,
+ SecurityKeyMessageType 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);
- RemoteSecurityKeyMessageType type() { return type_; }
+ SecurityKeyMessageType type() { return type_; }
const std::string& payload() { return payload_; }
private:
- RemoteSecurityKeyMessageType type_ = RemoteSecurityKeyMessageType::INVALID;
+ SecurityKeyMessageType type_ = SecurityKeyMessageType::INVALID;
std::string payload_;
DISALLOW_COPY_AND_ASSIGN(SecurityKeyMessage);
};
-// Used to pass remote security key message data between classes.
+// Used to pass security key message data between classes.
typedef base::Callback<void(std::unique_ptr<SecurityKeyMessage> message)>
SecurityKeyMessageCallback;
« no previous file with comments | « remoting/host/security_key/security_key_ipc_server_unittest.cc ('k') | remoting/host/security_key/security_key_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698