Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 bool exclusive); | 62 bool exclusive); |
| 63 void CreateDirectory(const GURL& path, | 63 void CreateDirectory(const GURL& path, |
| 64 bool exclusive, | 64 bool exclusive, |
| 65 bool recursive); | 65 bool recursive); |
| 66 void Copy(const GURL& src_path, | 66 void Copy(const GURL& src_path, |
| 67 const GURL& dest_path); | 67 const GURL& dest_path); |
| 68 void Move(const GURL& src_path, | 68 void Move(const GURL& src_path, |
| 69 const GURL& dest_path); | 69 const GURL& dest_path); |
| 70 void DirectoryExists(const GURL& path); | 70 void DirectoryExists(const GURL& path); |
| 71 void FileExists(const GURL& path); | 71 void FileExists(const GURL& path); |
| 72 void GetLocalPath(const GURL& path); | |
|
ericu
2011/04/19 20:30:49
Move this down with OpenFile.
zel
2011/04/19 23:14:00
Done.
| |
| 72 void GetMetadata(const GURL& path); | 73 void GetMetadata(const GURL& path); |
| 73 void ReadDirectory(const GURL& path); | 74 void ReadDirectory(const GURL& path); |
| 74 void Remove(const GURL& path, bool recursive); | 75 void Remove(const GURL& path, bool recursive); |
| 75 void Write(scoped_refptr<net::URLRequestContext> url_request_context, | 76 void Write(scoped_refptr<net::URLRequestContext> url_request_context, |
| 76 const GURL& path, | 77 const GURL& path, |
| 77 const GURL& blob_url, | 78 const GURL& blob_url, |
| 78 int64 offset); | 79 int64 offset); |
| 79 void Truncate(const GURL& path, int64 length); | 80 void Truncate(const GURL& path, int64 length); |
| 80 void TouchFile(const GURL& path, | 81 void TouchFile(const GURL& path, |
| 81 const base::Time& last_access_time, | 82 const base::Time& last_access_time, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 116 | 117 |
| 117 // Generic callback that translates platform errors to WebKit error codes. | 118 // Generic callback that translates platform errors to WebKit error codes. |
| 118 void DidFinishFileOperation(base::PlatformFileError rv); | 119 void DidFinishFileOperation(base::PlatformFileError rv); |
| 119 | 120 |
| 120 void DidDirectoryExists(base::PlatformFileError rv, | 121 void DidDirectoryExists(base::PlatformFileError rv, |
| 121 const base::PlatformFileInfo& file_info, | 122 const base::PlatformFileInfo& file_info, |
| 122 const FilePath& unused); | 123 const FilePath& unused); |
| 123 void DidFileExists(base::PlatformFileError rv, | 124 void DidFileExists(base::PlatformFileError rv, |
| 124 const base::PlatformFileInfo& file_info, | 125 const base::PlatformFileInfo& file_info, |
| 125 const FilePath& unused); | 126 const FilePath& unused); |
| 127 void DidGetLocalPath(base::PlatformFileError rv, | |
|
ericu
2011/04/19 20:30:49
Move this down with DidOpenFile. I'd like to keep
zel
2011/04/19 23:14:00
Done.
| |
| 128 const FilePath& local_path); | |
| 126 void DidGetMetadata(base::PlatformFileError rv, | 129 void DidGetMetadata(base::PlatformFileError rv, |
| 127 const base::PlatformFileInfo& file_info, | 130 const base::PlatformFileInfo& file_info, |
| 128 const FilePath& platform_path); | 131 const FilePath& platform_path); |
| 129 void DidReadDirectory( | 132 void DidReadDirectory( |
| 130 base::PlatformFileError rv, | 133 base::PlatformFileError rv, |
| 131 const std::vector<base::FileUtilProxy::Entry>& entries); | 134 const std::vector<base::FileUtilProxy::Entry>& entries); |
| 132 void DidWrite( | 135 void DidWrite( |
| 133 base::PlatformFileError rv, | 136 base::PlatformFileError rv, |
| 134 int64 bytes, | 137 int64 bytes, |
| 135 bool complete); | 138 bool complete); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 219 // Used only by OpenFile, in order to clone the file handle back to the | 222 // Used only by OpenFile, in order to clone the file handle back to the |
| 220 // requesting process. | 223 // requesting process. |
| 221 base::ProcessHandle peer_handle_; | 224 base::ProcessHandle peer_handle_; |
| 222 | 225 |
| 223 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); | 226 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); |
| 224 }; | 227 }; |
| 225 | 228 |
| 226 } // namespace fileapi | 229 } // namespace fileapi |
| 227 | 230 |
| 228 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ | 231 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
| OLD | NEW |