| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIDEO_STUB_H_ | 5 #ifndef REMOTING_PROTOCOL_VIDEO_STUB_H_ |
| 6 #define REMOTING_PROTOCOL_VIDEO_STUB_H_ | 6 #define REMOTING_PROTOCOL_VIDEO_STUB_H_ |
| 7 | 7 |
| 8 #include "remoting/proto/video.pb.h" | |
| 9 | |
| 10 class Task; | 8 class Task; |
| 11 | 9 |
| 12 namespace remoting { | 10 namespace remoting { |
| 11 |
| 12 class VideoPacket; |
| 13 |
| 13 namespace protocol { | 14 namespace protocol { |
| 14 | 15 |
| 15 class VideoStub { | 16 class VideoStub { |
| 16 public: | 17 public: |
| 17 virtual ~VideoStub() { } | 18 virtual ~VideoStub() { } |
| 18 | 19 |
| 19 // TODO(sergeyu): VideoPacket is the protobuf message that is used to send | 20 // TODO(sergeyu): VideoPacket is the protobuf message that is used to send |
| 20 // video packets in protobuf stream. It should not be used here. Add another | 21 // video packets in protobuf stream. It should not be used here. Add another |
| 21 // struct and use it to represent video packets internally. | 22 // struct and use it to represent video packets internally. |
| 22 virtual void ProcessVideoPacket(const VideoPacket* video_packet, | 23 virtual void ProcessVideoPacket(const VideoPacket* video_packet, |
| 23 Task* done) = 0; | 24 Task* done) = 0; |
| 24 | 25 |
| 25 protected: | 26 protected: |
| 26 VideoStub() { } | 27 VideoStub() { } |
| 27 | 28 |
| 28 private: | 29 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(VideoStub); | 30 DISALLOW_COPY_AND_ASSIGN(VideoStub); |
| 30 }; | 31 }; |
| 31 | 32 |
| 32 } // namespace protocol | 33 } // namespace protocol |
| 33 } // namespace remoting | 34 } // namespace remoting |
| 34 | 35 |
| 35 #endif // REMOTING_PROTOCOL_VIDEO_STUB_H_ | 36 #endif // REMOTING_PROTOCOL_VIDEO_STUB_H_ |
| OLD | NEW |