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

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

Issue 12051010: (For-try) Divide recursive Copy/Move into multiple async tasks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix Created 7 years, 11 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) 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 #ifndef WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ 5 #ifndef WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_
6 #define WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ 6 #define WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 FilePath* local_file_path) OVERRIDE; 61 FilePath* local_file_path) OVERRIDE;
62 virtual base::PlatformFileError Touch( 62 virtual base::PlatformFileError Touch(
63 FileSystemOperationContext* context, 63 FileSystemOperationContext* context,
64 const FileSystemURL& url, 64 const FileSystemURL& url,
65 const base::Time& last_access_time, 65 const base::Time& last_access_time,
66 const base::Time& last_modified_time) OVERRIDE; 66 const base::Time& last_modified_time) OVERRIDE;
67 virtual base::PlatformFileError Truncate( 67 virtual base::PlatformFileError Truncate(
68 FileSystemOperationContext* context, 68 FileSystemOperationContext* context,
69 const FileSystemURL& url, 69 const FileSystemURL& url,
70 int64 length) OVERRIDE; 70 int64 length) OVERRIDE;
71 virtual bool IsDirectoryEmpty(
72 FileSystemOperationContext* context,
73 const FileSystemURL& url) OVERRIDE;
74 virtual base::PlatformFileError CopyOrMoveFile( 71 virtual base::PlatformFileError CopyOrMoveFile(
75 FileSystemOperationContext* context, 72 FileSystemOperationContext* context,
76 const FileSystemURL& src_url, 73 const FileSystemURL& src_url,
77 const FileSystemURL& dest_url, 74 const FileSystemURL& dest_url,
78 bool copy) OVERRIDE; 75 bool copy) OVERRIDE;
79 virtual base::PlatformFileError CopyInForeignFile( 76 virtual base::PlatformFileError CopyInForeignFile(
80 FileSystemOperationContext* context, 77 FileSystemOperationContext* context,
81 const FilePath& src_file_path, 78 const FilePath& src_file_path,
82 const FileSystemURL& dest_url) OVERRIDE; 79 const FileSystemURL& dest_url) OVERRIDE;
83 virtual base::PlatformFileError DeleteFile( 80 virtual base::PlatformFileError DeleteFile(
84 FileSystemOperationContext* context, 81 FileSystemOperationContext* context,
85 const FileSystemURL& url) OVERRIDE; 82 const FileSystemURL& url) OVERRIDE;
86 virtual base::PlatformFileError DeleteSingleDirectory( 83 virtual base::PlatformFileError DeleteDirectory(
87 FileSystemOperationContext* context, 84 FileSystemOperationContext* context,
88 const FileSystemURL& url) OVERRIDE; 85 const FileSystemURL& url) OVERRIDE;
89 virtual base::PlatformFileError CreateSnapshotFile( 86 virtual base::PlatformFileError CreateSnapshotFile(
90 FileSystemOperationContext* context, 87 FileSystemOperationContext* context,
91 const FileSystemURL& url, 88 const FileSystemURL& url,
92 base::PlatformFileInfo* file_info, 89 base::PlatformFileInfo* file_info,
93 FilePath* platform_path, 90 FilePath* platform_path,
94 SnapshotFilePolicy* snapshot_policy) OVERRIDE; 91 SnapshotFilePolicy* snapshot_policy) OVERRIDE;
95 92
96 private: 93 private:
97 // Given the filesystem url, produces a real, full local path for the 94 // Given the filesystem url, produces a real, full local path for the
98 // underlying filesystem (which is usually the native filesystem). 95 // underlying filesystem (which is usually the native filesystem).
99 FileSystemURL GetLocalPath( 96 FileSystemURL GetLocalPath(
100 FileSystemOperationContext* context, 97 FileSystemOperationContext* context,
101 const FileSystemURL& url); 98 const FileSystemURL& url);
102 99
103 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); 100 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil);
104 }; 101 };
105 102
106 } // namespace fileapi 103 } // namespace fileapi
107 104
108 #endif // WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_ 105 #endif // WEBKIT_FILEAPI_LOCAL_FILE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698