#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/filters/blocking_url_protocol.h"
#include <stddef.h>
#include "base/functional/bind.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread_restrictions.h"
#include "media/base/data_source.h"
#include "media/ffmpeg/ffmpeg_common.h"
namespace media {
BlockingUrlProtocol::BlockingUrlProtocol(DataSource* data_source,
const base::RepeatingClosure& error_cb)
: … { … }
BlockingUrlProtocol::~BlockingUrlProtocol() = default;
void BlockingUrlProtocol::Abort() { … }
int BlockingUrlProtocol::Read(int size, uint8_t* data) { … }
bool BlockingUrlProtocol::GetPosition(int64_t* position_out) { … }
bool BlockingUrlProtocol::SetPosition(int64_t position) { … }
bool BlockingUrlProtocol::GetSize(int64_t* size_out) { … }
bool BlockingUrlProtocol::IsStreaming() { … }
void BlockingUrlProtocol::SignalReadCompleted(int size) { … }
}