| 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/browser/fileapi/local_file_util.h" | 5 #include "webkit/browser/fileapi/local_file_util.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/files/file_enumerator.h" | 8 #include "base/files/file_enumerator.h" |
| 9 #include "base/files/file_util_proxy.h" | 9 #include "base/files/file_util_proxy.h" |
| 10 #include "googleurl/src/gurl.h" | 10 #include "url/gurl.h" |
| 11 #include "webkit/browser/fileapi/file_system_context.h" | 11 #include "webkit/browser/fileapi/file_system_context.h" |
| 12 #include "webkit/browser/fileapi/file_system_operation_context.h" | 12 #include "webkit/browser/fileapi/file_system_operation_context.h" |
| 13 #include "webkit/browser/fileapi/file_system_url.h" | 13 #include "webkit/browser/fileapi/file_system_url.h" |
| 14 #include "webkit/browser/fileapi/native_file_util.h" | 14 #include "webkit/browser/fileapi/native_file_util.h" |
| 15 #include "webkit/common/fileapi/file_system_types.h" | 15 #include "webkit/common/fileapi/file_system_types.h" |
| 16 #include "webkit/common/fileapi/file_system_util.h" | 16 #include "webkit/common/fileapi/file_system_util.h" |
| 17 | 17 |
| 18 namespace fileapi { | 18 namespace fileapi { |
| 19 | 19 |
| 20 using base::PlatformFileError; | 20 using base::PlatformFileError; |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 base::FilePath* platform_path) { | 248 base::FilePath* platform_path) { |
| 249 DCHECK(file_info); | 249 DCHECK(file_info); |
| 250 // We're just returning the local file information. | 250 // We're just returning the local file information. |
| 251 *error = GetFileInfo(context, url, file_info, platform_path); | 251 *error = GetFileInfo(context, url, file_info, platform_path); |
| 252 if (*error == base::PLATFORM_FILE_OK && file_info->is_directory) | 252 if (*error == base::PLATFORM_FILE_OK && file_info->is_directory) |
| 253 *error = base::PLATFORM_FILE_ERROR_NOT_A_FILE; | 253 *error = base::PLATFORM_FILE_ERROR_NOT_A_FILE; |
| 254 return webkit_blob::ScopedFile(); | 254 return webkit_blob::ScopedFile(); |
| 255 } | 255 } |
| 256 | 256 |
| 257 } // namespace fileapi | 257 } // namespace fileapi |
| OLD | NEW |