// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MEDIA_BASE_MEDIA_URL_DEMUXER_H_ #define MEDIA_BASE_MEDIA_URL_DEMUXER_H_ #include <stddef.h> #include "base/functional/callback.h" #include "base/memory/raw_ptr.h" #include "base/memory/weak_ptr.h" #include "base/task/sequenced_task_runner.h" #include "media/base/demuxer.h" #include "net/storage_access_api/status.h" #include "url/gurl.h" namespace net { class SiteForCookies; } // namespace net namespace media { // Class that saves a URL for later retrieval. To be used in conjunction with // the MediaPlayerRenderer. // // Its primary purpose is to act as a dummy Demuxer, when there is no need // for DemuxerStreams (e.g. in the MediaPlayerRenderer case). For the most part, // its implementation of the Demuxer are NOPs that return the default values and // fire any provided callbacks immediately. // // If Pipeline where to be refactored to use a MediaResource instead of // a Demuxer, MediaUrlDemuxer should be refactored to inherit directly from // MediaResource. class MEDIA_EXPORT MediaUrlDemuxer : public Demuxer { … }; } // namespace media #endif // MEDIA_BASE_MEDIA_URL_DEMUXER_H_