| 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_PROTOBUF_VIDEO_WRITER_H_ | 5 #ifndef REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ |
| 6 #define REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ | 6 #define REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 virtual void Init(protocol::Session* session, | 31 virtual void Init(protocol::Session* session, |
| 32 const InitializedCallback& callback) OVERRIDE; | 32 const InitializedCallback& callback) OVERRIDE; |
| 33 virtual void Close() OVERRIDE; | 33 virtual void Close() OVERRIDE; |
| 34 | 34 |
| 35 // VideoStub interface. | 35 // VideoStub interface. |
| 36 virtual void ProcessVideoPacket(const VideoPacket* packet, | 36 virtual void ProcessVideoPacket(const VideoPacket* packet, |
| 37 Task* done) OVERRIDE; | 37 Task* done) OVERRIDE; |
| 38 virtual int GetPendingPackets() OVERRIDE; | 38 virtual int GetPendingPackets() OVERRIDE; |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 void OnChannelReady(const std::string& name, net::StreamSocket* socket); | 41 void OnChannelReady(net::StreamSocket* socket); |
| 42 | 42 |
| 43 InitializedCallback initialized_callback_; | 43 InitializedCallback initialized_callback_; |
| 44 | 44 |
| 45 // TODO(sergeyu): Remove |channel_| and let |buffered_writer_| own it. | 45 // TODO(sergeyu): Remove |channel_| and let |buffered_writer_| own it. |
| 46 scoped_ptr<net::StreamSocket> channel_; | 46 scoped_ptr<net::StreamSocket> channel_; |
| 47 | 47 |
| 48 scoped_refptr<BufferedSocketWriter> buffered_writer_; | 48 scoped_refptr<BufferedSocketWriter> buffered_writer_; |
| 49 | 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(ProtobufVideoWriter); | 50 DISALLOW_COPY_AND_ASSIGN(ProtobufVideoWriter); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace protocol | 53 } // namespace protocol |
| 54 } // namespace remoting | 54 } // namespace remoting |
| 55 | 55 |
| 56 #endif // REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ | 56 #endif // REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ |
| OLD | NEW |