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 // JingleConnectionToHost implements the ConnectionToHost interface using | 5 // JingleConnectionToHost implements the ConnectionToHost interface using |
6 // libjingle as the transport protocol. | 6 // libjingle as the transport protocol. |
7 // | 7 // |
8 // Much of this class focuses on translating JingleClient and | 8 // Much of this class focuses on translating JingleClient and |
9 // ChromotingConnection callbacks into ConnectionToHost::HostEventCallback | 9 // ChromotingConnection callbacks into ConnectionToHost::HostEventCallback |
10 // messages. | 10 // messages. |
11 // | 11 // |
12 // The public API of this class is designed to be asynchronous, and thread | 12 // The public API of this class is designed to be asynchronous, and thread |
13 // safe for invocation from other threads. | 13 // safe for invocation from other threads. |
14 // | 14 // |
15 // Internally though, all work delegeated to the |network_thread| given | 15 // Internally though, all work delegeated to the |network_thread| given |
16 // during construction. Any event handlers running on the |network_thread| | 16 // during construction. Any event handlers running on the |network_thread| |
17 // should not block. | 17 // should not block. |
18 | 18 |
19 #ifndef REMOTING_PROTOCOL_JINGLE_CONNECTION_TO_HOST_H_ | 19 #ifndef REMOTING_PROTOCOL_JINGLE_CONNECTION_TO_HOST_H_ |
20 #define REMOTING_PROTOCOL_JINGLE_CONNECTION_TO_HOST_H_ | 20 #define REMOTING_PROTOCOL_JINGLE_CONNECTION_TO_HOST_H_ |
21 | 21 |
22 #include "base/ref_counted.h" | 22 #include "base/ref_counted.h" |
23 #include "base/scoped_ptr.h" | 23 #include "base/scoped_ptr.h" |
24 #include "base/task.h" | 24 #include "base/task.h" |
25 #include "remoting/jingle_glue/jingle_client.h" | 25 #include "remoting/jingle_glue/jingle_client.h" |
26 #include "remoting/protocol/connection_to_host.h" | 26 #include "remoting/protocol/connection_to_host.h" |
27 #include "remoting/protocol/message_reader.h" | 27 #include "remoting/protocol/message_reader.h" |
28 #include "remoting/protocol/session.h" | 28 #include "remoting/protocol/session.h" |
29 #include "remoting/protocol/session_manager.h" | 29 #include "remoting/protocol/session_manager.h" |
30 #include "remoting/protocol/stream_writer.h" | |
31 | 30 |
32 class MessageLoop; | 31 class MessageLoop; |
33 | 32 |
34 namespace remoting { | 33 namespace remoting { |
35 | 34 |
36 class JingleThread; | 35 class JingleThread; |
37 class VideoPacket; | 36 class VideoPacket; |
38 | 37 |
39 namespace protocol { | 38 namespace protocol { |
40 | 39 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 103 |
105 DISALLOW_COPY_AND_ASSIGN(JingleConnectionToHost); | 104 DISALLOW_COPY_AND_ASSIGN(JingleConnectionToHost); |
106 }; | 105 }; |
107 | 106 |
108 } // namespace protocol | 107 } // namespace protocol |
109 } // namespace remoting | 108 } // namespace remoting |
110 | 109 |
111 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::protocol::JingleConnectionToHost); | 110 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::protocol::JingleConnectionToHost); |
112 | 111 |
113 #endif // REMOTING_PROTOCOL_JINGLE_CONNECTION_TO_HOST_H_ | 112 #endif // REMOTING_PROTOCOL_JINGLE_CONNECTION_TO_HOST_H_ |
OLD | NEW |