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

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

Issue 3603014: Reapply 61613 that was reverted for false valgrind alarm. (Closed)
Patch Set: '' Created 10 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
« no previous file with comments | « webkit/blob/deletable_file_reference.cc ('k') | webkit/fileapi/file_system_operation.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_OPERATION_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 27 matching lines...) Expand all
38 void CreateFile(const FilePath& path, 38 void CreateFile(const FilePath& path,
39 bool exclusive); 39 bool exclusive);
40 40
41 void CreateDirectory(const FilePath& path, 41 void CreateDirectory(const FilePath& path,
42 bool exclusive, 42 bool exclusive,
43 bool recursive); 43 bool recursive);
44 44
45 void Copy(const FilePath& src_path, 45 void Copy(const FilePath& src_path,
46 const FilePath& dest_path); 46 const FilePath& dest_path);
47 47
48 // If |dest_path| exists and is a directory, behavior is unspecified or
49 // varies for different platforms. TODO(kkanetkar): Fix this as per spec
50 // when it is addressed in spec.
51 void Move(const FilePath& src_path, 48 void Move(const FilePath& src_path,
52 const FilePath& dest_path); 49 const FilePath& dest_path);
53 50
54 void DirectoryExists(const FilePath& path); 51 void DirectoryExists(const FilePath& path);
55 52
56 void FileExists(const FilePath& path); 53 void FileExists(const FilePath& path);
57 54
58 void GetMetadata(const FilePath& path); 55 void GetMetadata(const FilePath& path);
59 56
60 void ReadDirectory(const FilePath& path); 57 void ReadDirectory(const FilePath& path);
61 58
62 void Remove(const FilePath& path); 59 void Remove(const FilePath& path, bool recursive);
63 60
64 void Write(const FilePath& path, const GURL& blob_url, int64 offset); 61 void Write(const FilePath& path, const GURL& blob_url, int64 offset);
65 62
66 void Truncate(const FilePath& path, int64 length); 63 void Truncate(const FilePath& path, int64 length);
67 64
68 void TouchFile(const FilePath& path, 65 void TouchFile(const FilePath& path,
69 const base::Time& last_access_time, 66 const base::Time& last_access_time,
70 const base::Time& last_modified_time); 67 const base::Time& last_modified_time);
71 68
72 // Try to cancel the current operation [we support cancelling write or 69 // Try to cancel the current operation [we support cancelling write or
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // A flag to make sure we call operation only once per instance. 134 // A flag to make sure we call operation only once per instance.
138 OperationType pending_operation_; 135 OperationType pending_operation_;
139 #endif 136 #endif
140 137
141 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); 138 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation);
142 }; 139 };
143 140
144 } // namespace fileapi 141 } // namespace fileapi
145 142
146 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ 143 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_
OLDNEW
« no previous file with comments | « webkit/blob/deletable_file_reference.cc ('k') | webkit/fileapi/file_system_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698