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

Side by Side Diff: webkit/chromeos/fileapi/cros_mount_point_provider.h

Issue 11804005: Cleanup file permission check code in FileAPIMessageFilter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros+native-local perm fix Created 7 years, 11 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_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ 5 #ifndef WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_
6 #define WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ 6 #define WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 fileapi::FileSystemType type, 50 fileapi::FileSystemType type,
51 bool create, 51 bool create,
52 const ValidateFileSystemCallback& callback) OVERRIDE; 52 const ValidateFileSystemCallback& callback) OVERRIDE;
53 virtual FilePath GetFileSystemRootPathOnFileThread( 53 virtual FilePath GetFileSystemRootPathOnFileThread(
54 const fileapi::FileSystemURL& url, 54 const fileapi::FileSystemURL& url,
55 bool create) OVERRIDE; 55 bool create) OVERRIDE;
56 virtual bool IsAccessAllowed(const fileapi::FileSystemURL& url) OVERRIDE; 56 virtual bool IsAccessAllowed(const fileapi::FileSystemURL& url) OVERRIDE;
57 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE; 57 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE;
58 virtual fileapi::FileSystemFileUtil* GetFileUtil( 58 virtual fileapi::FileSystemFileUtil* GetFileUtil(
59 fileapi::FileSystemType type) OVERRIDE; 59 fileapi::FileSystemType type) OVERRIDE;
60 virtual FilePath GetPathForPermissionsCheck(const FilePath& virtual_path) 60 virtual fileapi::FilePermissionPolicy GetPermissionPolicy(
61 const OVERRIDE; 61 const fileapi::FileSystemURL& url,
62 int permissions) const OVERRIDE;
62 virtual fileapi::FileSystemOperation* CreateFileSystemOperation( 63 virtual fileapi::FileSystemOperation* CreateFileSystemOperation(
63 const fileapi::FileSystemURL& url, 64 const fileapi::FileSystemURL& url,
64 fileapi::FileSystemContext* context, 65 fileapi::FileSystemContext* context,
65 base::PlatformFileError* error_code) const OVERRIDE; 66 base::PlatformFileError* error_code) const OVERRIDE;
66 virtual webkit_blob::FileStreamReader* CreateFileStreamReader( 67 virtual webkit_blob::FileStreamReader* CreateFileStreamReader(
67 const fileapi::FileSystemURL& path, 68 const fileapi::FileSystemURL& path,
68 int64 offset, 69 int64 offset,
69 const base::Time& expected_modification_time, 70 const base::Time& expected_modification_time,
70 fileapi::FileSystemContext* context) const OVERRIDE; 71 fileapi::FileSystemContext* context) const OVERRIDE;
71 virtual fileapi::FileStreamWriter* CreateFileStreamWriter( 72 virtual fileapi::FileStreamWriter* CreateFileStreamWriter(
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 115
115 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; 116 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
116 scoped_ptr<FileAccessPermissions> file_access_permissions_; 117 scoped_ptr<FileAccessPermissions> file_access_permissions_;
117 scoped_ptr<fileapi::LocalFileUtil> local_file_util_; 118 scoped_ptr<fileapi::LocalFileUtil> local_file_util_;
118 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider); 119 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider);
119 }; 120 };
120 121
121 } // namespace chromeos 122 } // namespace chromeos
122 123
123 #endif // WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ 124 #endif // WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_
OLDNEW
« no previous file with comments | « content/browser/fileapi/fileapi_message_filter.cc ('k') | webkit/chromeos/fileapi/cros_mount_point_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698