OLD | NEW |
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 CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_ | 5 #ifndef CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_ |
6 #define CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_ | 6 #define CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 fileapi::FileSystemType type, | 36 fileapi::FileSystemType type, |
37 long long size, | 37 long long size, |
38 fileapi::FileSystemCallbackDispatcher* dispatcher); | 38 fileapi::FileSystemCallbackDispatcher* dispatcher); |
39 bool Move(const FilePath& src_path, | 39 bool Move(const FilePath& src_path, |
40 const FilePath& dest_path, | 40 const FilePath& dest_path, |
41 fileapi::FileSystemCallbackDispatcher* dispatcher); | 41 fileapi::FileSystemCallbackDispatcher* dispatcher); |
42 bool Copy(const FilePath& src_path, | 42 bool Copy(const FilePath& src_path, |
43 const FilePath& dest_path, | 43 const FilePath& dest_path, |
44 fileapi::FileSystemCallbackDispatcher* dispatcher); | 44 fileapi::FileSystemCallbackDispatcher* dispatcher); |
45 bool Remove(const FilePath& path, | 45 bool Remove(const FilePath& path, |
| 46 bool recursive, |
46 fileapi::FileSystemCallbackDispatcher* dispatcher); | 47 fileapi::FileSystemCallbackDispatcher* dispatcher); |
47 bool ReadMetadata(const FilePath& path, | 48 bool ReadMetadata(const FilePath& path, |
48 fileapi::FileSystemCallbackDispatcher* dispatcher); | 49 fileapi::FileSystemCallbackDispatcher* dispatcher); |
49 bool Create(const FilePath& path, | 50 bool Create(const FilePath& path, |
50 bool exclusive, | 51 bool exclusive, |
51 bool is_directory, | 52 bool is_directory, |
52 bool recursive, | 53 bool recursive, |
53 fileapi::FileSystemCallbackDispatcher* dispatcher); | 54 fileapi::FileSystemCallbackDispatcher* dispatcher); |
54 bool Exists(const FilePath& path, | 55 bool Exists(const FilePath& path, |
55 bool for_directory, | 56 bool for_directory, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 bool has_more); | 91 bool has_more); |
91 void DidFail(int request_id, base::PlatformFileError error_code); | 92 void DidFail(int request_id, base::PlatformFileError error_code); |
92 void DidWrite(int request_id, int64 bytes, bool complete); | 93 void DidWrite(int request_id, int64 bytes, bool complete); |
93 | 94 |
94 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_; | 95 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_; |
95 | 96 |
96 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); | 97 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); |
97 }; | 98 }; |
98 | 99 |
99 #endif // CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_ | 100 #endif // CHROME_COMMON_FILE_SYSTEM_FILE_SYSTEM_DISPATCHER_H_ |
OLD | NEW |