| 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_CLIENT_DECODER_VERBATIM_H_ | 5 #ifndef REMOTING_CLIENT_DECODER_VERBATIM_H_ |
| 6 #define REMOTING_CLIENT_DECODER_VERBATIM_H_ | 6 #define REMOTING_CLIENT_DECODER_VERBATIM_H_ |
| 7 | 7 |
| 8 #include "remoting/client/decoder.h" | 8 #include "remoting/client/decoder.h" |
| 9 | 9 |
| 10 namespace remoting { | 10 namespace remoting { |
| 11 | 11 |
| 12 class DecoderVerbatim : public Decoder { | 12 class DecoderVerbatim : public Decoder { |
| 13 public: | 13 public: |
| 14 DecoderVerbatim(PartialDecodeDoneCallback* partial_decode_done_callback, | 14 DecoderVerbatim() { |
| 15 DecodeDoneCallback* decode_done_callback) | |
| 16 : Decoder(partial_decode_done_callback, decode_done_callback) { | |
| 17 } | 15 } |
| 18 | 16 |
| 19 // Decoder implementations. | 17 // Decoder implementations. |
| 20 virtual bool BeginDecode(scoped_refptr<media::VideoFrame> frame); | 18 virtual bool BeginDecode(scoped_refptr<media::VideoFrame> frame, |
| 21 virtual bool PartialDecode(chromotocol_pb::HostMessage* message); | 19 UpdatedRects* update_rects, |
| 20 Task* partial_decode_done, |
| 21 Task* decode_done); |
| 22 virtual bool PartialDecode(HostMessage* message); |
| 22 virtual void EndDecode(); | 23 virtual void EndDecode(); |
| 23 | 24 |
| 24 private: | 25 private: |
| 26 // Tasks to call when decode is done. |
| 27 scoped_ptr<Task> partial_decode_done_; |
| 28 scoped_ptr<Task> decode_done_; |
| 29 |
| 25 // The video frame to write to. | 30 // The video frame to write to. |
| 26 scoped_refptr<media::VideoFrame> frame_; | 31 scoped_refptr<media::VideoFrame> frame_; |
| 32 UpdatedRects* updated_rects_; |
| 27 | 33 |
| 28 DISALLOW_COPY_AND_ASSIGN(DecoderVerbatim); | 34 DISALLOW_COPY_AND_ASSIGN(DecoderVerbatim); |
| 29 }; | 35 }; |
| 30 | 36 |
| 31 } // namespace remoting | 37 } // namespace remoting |
| 32 | 38 |
| 33 #endif // REMOTING_CLIENT_DECODER_VERBATIM_H_ | 39 #endif // REMOTING_CLIENT_DECODER_VERBATIM_H_ |
| OLD | NEW |