OLD | NEW |
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 #ifndef REMOTING_PROTOCOL_SOCKET_READER_BASE_H_ | 5 #ifndef REMOTING_PROTOCOL_SOCKET_READER_BASE_H_ |
6 #define REMOTING_PROTOCOL_SOCKET_READER_BASE_H_ | 6 #define REMOTING_PROTOCOL_SOCKET_READER_BASE_H_ |
7 | 7 |
8 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
9 #include "net/base/completion_callback.h" | 9 #include "net/base/completion_callback.h" |
10 #include "remoting/protocol/messages_decoder.h" | |
11 | 10 |
12 namespace net { | 11 namespace net { |
| 12 class IOBuffer; |
13 class Socket; | 13 class Socket; |
14 } // namespace net | 14 } // namespace net |
15 | 15 |
16 namespace remoting { | 16 namespace remoting { |
17 | 17 |
18 class SocketReaderBase { | 18 class SocketReaderBase { |
19 public: | 19 public: |
20 SocketReaderBase(); | 20 SocketReaderBase(); |
21 virtual ~SocketReaderBase(); | 21 virtual ~SocketReaderBase(); |
22 | 22 |
(...skipping 11 matching lines...) Expand all Loading... |
34 | 34 |
35 net::Socket* socket_; | 35 net::Socket* socket_; |
36 bool closed_; | 36 bool closed_; |
37 scoped_refptr<net::IOBuffer> read_buffer_; | 37 scoped_refptr<net::IOBuffer> read_buffer_; |
38 net::CompletionCallbackImpl<SocketReaderBase> read_callback_; | 38 net::CompletionCallbackImpl<SocketReaderBase> read_callback_; |
39 }; | 39 }; |
40 | 40 |
41 } // namespace remoting | 41 } // namespace remoting |
42 | 42 |
43 #endif // REMOTING_PROTOCOL_SOCKET_READER_BASE_H_ | 43 #endif // REMOTING_PROTOCOL_SOCKET_READER_BASE_H_ |
OLD | NEW |