diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-11 02:14:35 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-11 02:14:35 +0000 |
commit | 182ec8f2c5515db4677e1ae5e6750ddbeffeeb19 (patch) | |
tree | 0d0e316403711beebfeb4fafa001855ae0a86da0 /remoting/protocol/protobuf_video_writer.h | |
parent | de719a407c847bbc4c6884a5f5a07e2327e97233 (diff) | |
download | chromium_src-182ec8f2c5515db4677e1ae5e6750ddbeffeeb19.zip chromium_src-182ec8f2c5515db4677e1ae5e6750ddbeffeeb19.tar.gz chromium_src-182ec8f2c5515db4677e1ae5e6750ddbeffeeb19.tar.bz2 |
Remove video_channel() from Session interface
BUG=None
TEST=Unittests.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96089
Review URL: http://codereview.chromium.org/7508044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96301 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/protobuf_video_writer.h')
-rw-r--r-- | remoting/protocol/protobuf_video_writer.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/remoting/protocol/protobuf_video_writer.h b/remoting/protocol/protobuf_video_writer.h index 189eacf..a5bb4fc 100644 --- a/remoting/protocol/protobuf_video_writer.h +++ b/remoting/protocol/protobuf_video_writer.h @@ -5,10 +5,17 @@ #ifndef REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ #define REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ +#include <string> + #include "base/compiler_specific.h" #include "base/memory/ref_counted.h" +#include "base/memory/scoped_ptr.h" #include "remoting/protocol/video_writer.h" +namespace net { +class StreamSocket; +} // namespace net + namespace remoting { namespace protocol { @@ -21,7 +28,8 @@ class ProtobufVideoWriter : public VideoWriter { virtual ~ProtobufVideoWriter(); // VideoWriter interface. - virtual void Init(protocol::Session* session) OVERRIDE; + virtual void Init(protocol::Session* session, + const InitializedCallback& callback) OVERRIDE; virtual void Close() OVERRIDE; // VideoStub interface. @@ -30,6 +38,13 @@ class ProtobufVideoWriter : public VideoWriter { virtual int GetPendingPackets() OVERRIDE; private: + void OnChannelReady(const std::string& name, net::StreamSocket* socket); + + InitializedCallback initialized_callback_; + + // TODO(sergeyu): Remove |channel_| and let |buffered_writer_| own it. + scoped_ptr<net::StreamSocket> channel_; + scoped_refptr<BufferedSocketWriter> buffered_writer_; DISALLOW_COPY_AND_ASSIGN(ProtobufVideoWriter); |