| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "remoting/protocol/buffered_socket_writer.h" | 13 #include "remoting/protocol/buffered_socket_writer.h" |
| 14 #include "remoting/protocol/video_writer.h" | 14 #include "remoting/protocol/video_writer.h" |
| 15 | 15 |
| 16 namespace base { | |
| 17 class MessageLoopProxy; | |
| 18 } // namespace base | |
| 19 | |
| 20 namespace net { | 16 namespace net { |
| 21 class StreamSocket; | 17 class StreamSocket; |
| 22 } // namespace net | 18 } // namespace net |
| 23 | 19 |
| 24 namespace remoting { | 20 namespace remoting { |
| 25 namespace protocol { | 21 namespace protocol { |
| 26 | 22 |
| 27 class Session; | 23 class Session; |
| 28 | 24 |
| 29 class ProtobufVideoWriter : public VideoWriter { | 25 class ProtobufVideoWriter : public VideoWriter { |
| 30 public: | 26 public: |
| 31 ProtobufVideoWriter(base::MessageLoopProxy* message_loop); | 27 ProtobufVideoWriter(); |
| 32 virtual ~ProtobufVideoWriter(); | 28 virtual ~ProtobufVideoWriter(); |
| 33 | 29 |
| 34 // VideoWriter interface. | 30 // VideoWriter interface. |
| 35 virtual void Init(protocol::Session* session, | 31 virtual void Init(protocol::Session* session, |
| 36 const InitializedCallback& callback) OVERRIDE; | 32 const InitializedCallback& callback) OVERRIDE; |
| 37 virtual void Close() OVERRIDE; | 33 virtual void Close() OVERRIDE; |
| 38 virtual bool is_connected() OVERRIDE; | 34 virtual bool is_connected() OVERRIDE; |
| 39 | 35 |
| 40 // VideoStub interface. | 36 // VideoStub interface. |
| 41 virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, | 37 virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 54 | 50 |
| 55 BufferedSocketWriter buffered_writer_; | 51 BufferedSocketWriter buffered_writer_; |
| 56 | 52 |
| 57 DISALLOW_COPY_AND_ASSIGN(ProtobufVideoWriter); | 53 DISALLOW_COPY_AND_ASSIGN(ProtobufVideoWriter); |
| 58 }; | 54 }; |
| 59 | 55 |
| 60 } // namespace protocol | 56 } // namespace protocol |
| 61 } // namespace remoting | 57 } // namespace remoting |
| 62 | 58 |
| 63 #endif // REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ | 59 #endif // REMOTING_PROTOCOL_PROTOBUF_VIDEO_WRITER_H_ |
| OLD | NEW |