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

Side by Side Diff: webkit/browser/fileapi/file_system_mount_point_provider.h

Issue 15729007: Cleanup: Remove fileapi::FileSystemMountPointProvider::InitializeCopyOrMoveFileValidatorFactory() a… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // Returns the specialized AsyncFileUtil for this mount point. 78 // Returns the specialized AsyncFileUtil for this mount point.
79 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) = 0; 79 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) = 0;
80 80
81 // Returns the specialized CopyOrMoveFileValidatorFactory for this mount 81 // Returns the specialized CopyOrMoveFileValidatorFactory for this mount
82 // point and |type|. If |error_code| is PLATFORM_FILE_OK and the result 82 // point and |type|. If |error_code| is PLATFORM_FILE_OK and the result
83 // is NULL, then no validator is required. 83 // is NULL, then no validator is required.
84 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( 84 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory(
85 FileSystemType type, base::PlatformFileError* error_code) = 0; 85 FileSystemType type, base::PlatformFileError* error_code) = 0;
86 86
87 // Initialize the CopyOrMoveFileValidatorFactory. Invalid to call more than
88 // once.
89 virtual void InitializeCopyOrMoveFileValidatorFactory(
90 FileSystemType type,
91 scoped_ptr<CopyOrMoveFileValidatorFactory> factory) = 0;
92
93 // Returns file permission policy we should apply for the given |url|. 87 // Returns file permission policy we should apply for the given |url|.
94 virtual FilePermissionPolicy GetPermissionPolicy( 88 virtual FilePermissionPolicy GetPermissionPolicy(
95 const FileSystemURL& url, 89 const FileSystemURL& url,
96 int permissions) const = 0; 90 int permissions) const = 0;
97 91
98 // Returns a new instance of the specialized FileSystemOperation for this 92 // Returns a new instance of the specialized FileSystemOperation for this
99 // mount point based on the given triplet of |origin_url|, |file_system_type| 93 // mount point based on the given triplet of |origin_url|, |file_system_type|
100 // and |virtual_path|. On failure to create a file system operation, set 94 // and |virtual_path|. On failure to create a file system operation, set
101 // |error_code| correspondingly. 95 // |error_code| correspondingly.
102 // This method is usually dispatched by 96 // This method is usually dispatched by
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 const std::string& extension_id) = 0; 162 const std::string& extension_id) = 0;
169 // Gets virtual path by known filesystem path. Returns false when filesystem 163 // Gets virtual path by known filesystem path. Returns false when filesystem
170 // path is not exposed by this provider. 164 // path is not exposed by this provider.
171 virtual bool GetVirtualPath(const base::FilePath& file_system_path, 165 virtual bool GetVirtualPath(const base::FilePath& file_system_path,
172 base::FilePath* virtual_path) = 0; 166 base::FilePath* virtual_path) = 0;
173 }; 167 };
174 168
175 } // namespace fileapi 169 } // namespace fileapi
176 170
177 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ 171 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/copy_or_move_file_validator_unittest.cc ('k') | webkit/browser/fileapi/isolated_mount_point_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698