// Copyright 2012 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_FILTERS_BLOCKING_URL_PROTOCOL_H_ #define MEDIA_FILTERS_BLOCKING_URL_PROTOCOL_H_ #include <stdint.h> #include "base/functional/callback.h" #include "base/memory/raw_ptr.h" #include "base/synchronization/lock.h" #include "base/synchronization/waitable_event.h" #include "media/filters/ffmpeg_glue.h" namespace media { class DataSource; // An implementation of FFmpegURLProtocol that blocks until the underlying // asynchronous DataSource::Read() operation completes. Generally constructed on // the media thread and used by ffmpeg through the AVIO interface from a // sequenced blocking pool. class MEDIA_EXPORT BlockingUrlProtocol : public FFmpegURLProtocol { … }; } // namespace media #endif // MEDIA_FILTERS_BLOCKING_URL_PROTOCOL_H_