Chromium Code Reviews| 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" | |
|
Lei Zhang
2013/08/07 01:03:05
nit: forward-decl
Greg Billock
2013/08/07 17:00:56
Done.
| |
| 10 #include "base/memory/scoped_ptr.h" | |
|
Lei Zhang
2013/08/07 01:03:05
nit: remove
Greg Billock
2013/08/07 17:00:56
Done.
| |
| 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 { | |
|
vandebo (ex-Chrome)
2013/08/07 16:13:14
nit: AVScanningFileValidator ?
vandebo (ex-Chrome)
2013/08/07 17:11:11
Comment missed.
Greg Billock
2013/08/07 17:42:56
Looks good, but not done yet -- that'll mean rerun
| |
| 17 public: | |
| 18 virtual ~ScanningFileValidator(); | |
| 19 | |
| 20 virtual void StartPreWriteValidation( | |
|
vandebo (ex-Chrome)
2013/08/07 16:13:14
You don't need this, remove.
Greg Billock
2013/08/07 17:00:56
Done.
| |
| 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(); | |
|
Lei Zhang
2013/08/07 01:03:05
nit: not explicit
Greg Billock
2013/08/07 17:00:56
Done.
| |
| 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 |