| 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 "base/compiler_specific.h" |
| 8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 9 #include "remoting/protocol/video_writer.h" | 10 #include "remoting/protocol/video_writer.h" |
| 10 | 11 |
| 11 namespace remoting { | 12 namespace remoting { |
| 12 namespace protocol { | 13 namespace protocol { |
| 13 | 14 |
| 14 class BufferedSocketWriter; | 15 class BufferedSocketWriter; |
| 15 class Session; | 16 class Session; |
| 16 | 17 |
| 17 class ProtobufVideoWriter : public VideoWriter { | 18 class ProtobufVideoWriter : public VideoWriter { |
| 18 public: | 19 public: |
| 19 ProtobufVideoWriter(); | 20 ProtobufVideoWriter(); |
| 20 virtual ~ProtobufVideoWriter(); | 21 virtual ~ProtobufVideoWriter(); |
| 21 | 22 |
| 22 // VideoWriter interface. | 23 // VideoWriter interface. |
| 23 virtual void Init(protocol::Session* session); | 24 virtual void Init(protocol::Session* session) OVERRIDE; |
| 25 virtual void Close() OVERRIDE; |
| 24 | 26 |
| 25 // VideoStub interface. | 27 // VideoStub interface. |
| 26 virtual void ProcessVideoPacket(const VideoPacket* packet, Task* done); | 28 virtual void ProcessVideoPacket(const VideoPacket* packet, |
| 27 virtual int GetPendingPackets(); | 29 Task* done) OVERRIDE; |
| 30 virtual int GetPendingPackets() OVERRIDE; |
| 28 | 31 |
| 29 private: | 32 private: |
| 30 scoped_refptr<BufferedSocketWriter> buffered_writer_; | 33 scoped_refptr<BufferedSocketWriter> buffered_writer_; |
| 31 | 34 |
| 32 DISALLOW_COPY_AND_ASSIGN(ProtobufVideoWriter); | 35 DISALLOW_COPY_AND_ASSIGN(ProtobufVideoWriter); |
| 33 }; | 36 }; |
| 34 | 37 |
| 35 } // namespace protocol | 38 } // namespace protocol |
| 36 } // namespace remoting | 39 } // namespace remoting |
| 37 | 40 |
| 38 #endif // REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ | 41 #endif // REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ |
| OLD | NEW |