| Index: remoting/protocol/host_video_dispatcher.h
|
| diff --git a/remoting/protocol/host_video_dispatcher.h b/remoting/protocol/host_video_dispatcher.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3c80166f1ef1e43b82cf69e7902d0e7b3af205aa
|
| --- /dev/null
|
| +++ b/remoting/protocol/host_video_dispatcher.h
|
| @@ -0,0 +1,40 @@
|
| +// Copyright 2014 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.
|
| +
|
| +#ifndef REMOTING_PROTOCOL_HOST_VIDEO_DISPATCHER_H_
|
| +#define REMOTING_PROTOCOL_HOST_VIDEO_DISPATCHER_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "base/compiler_specific.h"
|
| +#include "remoting/protocol/buffered_socket_writer.h"
|
| +#include "remoting/protocol/channel_dispatcher_base.h"
|
| +#include "remoting/protocol/video_stub.h"
|
| +
|
| +namespace remoting {
|
| +namespace protocol {
|
| +
|
| +class HostVideoDispatcher : public ChannelDispatcherBase, public VideoStub {
|
| + public:
|
| + HostVideoDispatcher();
|
| + virtual ~HostVideoDispatcher();
|
| +
|
| + // VideoStub interface.
|
| + virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet,
|
| + const base::Closure& done) OVERRIDE;
|
| +
|
| + protected:
|
| + // ChannelDispatcherBase overrides.
|
| + virtual void OnInitialized() OVERRIDE;
|
| +
|
| + private:
|
| + BufferedSocketWriter writer_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(HostVideoDispatcher);
|
| +};
|
| +
|
| +} // namespace protocol
|
| +} // namespace remoting
|
| +
|
| +#endif // REMOTING_PROTOCOL_HOST_VIDEO_DISPATCHER_H_
|
|
|