#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/filters/file_data_source.h"
#include <algorithm>
#include <utility>
#include "base/check_op.h"
#include "base/functional/callback.h"
namespace media {
FileDataSource::FileDataSource()
: … { … }
bool FileDataSource::Initialize(const base::FilePath& file_path) { … }
bool FileDataSource::Initialize(base::File file) { … }
void FileDataSource::Stop() { … }
void FileDataSource::Abort() { … }
void FileDataSource::Read(int64_t position,
int size,
uint8_t* data,
DataSource::ReadCB read_cb) { … }
bool FileDataSource::GetSize(int64_t* size_out) { … }
bool FileDataSource::IsStreaming() { … }
void FileDataSource::SetBitrate(int bitrate) { … }
FileDataSource::~FileDataSource() = default;
bool FileDataSource::PassedTimingAllowOriginCheck() { … }
bool FileDataSource::WouldTaintOrigin() { … }
}