OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 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_BASE_PROTOCOL_UTIL_H_ |
| 6 #define REMOTING_BASE_PROTOCOL_UTIL_H_ |
| 7 |
| 8 #include "google/protobuf/message_lite.h" |
| 9 #include "media/base/data_buffer.h" |
| 10 |
| 11 // This file defines utility methods used for encoding and decoding the protocol |
| 12 // used in Chromoting. |
| 13 namespace remoting { |
| 14 |
| 15 // Serialize the Protocol Buffer message and provide sufficient framing for |
| 16 // sending it over the wire. |
| 17 // This will provide sufficient prefix and suffix for the receiver side to |
| 18 // decode the message. |
| 19 scoped_refptr<media::DataBuffer> SerializeAndFrameMessage( |
| 20 const google::protobuf::MessageLite& msg); |
| 21 |
| 22 } // namespace remoting |
| 23 |
| 24 #endif // REMOTING_BASE_PROTOCOL_UTIL_H_ |
OLD | NEW |