| OLD | NEW |
| (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 | |
| OLD | NEW |