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

Unified Diff: webkit/fileapi/copy_or_move_file_validator.h

Issue 15535006: Move browser-specific FileAPI code from webkit/fileapi to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/fileapi/copy_or_move_file_validator.h
diff --git a/webkit/fileapi/copy_or_move_file_validator.h b/webkit/fileapi/copy_or_move_file_validator.h
deleted file mode 100644
index 1c15fa952a23b270087e4e1f60c74d79211c4ffa..0000000000000000000000000000000000000000
--- a/webkit/fileapi/copy_or_move_file_validator.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// 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 WEBKIT_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_
-#define WEBKIT_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_
-
-#include "base/callback.h"
-#include "base/platform_file.h"
-#include "webkit/storage/webkit_storage_export.h"
-
-namespace base {
-class FilePath;
-}
-
-namespace fileapi {
-
-class FileSystemURL;
-
-class WEBKIT_STORAGE_EXPORT CopyOrMoveFileValidator {
- public:
- // Callback that is invoked when validation completes. A result of
- // base::PLATFORM_FILE_OK means the file validated.
- typedef base::Callback<void(base::PlatformFileError result)> ResultCallback;
-
- virtual ~CopyOrMoveFileValidator() {}
-
- virtual void StartValidation(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 fileapi
-
-#endif // WEBKIT_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_
« no previous file with comments | « webkit/chromeos/fileapi/cros_mount_point_provider.cc ('k') | webkit/fileapi/copy_or_move_file_validator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698