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

Unified Diff: webkit/browser/fileapi/copy_or_move_file_validator.h

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build Created 6 years, 3 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: webkit/browser/fileapi/copy_or_move_file_validator.h
diff --git a/webkit/browser/fileapi/copy_or_move_file_validator.h b/webkit/browser/fileapi/copy_or_move_file_validator.h
index 9ade9e589be38146a2d7a9088c5b9be473421509..2d5c629cde003b868b7baa003f8aeb1419313b43 100644
--- a/webkit/browser/fileapi/copy_or_move_file_validator.h
+++ b/webkit/browser/fileapi/copy_or_move_file_validator.h
@@ -1,54 +1,5 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
+// Copyright 2014 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 WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_
-#define WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_
-
-#include "base/callback.h"
-#include "base/files/file.h"
-#include "webkit/browser/storage_browser_export.h"
-
-namespace base {
-class FilePath;
-}
-
-namespace storage {
-
-class FileSystemURL;
-
-class STORAGE_EXPORT CopyOrMoveFileValidator {
- public:
- // Callback that is invoked when validation completes. A result of
- // base::File::FILE_OK means the file validated.
- typedef base::Callback<void(base::File::Error result)> ResultCallback;
-
- virtual ~CopyOrMoveFileValidator() {}
-
- // Called on a source file before copying or moving to the final
- // destination.
- virtual void StartPreWriteValidation(
- const ResultCallback& result_callback) = 0;
-
- // Called on a destination file after copying or moving to the final
- // destination. Suitable for running Anti-Virus checks.
- virtual void StartPostWriteValidation(
- const base::FilePath& dest_platform_path,
- const ResultCallback& result_callback) = 0;
-};
-
-class CopyOrMoveFileValidatorFactory {
- public:
- virtual ~CopyOrMoveFileValidatorFactory() {}
-
- // This method must always return a non-NULL validator. |src_url| is needed
- // in addition to |platform_path| because in the obfuscated file system
- // case, |platform_path| will be an obfuscated filename and extension.
- virtual CopyOrMoveFileValidator* CreateCopyOrMoveFileValidator(
- const FileSystemURL& src_url,
- const base::FilePath& platform_path) = 0;
-};
-
-} // namespace storage
-
-#endif // WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_
+#include "storage/browser/fileapi/copy_or_move_file_validator.h"
« no previous file with comments | « webkit/browser/fileapi/async_file_util_adapter.cc ('k') | webkit/browser/fileapi/copy_or_move_operation_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698