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

Unified Diff: media/base/factory.cc

Issue 3452030: FBTF: Moves code to the headers. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/factory.h ('k') | media/base/filters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/factory.cc
diff --git a/media/base/factory.cc b/media/base/factory.cc
new file mode 100644
index 0000000000000000000000000000000000000000..685d1e7dcf0ba205948bddeb9fd40975fbe1b7f7
--- /dev/null
+++ b/media/base/factory.cc
@@ -0,0 +1,33 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "media/base/factory.h"
+
+namespace media {
+
+FilterFactory::FilterFactory() {}
+
+FilterFactory::~FilterFactory() {}
+
+FilterFactoryCollection::FilterFactoryCollection() {}
+
+void FilterFactoryCollection::AddFactory(FilterFactory* factory) {
+ factories_.push_back(factory);
+}
+
+MediaFilter* FilterFactoryCollection::Create(FilterType filter_type,
+ const MediaFormat& media_format) {
+ MediaFilter* filter = NULL;
+ for (FactoryVector::iterator factory = factories_.begin();
+ !filter && factory != factories_.end();
+ ++factory) {
+ filter = (*factory)->Create(filter_type, media_format);
+ }
+ return filter;
+}
+
+FilterFactoryCollection::~FilterFactoryCollection() {}
+
+
+} // namespace media
« no previous file with comments | « media/base/factory.h ('k') | media/base/filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698