| 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 #ifndef REMOTING_PROTOCOL_CLIENT_MESSAGE_DISPATCHER_H_ | 5 #ifndef REMOTING_PROTOCOL_CLIENT_MESSAGE_DISPATCHER_H_ |
| 6 #define REMOTING_PROTOCOL_CLIENT_MESSAGE_DISPATCHER_H_ | 6 #define REMOTING_PROTOCOL_CLIENT_MESSAGE_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "remoting/protocol/message_reader.h" | 10 #include "remoting/protocol/message_reader.h" |
| 11 | 11 |
| 12 namespace remoting { | 12 namespace remoting { |
| 13 | 13 |
| 14 class EventMessage; | |
| 15 | |
| 16 namespace protocol { | 14 namespace protocol { |
| 17 | 15 |
| 18 class ClientStub; | 16 class ClientStub; |
| 19 class ControlMessage; | 17 class ControlMessage; |
| 20 class Session; | 18 class Session; |
| 21 | 19 |
| 22 // A message dispatcher used to listen for messages received in | 20 // A message dispatcher used to listen for messages received in |
| 23 // protocol::Session. It dispatches messages to the corresponding | 21 // protocol::Session. It dispatches messages to the corresponding |
| 24 // handler. | 22 // handler. |
| 25 // | 23 // |
| (...skipping 25 matching lines...) Expand all Loading... |
| 51 // They are called on the thread there data is received, i.e. jingle thread. | 49 // They are called on the thread there data is received, i.e. jingle thread. |
| 52 ClientStub* client_stub_; | 50 ClientStub* client_stub_; |
| 53 | 51 |
| 54 DISALLOW_COPY_AND_ASSIGN(ClientMessageDispatcher); | 52 DISALLOW_COPY_AND_ASSIGN(ClientMessageDispatcher); |
| 55 }; | 53 }; |
| 56 | 54 |
| 57 } // namespace protocol | 55 } // namespace protocol |
| 58 } // namespace remoting | 56 } // namespace remoting |
| 59 | 57 |
| 60 #endif // REMOTING_PROTOCOL_CLIENT_MESSAGE_DISPATCHER_H_ | 58 #endif // REMOTING_PROTOCOL_CLIENT_MESSAGE_DISPATCHER_H_ |
| OLD | NEW |