OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 MEDIA_FILTERS_FAKE_VIDEO_DECODER_H_ | 5 #ifndef MEDIA_FILTERS_FAKE_VIDEO_DECODER_H_ |
6 #define MEDIA_FILTERS_FAKE_VIDEO_DECODER_H_ | 6 #define MEDIA_FILTERS_FAKE_VIDEO_DECODER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 virtual ~FakeVideoDecoder(); | 36 virtual ~FakeVideoDecoder(); |
37 | 37 |
38 // VideoDecoder implementation. | 38 // VideoDecoder implementation. |
39 virtual void Initialize(const VideoDecoderConfig& config, | 39 virtual void Initialize(const VideoDecoderConfig& config, |
40 bool low_delay, | 40 bool low_delay, |
41 const PipelineStatusCB& status_cb, | 41 const PipelineStatusCB& status_cb, |
42 const OutputCB& output_cb) OVERRIDE; | 42 const OutputCB& output_cb) OVERRIDE; |
43 virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer, | 43 virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer, |
44 const DecodeCB& decode_cb) OVERRIDE; | 44 const DecodeCB& decode_cb) OVERRIDE; |
45 virtual void Reset(const base::Closure& closure) OVERRIDE; | 45 virtual void Reset(const base::Closure& closure) OVERRIDE; |
46 virtual void Stop() OVERRIDE; | |
47 virtual int GetMaxDecodeRequests() const OVERRIDE; | 46 virtual int GetMaxDecodeRequests() const OVERRIDE; |
48 | 47 |
49 // Holds the next init/decode/reset callback from firing. | 48 // Holds the next init/decode/reset callback from firing. |
50 void HoldNextInit(); | 49 void HoldNextInit(); |
51 void HoldDecode(); | 50 void HoldDecode(); |
52 void HoldNextReset(); | 51 void HoldNextReset(); |
53 | 52 |
54 // Satisfies the pending init/decode/reset callback, which must be ready to | 53 // Satisfies the pending init/decode/reset callback, which must be ready to |
55 // fire when these methods are called. | 54 // fire when these methods are called. |
56 void SatisfyInit(); | 55 void SatisfyInit(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 108 |
110 // NOTE: Weak pointers must be invalidated before all other member variables. | 109 // NOTE: Weak pointers must be invalidated before all other member variables. |
111 base::WeakPtrFactory<FakeVideoDecoder> weak_factory_; | 110 base::WeakPtrFactory<FakeVideoDecoder> weak_factory_; |
112 | 111 |
113 DISALLOW_COPY_AND_ASSIGN(FakeVideoDecoder); | 112 DISALLOW_COPY_AND_ASSIGN(FakeVideoDecoder); |
114 }; | 113 }; |
115 | 114 |
116 } // namespace media | 115 } // namespace media |
117 | 116 |
118 #endif // MEDIA_FILTERS_FAKE_VIDEO_DECODER_H_ | 117 #endif // MEDIA_FILTERS_FAKE_VIDEO_DECODER_H_ |
OLD | NEW |