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

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

Issue 11418102: Linux: fix header includes for system protobuf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/message_decoder.h ('k') | third_party/protobuf/protobuf.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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
13 #if defined(USE_SYSTEM_PROTOBUF)
14 #include <google/protobuf/message_lite.h>
15 #else
12 #include "third_party/protobuf/src/google/protobuf/message_lite.h" 16 #include "third_party/protobuf/src/google/protobuf/message_lite.h"
17 #endif
13 18
14 namespace remoting { 19 namespace remoting {
15 namespace protocol { 20 namespace protocol {
16 21
17 // Serialize the Protocol Buffer message and provide sufficient framing for 22 // Serialize the Protocol Buffer message and provide sufficient framing for
18 // sending it over the wire. 23 // sending it over the wire.
19 // This will provide sufficient prefix and suffix for the receiver side to 24 // This will provide sufficient prefix and suffix for the receiver side to
20 // decode the message. 25 // decode the message.
21 scoped_refptr<net::IOBufferWithSize> SerializeAndFrameMessage( 26 scoped_refptr<net::IOBufferWithSize> SerializeAndFrameMessage(
22 const google::protobuf::MessageLite& msg); 27 const google::protobuf::MessageLite& msg);
23 28
24 } // namespace protocol 29 } // namespace protocol
25 } // namespace remoting 30 } // namespace remoting
26 31
27 #endif // REMOTING_PROTOCOL_UTIL_H_ 32 #endif // REMOTING_PROTOCOL_UTIL_H_
OLDNEW
« no previous file with comments | « remoting/protocol/message_decoder.h ('k') | third_party/protobuf/protobuf.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698