OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SCANNING_FILE_VALIDATOR_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SCANNING_FILE_VALIDATOR_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/files/file_path.h" |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" |
| 12 |
| 13 namespace chrome { |
| 14 |
| 15 // This class supports AV scanning on post write validation. |
| 16 class ScanningFileValidator : public fileapi::CopyOrMoveFileValidator { |
| 17 public: |
| 18 virtual ~ScanningFileValidator(); |
| 19 |
| 20 virtual void StartPreWriteValidation( |
| 21 const ResultCallback& result_callback) = 0; |
| 22 |
| 23 // Runs AV checks on the resulting file (Windows-only). |
| 24 // Subclasses will not typically override this method. |
| 25 virtual void StartPostWriteValidation( |
| 26 const base::FilePath& dest_platform_path, |
| 27 const ResultCallback& result_callback) OVERRIDE; |
| 28 |
| 29 protected: |
| 30 explicit ScanningFileValidator(); |
| 31 |
| 32 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(ScanningFileValidator); |
| 34 }; |
| 35 |
| 36 } // namespace chrome |
| 37 |
| 38 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SCANNING_FILE_VALIDATOR_H_ |
OLD | NEW |