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

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

Issue 5624002: Move more code from headers to implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 10 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) 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 #include "media/base/filter_collection.h" 5 #include "media/base/filter_collection.h"
6 6
7 namespace media { 7 namespace media {
8 8
9 FilterCollection::FilterCollection() { 9 FilterCollection::FilterCollection() {}
10 } 10
11 FilterCollection::~FilterCollection() {}
11 12
12 void FilterCollection::AddDataSource(DataSource* filter) { 13 void FilterCollection::AddDataSource(DataSource* filter) {
13 AddFilter(DATA_SOURCE, filter); 14 AddFilter(DATA_SOURCE, filter);
14 } 15 }
15 16
16 void FilterCollection::AddDemuxer(Demuxer* filter) { 17 void FilterCollection::AddDemuxer(Demuxer* filter) {
17 AddFilter(DEMUXER, filter); 18 AddFilter(DEMUXER, filter);
18 } 19 }
19 20
20 void FilterCollection::AddVideoDecoder(VideoDecoder* filter) { 21 void FilterCollection::AddVideoDecoder(VideoDecoder* filter) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 ++it; 94 ++it;
94 } 95 }
95 96
96 if (it != filters_.end()) { 97 if (it != filters_.end()) {
97 *filter_out = it->second.get(); 98 *filter_out = it->second.get();
98 filters_.erase(it); 99 filters_.erase(it);
99 } 100 }
100 } 101 }
101 102
102 } // namespace media 103 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698