| 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 #ifndef MEDIA_BASE_DEMUXER_FACTORY_H_ | |
| 6 #define MEDIA_BASE_DEMUXER_FACTORY_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/callback.h" | |
| 11 #include "media/base/media_export.h" | |
| 12 #include "media/base/pipeline_status.h" | |
| 13 | |
| 14 namespace media { | |
| 15 | |
| 16 class Demuxer; | |
| 17 | |
| 18 // Asynchronous factory interface for building Demuxer objects. | |
| 19 class MEDIA_EXPORT DemuxerFactory { | |
| 20 public: | |
| 21 // Ownership of the Demuxer is transferred through this callback. | |
| 22 typedef base::Callback<void(PipelineStatus, Demuxer*)> BuildCallback; | |
| 23 | |
| 24 virtual ~DemuxerFactory(); | |
| 25 | |
| 26 // Builds a Demuxer for |url| and returns it via |callback|. | |
| 27 virtual void Build(const std::string& url, const BuildCallback& callback) = 0; | |
| 28 }; | |
| 29 | |
| 30 } // namespace media | |
| 31 | |
| 32 #endif // MEDIA_BASE_DEMUXER_FACTORY_H_ | |
| OLD | NEW |