| Index: chrome/browser/media_galleries/fileapi/scanning_file_validator.h
|
| diff --git a/chrome/browser/media_galleries/fileapi/scanning_file_validator.h b/chrome/browser/media_galleries/fileapi/scanning_file_validator.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b6dca15d3abd6d96f3c4afd8643a095734614793
|
| --- /dev/null
|
| +++ b/chrome/browser/media_galleries/fileapi/scanning_file_validator.h
|
| @@ -0,0 +1,38 @@
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SCANNING_FILE_VALIDATOR_H_
|
| +#define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SCANNING_FILE_VALIDATOR_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/files/file_path.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "webkit/browser/fileapi/copy_or_move_file_validator.h"
|
| +
|
| +namespace chrome {
|
| +
|
| +// This class supports AV scanning on post write validation.
|
| +class ScanningFileValidator : public fileapi::CopyOrMoveFileValidator {
|
| + public:
|
| + virtual ~ScanningFileValidator();
|
| +
|
| + virtual void StartPreWriteValidation(
|
| + const ResultCallback& result_callback) = 0;
|
| +
|
| + // Runs AV checks on the resulting file (Windows-only).
|
| + // Subclasses will not typically override this method.
|
| + virtual void StartPostWriteValidation(
|
| + const base::FilePath& dest_platform_path,
|
| + const ResultCallback& result_callback) OVERRIDE;
|
| +
|
| + protected:
|
| + explicit ScanningFileValidator();
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(ScanningFileValidator);
|
| +};
|
| +
|
| +} // namespace chrome
|
| +
|
| +#endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SCANNING_FILE_VALIDATOR_H_
|
|
|