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

Side by Side Diff: storage/browser/fileapi/local_file_util.cc

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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/local_file_util.h" 5 #include "storage/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 "storage/browser/fileapi/async_file_util_adapter.h"
11 #include "storage/browser/fileapi/file_system_context.h"
12 #include "storage/browser/fileapi/file_system_operation_context.h"
13 #include "storage/browser/fileapi/file_system_url.h"
14 #include "storage/browser/fileapi/native_file_util.h"
15 #include "storage/common/fileapi/file_system_types.h"
16 #include "storage/common/fileapi/file_system_util.h"
10 #include "url/gurl.h" 17 #include "url/gurl.h"
11 #include "webkit/browser/fileapi/async_file_util_adapter.h"
12 #include "webkit/browser/fileapi/file_system_context.h"
13 #include "webkit/browser/fileapi/file_system_operation_context.h"
14 #include "webkit/browser/fileapi/file_system_url.h"
15 #include "webkit/browser/fileapi/native_file_util.h"
16 #include "webkit/common/fileapi/file_system_types.h"
17 #include "webkit/common/fileapi/file_system_util.h"
18 18
19 namespace storage { 19 namespace storage {
20 20
21 AsyncFileUtil* AsyncFileUtil::CreateForLocalFileSystem() { 21 AsyncFileUtil* AsyncFileUtil::CreateForLocalFileSystem() {
22 return new AsyncFileUtilAdapter(new LocalFileUtil()); 22 return new AsyncFileUtilAdapter(new LocalFileUtil());
23 } 23 }
24 24
25 class LocalFileEnumerator : public FileSystemFileUtil::AbstractFileEnumerator { 25 class LocalFileEnumerator : public FileSystemFileUtil::AbstractFileEnumerator {
26 public: 26 public:
27 LocalFileEnumerator(const base::FilePath& platform_root_path, 27 LocalFileEnumerator(const base::FilePath& platform_root_path,
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 base::FilePath* platform_path) { 256 base::FilePath* platform_path) {
257 DCHECK(file_info); 257 DCHECK(file_info);
258 // We're just returning the local file information. 258 // We're just returning the local file information.
259 *error = GetFileInfo(context, url, file_info, platform_path); 259 *error = GetFileInfo(context, url, file_info, platform_path);
260 if (*error == base::File::FILE_OK && file_info->is_directory) 260 if (*error == base::File::FILE_OK && file_info->is_directory)
261 *error = base::File::FILE_ERROR_NOT_A_FILE; 261 *error = base::File::FILE_ERROR_NOT_A_FILE;
262 return storage::ScopedFile(); 262 return storage::ScopedFile();
263 } 263 }
264 264
265 } // namespace storage 265 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698