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

Side by Side Diff: remoting/protocol/util.h

Issue 8493020: Move code in src/remoting to the new callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix win and mac Created 9 years, 1 month 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
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file defines utility methods used for encoding and decoding the protocol 5 // This file defines utility methods used for encoding and decoding the protocol
6 // used in Chromoting. 6 // used in Chromoting.
7 7
8 #ifndef REMOTING_PROTOCOL_UTIL_H_ 8 #ifndef REMOTING_PROTOCOL_UTIL_H_
9 #define REMOTING_PROTOCOL_UTIL_H_ 9 #define REMOTING_PROTOCOL_UTIL_H_
10 10
11 #include "net/base/io_buffer.h" 11 #include "net/base/io_buffer.h"
12 #include "third_party/protobuf/src/google/protobuf/message_lite.h" 12 #include "third_party/protobuf/src/google/protobuf/message_lite.h"
13 13
14 class Task; 14 class Task;
15 15
16 namespace remoting { 16 namespace remoting {
17 namespace protocol { 17 namespace protocol {
18 18
19 // Serialize the Protocol Buffer message and provide sufficient framing for 19 // Serialize the Protocol Buffer message and provide sufficient framing for
20 // sending it over the wire. 20 // sending it over the wire.
21 // This will provide sufficient prefix and suffix for the receiver side to 21 // This will provide sufficient prefix and suffix for the receiver side to
22 // decode the message. 22 // decode the message.
23 scoped_refptr<net::IOBufferWithSize> SerializeAndFrameMessage( 23 scoped_refptr<net::IOBufferWithSize> SerializeAndFrameMessage(
24 const google::protobuf::MessageLite& msg); 24 const google::protobuf::MessageLite& msg);
25 25
26 // Create a runnable task that deletes a message.
27 Task* NewDeleteMessageTask(google::protobuf::MessageLite* message);
28
29 } // namespace protocol 26 } // namespace protocol
30 } // namespace remoting 27 } // namespace remoting
31 28
32 #endif // REMOTING_PROTOCOL_UTIL_H_ 29 #endif // REMOTING_PROTOCOL_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698