| // Copyright 2013 The Chromium Authors |
| // 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_AV_SCANNING_FILE_VALIDATOR_H_ |
| #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_AV_SCANNING_FILE_VALIDATOR_H_ |
| |
| #include "components/download/public/common/quarantine_connection.h" |
| #include "storage/browser/file_system/copy_or_move_file_validator.h" |
| |
| namespace base { |
| class FilePath; |
| } // namespace base |
| |
| // This class supports AV scanning on post write validation. |
| class AVScanningFileValidator : public storage::CopyOrMoveFileValidator { |
| public: |
| AVScanningFileValidator(const AVScanningFileValidator&) = delete; |
| AVScanningFileValidator& operator=(const AVScanningFileValidator&) = delete; |
| |
| ~AVScanningFileValidator() override; |
| |
| // Runs AV checks on the resulting file (Windows-only). |
| // Subclasses will not typically override this method. |
| void StartPostWriteValidation(const base::FilePath& dest_platform_path, |
| ResultCallback result_callback) override; |
| |
| protected: |
| explicit AVScanningFileValidator( |
| download::QuarantineConnectionCallback quarantine_connection_callback); |
| |
| private: |
| download::QuarantineConnectionCallback quarantine_connection_callback_; |
| }; |
| |
| #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_AV_SCANNING_FILE_VALIDATOR_H_ |