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

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

Issue 6603034: Stop returning the true root path of each filesystem from openFileSystem.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/file_system_file_util.h" 5 #include "webkit/fileapi/file_system_file_util.h"
6 6
7 #include "base/file_util_proxy.h" 7 #include "base/file_util_proxy.h"
8 8
9 namespace fileapi { 9 namespace fileapi {
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 PlatformFileError FileSystemFileUtil::GetFileInfo( 61 PlatformFileError FileSystemFileUtil::GetFileInfo(
62 FileSystemOperationContext* unused, 62 FileSystemOperationContext* unused,
63 const FilePath& file_path, 63 const FilePath& file_path,
64 base::PlatformFileInfo* file_info) { 64 base::PlatformFileInfo* file_info) {
65 if (!file_util::PathExists(file_path)) 65 if (!file_util::PathExists(file_path))
66 return base::PLATFORM_FILE_ERROR_NOT_FOUND; 66 return base::PLATFORM_FILE_ERROR_NOT_FOUND;
67 if (!file_util::GetFileInfo(file_path, file_info)) 67 if (!file_util::GetFileInfo(file_path, file_info))
68 return base::PLATFORM_FILE_ERROR_FAILED; 68 return base::PLATFORM_FILE_ERROR_FAILED;
69 file_info->path = file_path;
69 return base::PLATFORM_FILE_OK; 70 return base::PLATFORM_FILE_OK;
70 } 71 }
71 72
72 PlatformFileError FileSystemFileUtil::ReadDirectory( 73 PlatformFileError FileSystemFileUtil::ReadDirectory(
73 FileSystemOperationContext* unused, 74 FileSystemOperationContext* unused,
74 const FilePath& file_path, 75 const FilePath& file_path,
75 std::vector<base::FileUtilProxy::Entry>* entries) { 76 std::vector<base::FileUtilProxy::Entry>* entries) {
76 // TODO(kkanetkar): Implement directory read in multiple chunks. 77 // TODO(kkanetkar): Implement directory read in multiple chunks.
77 if (!file_util::DirectoryExists(file_path)) 78 if (!file_util::DirectoryExists(file_path))
78 return base::PLATFORM_FILE_ERROR_NOT_FOUND; 79 return base::PLATFORM_FILE_ERROR_NOT_FOUND;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 return file_util::DirectoryExists(file_path); 261 return file_util::DirectoryExists(file_path);
261 } 262 }
262 263
263 bool FileSystemFileUtil::IsDirectoryEmpty( 264 bool FileSystemFileUtil::IsDirectoryEmpty(
264 FileSystemOperationContext* unused, 265 FileSystemOperationContext* unused,
265 const FilePath& file_path) { 266 const FilePath& file_path) {
266 return file_util::IsDirectoryEmpty(file_path); 267 return file_util::IsDirectoryEmpty(file_path);
267 } 268 }
268 269
269 } // namespace fileapi 270 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_context.cc ('k') | webkit/fileapi/file_system_mount_point_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698