| 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_MESSAGE_READER_H_ | 5 #ifndef REMOTING_PROTOCOL_MESSAGE_READER_H_ |
| 6 #define REMOTING_PROTOCOL_MESSAGE_READER_H_ | 6 #define REMOTING_PROTOCOL_MESSAGE_READER_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| 11 #include "base/task.h" | 11 #include "base/task.h" |
| 12 #include "net/base/completion_callback.h" | 12 #include "net/base/completion_callback.h" |
| 13 #include "net/base/io_buffer.h" |
| 13 #include "remoting/protocol/message_decoder.h" | 14 #include "remoting/protocol/message_decoder.h" |
| 14 | 15 |
| 15 namespace net { | 16 namespace net { |
| 16 class Socket; | 17 class Socket; |
| 17 } // namespace net | 18 } // namespace net |
| 18 | 19 |
| 19 namespace remoting { | 20 namespace remoting { |
| 20 | 21 |
| 21 class ChromotocolConnection; | 22 class ChromotocolConnection; |
| 22 class ChromotingClientMessage; | 23 class ChromotingClientMessage; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 scoped_refptr<net::IOBuffer> read_buffer_; | 100 scoped_refptr<net::IOBuffer> read_buffer_; |
| 100 net::CompletionCallbackImpl<MessageReader> read_callback_; | 101 net::CompletionCallbackImpl<MessageReader> read_callback_; |
| 101 | 102 |
| 102 scoped_ptr<Callback2<net::IOBuffer*, int>::Type> data_received_callback_; | 103 scoped_ptr<Callback2<net::IOBuffer*, int>::Type> data_received_callback_; |
| 103 scoped_ptr<Callback0::Type> destruction_callback_; | 104 scoped_ptr<Callback0::Type> destruction_callback_; |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace remoting | 107 } // namespace remoting |
| 107 | 108 |
| 108 #endif // REMOTING_PROTOCOL_MESSAGE_READER_H_ | 109 #endif // REMOTING_PROTOCOL_MESSAGE_READER_H_ |
| OLD | NEW |