| OLD | NEW |
| 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 CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 5 #ifndef CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
| 6 #define CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 6 #define CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 bool Exists(const GURL& path, | 64 bool Exists(const GURL& path, |
| 65 bool for_directory, | 65 bool for_directory, |
| 66 fileapi::FileSystemCallbackDispatcher* dispatcher); | 66 fileapi::FileSystemCallbackDispatcher* dispatcher); |
| 67 bool ReadDirectory(const GURL& path, | 67 bool ReadDirectory(const GURL& path, |
| 68 fileapi::FileSystemCallbackDispatcher* dispatcher); | 68 fileapi::FileSystemCallbackDispatcher* dispatcher); |
| 69 bool Truncate(const GURL& path, | 69 bool Truncate(const GURL& path, |
| 70 int64 offset, | 70 int64 offset, |
| 71 int* request_id_out, | 71 int* request_id_out, |
| 72 fileapi::FileSystemCallbackDispatcher* dispatcher); | 72 fileapi::FileSystemCallbackDispatcher* dispatcher); |
| 73 bool Write(const GURL& path, | 73 bool Write(const GURL& path, |
| 74 const GURL& blob_url, | 74 const std::string& blob_uuid, |
| 75 int64 offset, | 75 int64 offset, |
| 76 int* request_id_out, | 76 int* request_id_out, |
| 77 fileapi::FileSystemCallbackDispatcher* dispatcher); | 77 fileapi::FileSystemCallbackDispatcher* dispatcher); |
| 78 bool Cancel(int request_id_to_cancel, | 78 bool Cancel(int request_id_to_cancel, |
| 79 fileapi::FileSystemCallbackDispatcher* dispatcher); | 79 fileapi::FileSystemCallbackDispatcher* dispatcher); |
| 80 bool TouchFile(const GURL& file_path, | 80 bool TouchFile(const GURL& file_path, |
| 81 const base::Time& last_access_time, | 81 const base::Time& last_access_time, |
| 82 const base::Time& last_modified_time, | 82 const base::Time& last_modified_time, |
| 83 fileapi::FileSystemCallbackDispatcher* dispatcher); | 83 fileapi::FileSystemCallbackDispatcher* dispatcher); |
| 84 | 84 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 IPC::PlatformFileForTransit file); | 122 IPC::PlatformFileForTransit file); |
| 123 | 123 |
| 124 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_; | 124 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_; |
| 125 | 125 |
| 126 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); | 126 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace content | 129 } // namespace content |
| 130 | 130 |
| 131 #endif // CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 131 #endif // CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
| OLD | NEW |