OLD | NEW |
| (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 #ifndef REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_MESSAGE_WRITER_H_ | |
6 #define REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_MESSAGE_WRITER_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/macros.h" | |
11 #include "remoting/host/security_key/security_key_message.h" | |
12 | |
13 namespace remoting { | |
14 | |
15 // Used for sending remote security key messages using a file handle. | |
16 class RemoteSecurityKeyMessageWriter { | |
17 public: | |
18 virtual ~RemoteSecurityKeyMessageWriter() {} | |
19 | |
20 // Writes a remote security key message w/o a payload to |output_stream_|. | |
21 virtual bool WriteMessage(RemoteSecurityKeyMessageType message_type) = 0; | |
22 | |
23 // Writes a remote security key message with a payload to |output_stream_|. | |
24 virtual bool WriteMessageWithPayload( | |
25 RemoteSecurityKeyMessageType message_type, | |
26 const std::string& message_payload) = 0; | |
27 }; | |
28 | |
29 } // namespace remoting | |
30 | |
31 #endif // REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_MESSAGE_WRITER_H_ | |
OLD | NEW |