| OLD | NEW |
| 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 // Implementation of ClientStub using sockets created from jingle connection. | 5 // Implementation of ClientStub using sockets created from jingle connection. |
| 6 // It sends messages through the socket after serializing it. | 6 // It sends messages through the socket after serializing it. |
| 7 // | 7 // |
| 8 // Object of this class can only be created by ConnectionToClient. | 8 // Object of this class can only be created by ConnectionToClient. |
| 9 // | 9 // |
| 10 // This class can be used on any thread. | 10 // This class can be used on any thread. |
| 11 | 11 |
| 12 #ifndef REMOTING_PROTOCOL_CLIENT_STUB_IMPL_H_ | 12 #ifndef REMOTING_PROTOCOL_CLIENT_CONTROL_SENDER_H_ |
| 13 #define REMOTING_PROTOCOL_CLIENT_STUB_IMPL_H_ | 13 #define REMOTING_PROTOCOL_CLIENT_CONTROL_SENDER_H_ |
| 14 | 14 |
| 15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
| 16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 18 #include "remoting/protocol/client_stub.h" | 18 #include "remoting/protocol/client_stub.h" |
| 19 | 19 |
| 20 class Task; | |
| 21 | |
| 22 namespace base { | 20 namespace base { |
| 23 class MessageLoopProxy; | 21 class MessageLoopProxy; |
| 24 } // namespace base | 22 } // namespace base |
| 25 | 23 |
| 26 namespace net { | 24 namespace net { |
| 27 class Socket; | 25 class Socket; |
| 28 } // namespace net | 26 } // namespace net |
| 29 | 27 |
| 30 namespace remoting { | 28 namespace remoting { |
| 31 namespace protocol { | 29 namespace protocol { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 49 // Buffered socket writer holds the serialized message and send it on the | 47 // Buffered socket writer holds the serialized message and send it on the |
| 50 // right thread. | 48 // right thread. |
| 51 scoped_refptr<BufferedSocketWriter> buffered_writer_; | 49 scoped_refptr<BufferedSocketWriter> buffered_writer_; |
| 52 | 50 |
| 53 DISALLOW_COPY_AND_ASSIGN(ClientControlSender); | 51 DISALLOW_COPY_AND_ASSIGN(ClientControlSender); |
| 54 }; | 52 }; |
| 55 | 53 |
| 56 } // namespace protocol | 54 } // namespace protocol |
| 57 } // namespace remoting | 55 } // namespace remoting |
| 58 | 56 |
| 59 #endif // REMOTING_PROTOCOL_CLIENT_STUB_IMPL_H_ | 57 #endif // REMOTING_PROTOCOL_CLIENT_CONTROL_SENDER_H_ |
| OLD | NEW |