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

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

Issue 8231004: Remaining cleanup (base::Bind): Replacing FileUtilProxy calls with new callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: got it building Created 9 years, 2 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 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_
7 7
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util_proxy.h" 9 #include "base/file_util_proxy.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
11 11
12 namespace base { 12 namespace base {
13 class Time; 13 class Time;
14 } 14 }
15 15
16 namespace fileapi { 16 namespace fileapi {
17 17
18 using base::PlatformFile; 18 using base::PlatformFile;
19 using base::PlatformFileError; 19 using base::PlatformFileError;
20 class FileSystemOperationContext; 20 class FileSystemOperationContext;
21 21
22 // A large part of this implementation is taken from base::FileUtilProxy. 22 // A large part of this implementation is taken from base::FileUtilProxy.
23 // TODO(dmikurube, kinuko): Clean up base::FileUtilProxy to factor out common 23 // TODO(kinuko): Rewrite or replace this entire class with PostTaskAndReply.
24 // routines. It includes dropping FileAPI-specific routines from FileUtilProxy.
25 // 24 //
26 // The default implementations of the virtual methods below (*1) assume the 25 // The default implementations of the virtual methods below (*1) assume the
27 // given paths are native ones for the host platform. The subclasses that 26 // given paths are native ones for the host platform. The subclasses that
28 // perform local path translation/obfuscation must override them. 27 // perform local path translation/obfuscation must override them.
29 // (*1) All virtual methods which receive FilePath as their arguments: 28 // (*1) All virtual methods which receive FilePath as their arguments:
30 // CreateOrOpen, EnsureFileExists, GetLocalFilePath, GetFileInfo, 29 // CreateOrOpen, EnsureFileExists, GetLocalFilePath, GetFileInfo,
31 // ReadDirectory, CreateDirectory, CopyOrMoveFile, DeleteFile, 30 // ReadDirectory, CreateDirectory, CopyOrMoveFile, DeleteFile,
32 // DeleteSingleDirectory, Touch, Truncate, PathExists, DirectoryExists, 31 // DeleteSingleDirectory, Touch, Truncate, PathExists, DirectoryExists,
33 // IsDirectoryEmpty and CreateFileEnumerator. 32 // IsDirectoryEmpty and CreateFileEnumerator.
34 // 33 //
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 284
286 private: 285 private:
287 scoped_ptr<FileSystemFileUtil> underlying_file_util_; 286 scoped_ptr<FileSystemFileUtil> underlying_file_util_;
288 287
289 DISALLOW_COPY_AND_ASSIGN(FileSystemFileUtil); 288 DISALLOW_COPY_AND_ASSIGN(FileSystemFileUtil);
290 }; 289 };
291 290
292 } // namespace fileapi 291 } // namespace fileapi
293 292
294 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ 293 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698