Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: media/filters/fake_video_decoder.h

Issue 2533273002: media: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/filters/decoder_selector.h ('k') | media/filters/ffmpeg_video_decoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <list> 10 #include <list>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/callback_helpers.h" 14 #include "base/callback_helpers.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "base/threading/thread_checker.h" 17 #include "base/threading/thread_checker.h"
18 #include "media/base/callback_holder.h" 18 #include "media/base/callback_holder.h"
19 #include "media/base/decoder_buffer.h" 19 #include "media/base/decoder_buffer.h"
20 #include "media/base/pipeline_status.h" 20 #include "media/base/pipeline_status.h"
21 #include "media/base/video_decoder.h" 21 #include "media/base/video_decoder.h"
22 #include "media/base/video_decoder_config.h" 22 #include "media/base/video_decoder_config.h"
23 #include "media/base/video_frame.h" 23 #include "media/base/video_frame.h"
24 #include "ui/gfx/geometry/size.h" 24 #include "ui/gfx/geometry/size.h"
25 25
26 using base::ResetAndReturn; 26 using base::ResetAndReturn;
27 27
28 namespace base {
29 class SingleThreadTaskRunner;
30 }
31
32 namespace media { 28 namespace media {
33 29
34 typedef base::Callback<void(int)> BytesDecodedCB; 30 typedef base::Callback<void(int)> BytesDecodedCB;
35 31
36 class FakeVideoDecoder : public VideoDecoder { 32 class FakeVideoDecoder : public VideoDecoder {
37 public: 33 public:
38 // Constructs an object with a decoding delay of |decoding_delay| frames. 34 // Constructs an object with a decoding delay of |decoding_delay| frames.
39 // |bytes_decoded_cb| is called after each decode. The sum of the byte 35 // |bytes_decoded_cb| is called after each decode. The sum of the byte
40 // count over all calls will be equal to total_bytes_decoded(). 36 // count over all calls will be equal to total_bytes_decoded().
41 FakeVideoDecoder(int decoding_delay, 37 FakeVideoDecoder(int decoding_delay,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 119
124 // NOTE: Weak pointers must be invalidated before all other member variables. 120 // NOTE: Weak pointers must be invalidated before all other member variables.
125 base::WeakPtrFactory<FakeVideoDecoder> weak_factory_; 121 base::WeakPtrFactory<FakeVideoDecoder> weak_factory_;
126 122
127 DISALLOW_COPY_AND_ASSIGN(FakeVideoDecoder); 123 DISALLOW_COPY_AND_ASSIGN(FakeVideoDecoder);
128 }; 124 };
129 125
130 } // namespace media 126 } // namespace media
131 127
132 #endif // MEDIA_FILTERS_FAKE_VIDEO_DECODER_H_ 128 #endif // MEDIA_FILTERS_FAKE_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « media/filters/decoder_selector.h ('k') | media/filters/ffmpeg_video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698