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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 WEBKIT_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_
6 #define WEBKIT_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_
7
8 #include "base/callback.h"
9 #include "base/platform_file.h"
10 #include "webkit/storage/webkit_storage_export.h"
11
12 namespace base {
13 class FilePath;
14 }
15
16 namespace fileapi {
17
18 class FileSystemURL;
19
20 class WEBKIT_STORAGE_EXPORT CopyOrMoveFileValidator {
21 public:
22 // Callback that is invoked when validation completes. A result of
23 // base::PLATFORM_FILE_OK means the file validated.
24 typedef base::Callback<void(base::PlatformFileError result)> ResultCallback;
25
26 virtual ~CopyOrMoveFileValidator() {}
27
28 virtual void StartValidation(const ResultCallback& result_callback) = 0;
29 };
30
31 class CopyOrMoveFileValidatorFactory {
32 public:
33 virtual ~CopyOrMoveFileValidatorFactory() {}
34
35 // This method must always return a non-NULL validator. |src_url| is needed
36 // in addition to |platform_path| because in the obfuscated file system
37 // case, |platform_path| will be an obfuscated filename and extension.
38 virtual CopyOrMoveFileValidator* CreateCopyOrMoveFileValidator(
39 const FileSystemURL& src_url,
40 const base::FilePath& platform_path) = 0;
41 };
42
43 } // namespace fileapi
44
45 #endif // WEBKIT_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_
OLDNEW
« 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