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

Side by Side Diff: webkit/browser/fileapi/isolated_mount_point_provider.cc

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 #include "webkit/browser/fileapi/isolated_mount_point_provider.h" 5 #include "webkit/browser/fileapi/isolated_mount_point_provider.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 106 }
107 107
108 CopyOrMoveFileValidatorFactory* 108 CopyOrMoveFileValidatorFactory*
109 IsolatedMountPointProvider::GetCopyOrMoveFileValidatorFactory( 109 IsolatedMountPointProvider::GetCopyOrMoveFileValidatorFactory(
110 FileSystemType type, base::PlatformFileError* error_code) { 110 FileSystemType type, base::PlatformFileError* error_code) {
111 DCHECK(error_code); 111 DCHECK(error_code);
112 *error_code = base::PLATFORM_FILE_OK; 112 *error_code = base::PLATFORM_FILE_OK;
113 return NULL; 113 return NULL;
114 } 114 }
115 115
116 void IsolatedMountPointProvider::InitializeCopyOrMoveFileValidatorFactory(
117 FileSystemType type,
118 scoped_ptr<CopyOrMoveFileValidatorFactory> factory) {
119 DCHECK(!factory);
120 }
121
122 FilePermissionPolicy IsolatedMountPointProvider::GetPermissionPolicy( 116 FilePermissionPolicy IsolatedMountPointProvider::GetPermissionPolicy(
123 const FileSystemURL& url, int permissions) const { 117 const FileSystemURL& url, int permissions) const {
124 if (url.type() == kFileSystemTypeDragged && url.path().empty()) { 118 if (url.type() == kFileSystemTypeDragged && url.path().empty()) {
125 // The root directory of the dragged filesystem must be always read-only. 119 // The root directory of the dragged filesystem must be always read-only.
126 if (permissions & ~fileapi::kReadFilePermissions) 120 if (permissions & ~fileapi::kReadFilePermissions)
127 return FILE_PERMISSION_ALWAYS_DENY; 121 return FILE_PERMISSION_ALWAYS_DENY;
128 } 122 }
129 // Access to isolated file systems should be checked using per-filesystem 123 // Access to isolated file systems should be checked using per-filesystem
130 // access permission. 124 // access permission.
131 return FILE_PERMISSION_USE_FILESYSTEM_PERMISSION; 125 return FILE_PERMISSION_USE_FILESYSTEM_PERMISSION;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void IsolatedMountPointProvider::DeleteFileSystem( 161 void IsolatedMountPointProvider::DeleteFileSystem(
168 const GURL& origin_url, 162 const GURL& origin_url,
169 FileSystemType type, 163 FileSystemType type,
170 FileSystemContext* context, 164 FileSystemContext* context,
171 const DeleteFileSystemCallback& callback) { 165 const DeleteFileSystemCallback& callback) {
172 NOTREACHED(); 166 NOTREACHED();
173 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); 167 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION);
174 } 168 }
175 169
176 } // namespace fileapi 170 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/isolated_mount_point_provider.h ('k') | webkit/browser/fileapi/sandbox_mount_point_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698