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

Side by Side Diff: webkit/fileapi/copy_or_move_file_validator.h

Issue 14320038: Fix some includes in CopyOrMoveFileValidator code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | webkit/fileapi/cross_operation_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_ 5 #ifndef WEBKIT_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_
6 #define WEBKIT_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_ 6 #define WEBKIT_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/files/file_path.h"
10 #include "base/platform_file.h" 9 #include "base/platform_file.h"
11 10
11 namespace base {
12 class FilePath;
13 }
14
12 namespace fileapi { 15 namespace fileapi {
13 16
17 class FileSystemURL;
18
14 class CopyOrMoveFileValidator { 19 class CopyOrMoveFileValidator {
15 public: 20 public:
16 // Callback that is invoked when validation completes. A result of 21 // Callback that is invoked when validation completes. A result of
17 // base::PLATFORM_FILE_OK means the file validated. 22 // base::PLATFORM_FILE_OK means the file validated.
18 typedef base::Callback<void(base::PlatformFileError result)> ResultCallback; 23 typedef base::Callback<void(base::PlatformFileError result)> ResultCallback;
19 24
20 virtual ~CopyOrMoveFileValidator() {} 25 virtual ~CopyOrMoveFileValidator() {}
21 26
22 virtual void StartValidation(const ResultCallback& result_callback) = 0; 27 virtual void StartValidation(const ResultCallback& result_callback) = 0;
23 }; 28 };
24 29
25 class CopyOrMoveFileValidatorFactory { 30 class CopyOrMoveFileValidatorFactory {
26 public: 31 public:
27 virtual ~CopyOrMoveFileValidatorFactory() {} 32 virtual ~CopyOrMoveFileValidatorFactory() {}
28 33
29 // This method must always return a non-NULL validator. |src_url| is needed 34 // This method must always return a non-NULL validator. |src_url| is needed
30 // in addition to |platform_path| because in the obfuscated file system 35 // in addition to |platform_path| because in the obfuscated file system
31 // case, |platform_path| will be an obfuscated filename and extension. 36 // case, |platform_path| will be an obfuscated filename and extension.
32 virtual CopyOrMoveFileValidator* CreateCopyOrMoveFileValidator( 37 virtual CopyOrMoveFileValidator* CreateCopyOrMoveFileValidator(
33 const FileSystemURL& src_url, 38 const FileSystemURL& src_url,
34 const base::FilePath& platform_path) = 0; 39 const base::FilePath& platform_path) = 0;
35 }; 40 };
36 41
37 } // namespace fileapi 42 } // namespace fileapi
38 43
39 #endif // WEBKIT_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_ 44 #endif // WEBKIT_FILEAPI_COPY_OR_MOVE_FILE_VALIDATOR_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/fileapi/cross_operation_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698