OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_CLIENT_DECODER_VERBATIM_H_ |
| 6 #define REMOTING_CLIENT_DECODER_VERBATIM_H_ |
| 7 |
| 8 #include "remoting/client/decoder.h" |
| 9 |
| 10 namespace remoting { |
| 11 |
| 12 class DecoderVerbatim : public Decoder { |
| 13 public: |
| 14 DecoderVerbatim(PartialDecodeDoneCallback* partial_decode_done_callback, |
| 15 DecodeDoneCallback* decode_done_callback) |
| 16 : Decoder(partial_decode_done_callback, decode_done_callback) { |
| 17 } |
| 18 |
| 19 // Decoder implementations. |
| 20 virtual bool BeginDecode(scoped_refptr<media::VideoFrame> frame); |
| 21 virtual bool PartialDecode(chromotocol_pb::HostMessage* message); |
| 22 virtual void EndDecode(); |
| 23 |
| 24 private: |
| 25 // The video frame to write to. |
| 26 scoped_refptr<media::VideoFrame> frame_; |
| 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(DecoderVerbatim); |
| 29 }; |
| 30 |
| 31 } // namespace remoting |
| 32 |
| 33 #endif // REMOTING_CLIENT_DECODER_VERBATIM_H_ |
OLD | NEW |