| Index: media/filters/file_data_source.cc
|
| diff --git a/media/filters/file_data_source.cc b/media/filters/file_data_source.cc
|
| index 2f34718a47f684975e4ff192884d822ae1b9f2ac..341347e78a1be64c420ca73fcef77f2ed9103ceb 100644
|
| --- a/media/filters/file_data_source.cc
|
| +++ b/media/filters/file_data_source.cc
|
| @@ -25,6 +25,17 @@ bool FileDataSource::Initialize(const base::FilePath& file_path) {
|
| return true;
|
| }
|
|
|
| +bool FileDataSource::InitializeFromPlatformFile(
|
| + const base::PlatformFile& file) {
|
| + DCHECK(!file_.IsValid());
|
| +
|
| + if (!file_.Initialize(file))
|
| + return false;
|
| +
|
| + UpdateHostBytes();
|
| + return true;
|
| +}
|
| +
|
| void FileDataSource::set_host(DataSourceHost* host) {
|
| DataSource::set_host(host);
|
| UpdateHostBytes();
|
|
|