| OLD | NEW |
| 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/local_file_util.h" | 5 #include "webkit/browser/fileapi/local_file_util.h" |
| 6 | 6 |
| 7 #include "base/files/file_util_proxy.h" | 7 #include "base/files/file_util_proxy.h" |
| 8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
| 9 #include "webkit/fileapi/file_system_context.h" | 9 #include "webkit/browser/fileapi/file_system_context.h" |
| 10 #include "webkit/fileapi/file_system_mount_point_provider.h" | 10 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" |
| 11 #include "webkit/fileapi/file_system_operation_context.h" | 11 #include "webkit/browser/fileapi/file_system_operation_context.h" |
| 12 #include "webkit/browser/fileapi/native_file_util.h" |
| 12 #include "webkit/fileapi/file_system_types.h" | 13 #include "webkit/fileapi/file_system_types.h" |
| 13 #include "webkit/fileapi/file_system_url.h" | 14 #include "webkit/fileapi/file_system_url.h" |
| 14 #include "webkit/fileapi/file_system_util.h" | 15 #include "webkit/fileapi/file_system_util.h" |
| 15 #include "webkit/fileapi/native_file_util.h" | |
| 16 | 16 |
| 17 namespace fileapi { | 17 namespace fileapi { |
| 18 | 18 |
| 19 using base::PlatformFileError; | 19 using base::PlatformFileError; |
| 20 | 20 |
| 21 class LocalFileEnumerator : public FileSystemFileUtil::AbstractFileEnumerator { | 21 class LocalFileEnumerator : public FileSystemFileUtil::AbstractFileEnumerator { |
| 22 public: | 22 public: |
| 23 LocalFileEnumerator(const base::FilePath& platform_root_path, | 23 LocalFileEnumerator(const base::FilePath& platform_root_path, |
| 24 const base::FilePath& virtual_root_path, | 24 const base::FilePath& virtual_root_path, |
| 25 int file_type) | 25 int file_type) |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 base::FilePath* platform_path) { | 254 base::FilePath* platform_path) { |
| 255 DCHECK(file_info); | 255 DCHECK(file_info); |
| 256 // We're just returning the local file information. | 256 // We're just returning the local file information. |
| 257 *error = GetFileInfo(context, url, file_info, platform_path); | 257 *error = GetFileInfo(context, url, file_info, platform_path); |
| 258 if (*error == base::PLATFORM_FILE_OK && file_info->is_directory) | 258 if (*error == base::PLATFORM_FILE_OK && file_info->is_directory) |
| 259 *error = base::PLATFORM_FILE_ERROR_NOT_A_FILE; | 259 *error = base::PLATFORM_FILE_ERROR_NOT_A_FILE; |
| 260 return webkit_blob::ScopedFile(); | 260 return webkit_blob::ScopedFile(); |
| 261 } | 261 } |
| 262 | 262 |
| 263 } // namespace fileapi | 263 } // namespace fileapi |
| OLD | NEW |