diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-19 21:20:01 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-19 21:20:01 +0000 |
commit | 94b2c17468b276f873a74293459553cf9bf019a4 (patch) | |
tree | 26914f93770697043704c85a159c89662b825c64 /remoting/protocol/host_message_dispatcher.cc | |
parent | 0d7dad6df2d9d6d9676ca7adb02e3c92beaa8a79 (diff) | |
download | chromium_src-94b2c17468b276f873a74293459553cf9bf019a4.zip chromium_src-94b2c17468b276f873a74293459553cf9bf019a4.tar.gz chromium_src-94b2c17468b276f873a74293459553cf9bf019a4.tar.bz2 |
HostMessageDispatcher to dispatch messages received on a chromoting connection
Adding HostMessageDispatcher to be used by ChromotingHost.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/3852002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63111 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/host_message_dispatcher.cc')
-rw-r--r-- | remoting/protocol/host_message_dispatcher.cc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/remoting/protocol/host_message_dispatcher.cc b/remoting/protocol/host_message_dispatcher.cc new file mode 100644 index 0000000..834b5f8 --- /dev/null +++ b/remoting/protocol/host_message_dispatcher.cc @@ -0,0 +1,28 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "base/message_loop_proxy.h" +#include "remoting/proto/control.pb.h" +#include "remoting/proto/event.pb.h" +#include "remoting/protocol/host_message_dispatcher.h" +#include "remoting/protocol/host_control_message_handler.h" +#include "remoting/protocol/host_event_message_handler.h" +#include "remoting/protocol/stream_reader.h" + +namespace remoting { + +HostMessageDispatcher::HostMessageDispatcher( + base::MessageLoopProxy* message_loop_proxy, + ChromotingConnection* connection, + HostControlMessageHandler* control_message_handler, + HostEventMessageHandler* event_message_handler) + : message_loop_proxy_(message_loop_proxy), + control_message_handler_(control_message_handler), + event_message_handler_(event_message_handler) { +} + +HostMessageDispatcher::~HostMessageDispatcher() { +} + +} // namespace remoting |