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

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

Issue 9860027: Remove DemuxerFactory and URL parameter from Pipeline. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: added some todos Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "media/filters/dummy_demuxer_factory.h"
6
7 #include "base/memory/scoped_ptr.h"
8 #include "media/filters/dummy_demuxer.h"
9
10 namespace media {
11
12 DummyDemuxerFactory::DummyDemuxerFactory(bool has_video,
13 bool has_audio,
14 bool local_source)
15 : has_video_(has_video),
16 has_audio_(has_audio),
17 local_source_(local_source) {
18 }
19
20 DummyDemuxerFactory::~DummyDemuxerFactory() {}
21
22 void DummyDemuxerFactory::Build(const std::string& url,
23 const BuildCallback& cb) {
24 scoped_refptr<DummyDemuxer> demuxer =
25 new DummyDemuxer(has_video_, has_audio_, local_source_);
26 cb.Run(PIPELINE_OK, demuxer.get());
27 }
28
29 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698