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

Side by Side Diff: media/base/filters.cc

Issue 8936014: Removing DataSource from Filter hierarchy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved preload into a separate file. Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "media/base/filters.h" 5 #include "media/base/filters.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace media { 9 namespace media {
10 10
11 // static
12 const size_t DataSource::kReadError = static_cast<size_t>(-1);
13
14 void ResetAndRunCB(FilterStatusCB* cb, PipelineStatus status) { 11 void ResetAndRunCB(FilterStatusCB* cb, PipelineStatus status) {
15 DCHECK(!cb->is_null()); 12 DCHECK(!cb->is_null());
16 FilterStatusCB tmp_cb(*cb); 13 FilterStatusCB tmp_cb(*cb);
17 cb->Reset(); 14 cb->Reset();
18 tmp_cb.Run(status); 15 tmp_cb.Run(status);
19 } 16 }
20 17
21 void ResetAndRunCB(base::Closure* cb) { 18 void ResetAndRunCB(base::Closure* cb) {
22 DCHECK(!cb->is_null()); 19 DCHECK(!cb->is_null());
23 base::Closure tmp_cb(*cb); 20 base::Closure tmp_cb(*cb);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 77
81 AudioDecoder::AudioDecoder() {} 78 AudioDecoder::AudioDecoder() {}
82 79
83 AudioDecoder::~AudioDecoder() {} 80 AudioDecoder::~AudioDecoder() {}
84 81
85 void AudioDecoder::ConsumeAudioSamples(scoped_refptr<Buffer> buffer) { 82 void AudioDecoder::ConsumeAudioSamples(scoped_refptr<Buffer> buffer) {
86 consume_audio_samples_callback_.Run(buffer); 83 consume_audio_samples_callback_.Run(buffer);
87 } 84 }
88 85
89 } // namespace media 86 } // namespace media
OLDNEW
« no previous file with comments | « media/base/filters.h ('k') | media/base/mock_data_source_host.h » ('j') | media/media.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698