| Index: chrome/browser/media_galleries/fileapi/supported_image_type_validator.cc
|
| diff --git a/chrome/browser/media_galleries/fileapi/supported_image_type_validator.cc b/chrome/browser/media_galleries/fileapi/supported_image_type_validator.cc
|
| index 00c601d8644ccc9ea2abcac68cce3def5925de1d..ce9a1fc3fd8af653ad5a42a322f815d8568021a2 100644
|
| --- a/chrome/browser/media_galleries/fileapi/supported_image_type_validator.cc
|
| +++ b/chrome/browser/media_galleries/fileapi/supported_image_type_validator.cc
|
| @@ -112,7 +112,7 @@ bool SupportedImageTypeValidator::SupportsFileType(const base::FilePath& path) {
|
| }
|
|
|
| void SupportedImageTypeValidator::StartValidation(
|
| - const fileapi::CopyOrMoveFileValidator::ResultCallback& result_callback) {
|
| + const ResultCallback& result_callback) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| DCHECK(callback_.is_null());
|
| callback_ = result_callback;
|
| @@ -125,6 +125,19 @@ void SupportedImageTypeValidator::StartValidation(
|
| weak_factory_.GetWeakPtr()));
|
| }
|
|
|
| +void SupportedImageTypeValidator::StartPostWriteValidation(
|
| + const base::FilePath& dest_platform_path,
|
| + const ResultCallback& result_callback) {
|
| + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| + post_write_callback_ = result_callback;
|
| +
|
| + // TODO(gbillock): Insert AV call here in the right validator.
|
| + BrowserThread::PostTask(
|
| + BrowserThread::IO,
|
| + FROM_HERE,
|
| + base::Bind(post_write_callback_, base::PLATFORM_FILE_OK));
|
| +}
|
| +
|
| SupportedImageTypeValidator::SupportedImageTypeValidator(
|
| const base::FilePath& path)
|
| : path_(path),
|
|
|