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

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

Issue 10879002: kFileSystemTypeIsolated should be only used in the URL exposed to renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 8 years, 3 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/fileapi/isolated_mount_point_provider.h" 5 #include "webkit/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/file_path.h" 10 #include "base/file_path.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 bool IsolatedMountPointProvider::IsRestrictedFileName( 94 bool IsolatedMountPointProvider::IsRestrictedFileName(
95 const FilePath& filename) const { 95 const FilePath& filename) const {
96 // TODO(kinuko): We need to check platform-specific restricted file names 96 // TODO(kinuko): We need to check platform-specific restricted file names
97 // before we actually start allowing file creation in isolated file systems. 97 // before we actually start allowing file creation in isolated file systems.
98 return false; 98 return false;
99 } 99 }
100 100
101 FileSystemFileUtil* IsolatedMountPointProvider::GetFileUtil( 101 FileSystemFileUtil* IsolatedMountPointProvider::GetFileUtil(
102 FileSystemType type) { 102 FileSystemType type) {
103 switch (type) { 103 switch (type) {
104 case kFileSystemTypeIsolated:
105 case kFileSystemTypeNativeLocal: 104 case kFileSystemTypeNativeLocal:
106 return isolated_file_util_.get(); 105 return isolated_file_util_.get();
107 case kFileSystemTypeDragged: 106 case kFileSystemTypeDragged:
108 return dragged_file_util_.get(); 107 return dragged_file_util_.get();
109 case kFileSystemTypeNativeMedia: 108 case kFileSystemTypeNativeMedia:
110 return native_media_file_util_.get(); 109 return native_media_file_util_.get();
111 case kFileSystemTypeDeviceMedia: 110 case kFileSystemTypeDeviceMedia:
112 #if defined(SUPPORT_MEDIA_FILESYSTEM) 111 #if defined(SUPPORT_MEDIA_FILESYSTEM)
113 return device_media_file_util_.get(); 112 return device_media_file_util_.get();
114 #endif 113 #endif
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 void IsolatedMountPointProvider::DeleteFileSystem( 171 void IsolatedMountPointProvider::DeleteFileSystem(
173 const GURL& origin_url, 172 const GURL& origin_url,
174 FileSystemType type, 173 FileSystemType type,
175 FileSystemContext* context, 174 FileSystemContext* context,
176 const DeleteFileSystemCallback& callback) { 175 const DeleteFileSystemCallback& callback) {
177 NOTREACHED(); 176 NOTREACHED();
178 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION); 177 callback.Run(base::PLATFORM_FILE_ERROR_INVALID_OPERATION);
179 } 178 }
180 179
181 } // namespace fileapi 180 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/isolated_context_unittest.cc ('k') | webkit/tools/test_shell/simple_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698