#include "media/filters/memory_data_source.h"
#include <algorithm>
#include "base/check.h"
#include "base/functional/callback.h"
namespace media {
MemoryDataSource::MemoryDataSource(std::string data)
: … { … }
MemoryDataSource::MemoryDataSource(const uint8_t* data, size_t size)
: … { … }
MemoryDataSource::~MemoryDataSource() = default;
void MemoryDataSource::Read(int64_t position,
int size,
uint8_t* data,
DataSource::ReadCB read_cb) { … }
void MemoryDataSource::Stop() { … }
void MemoryDataSource::Abort() { … }
bool MemoryDataSource::GetSize(int64_t* size_out) { … }
bool MemoryDataSource::IsStreaming() { … }
void MemoryDataSource::SetBitrate(int bitrate) { … }
bool MemoryDataSource::PassedTimingAllowOriginCheck() { … }
bool MemoryDataSource::WouldTaintOrigin() { … }
}