Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2292)

Unified Diff: chrome/browser/media_galleries/fileapi/scanning_file_validator.h

Issue 21355004: [Downloads] Move client guid for AV scanning of downloaded files to chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..77a61fcff6fc1a8d2a49e6307b42a4bdc89e7356
--- /dev/null
+++ b/chrome/browser/media_galleries/fileapi/scanning_file_validator.h
@@ -0,0 +1,37 @@
+// 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 "webkit/browser/fileapi/copy_or_move_file_validator.h"
+
+namespace base {
+class FilePath;
+} // namespace base
+
+namespace chrome {
+
+// This class supports AV scanning on post write validation.
+class ScanningFileValidator : public fileapi::CopyOrMoveFileValidator {
+ public:
+ virtual ~ScanningFileValidator();
+
+ // 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:
+ ScanningFileValidator();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ScanningFileValidator);
+};
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SCANNING_FILE_VALIDATOR_H_

Powered by Google App Engine
This is Rietveld 408576698