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

Side by Side Diff: remoting/host/security_key/remote_security_key_messages.cc

Issue 1821393002: Adding the message definitions for the remote_security_key STDIO communication classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup berfore review Created 4 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "remoting/host/security_key/remote_security_key_messages.h"
6
7 // Limit remote security key messages to 256KB.
8 const uint32_t remoting::kMaxRemoteSecurityKeyMessageByteCount = 256 * 1024;
Sergey Ulanov 2016/03/23 19:07:25 I think all these constants can be moved to the .h
joedow 2016/03/24 17:48:08 Done.
9
10 const int remoting::kRemoteSecurityKeyMessageHeaderByteCount = sizeof(uint32_t);
11 const int remoting::kRemoteSecurityKeyMessageControlCodeByteCount =
12 sizeof(uint8_t);
13 const int remoting::kRemoteSecurityKeyMessagePayloadByteCount =
14 static_cast<int>(remoting::kMaxRemoteSecurityKeyMessageByteCount) -
15 remoting::kRemoteSecurityKeyMessageControlCodeByteCount;
16
17 // ConnectToSecurityKeyEnabledSession messages.
18 const uint8_t remoting::kConnectToSecurityKeyEnabledSessionMsg = 0;
Sergey Ulanov 2016/03/23 19:07:25 I think these can be replaced with an enum.
joedow 2016/03/24 17:48:08 Done.
19 const uint8_t remoting::kConnectToSecurityKeyEnabledSessionRsp = 1;
20 const uint8_t remoting::kConnectToSecurityKeyEnabledSessionErr = 2;
21
22 // RemoteSecurityKeyRequest messages.
23 const uint8_t remoting::kRemoteSecurityKeyRequestMsg = 3;
Sergey Ulanov 2016/03/23 19:07:25 And these
joedow 2016/03/24 17:48:08 Done.
24 const uint8_t remoting::kRemoteSecurityKeyRequestRsp = 4;
25 const uint8_t remoting::kRemoteSecurityKeyRequestErr = 5;
26
27 // Unknown command error.
28 const uint8_t remoting::kRemoteSecurityKeyUnknownMessageErrorMsg = 254;
29
30 // Unknown error message.
31 const uint8_t remoting::kRemoteSecurityKeyUnknownErrorMsg = 255;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698