| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/files/file_util_proxy.h" | |
| 13 #include "base/id_map.h" | 12 #include "base/id_map.h" |
| 14 #include "base/process.h" | 13 #include "base/process.h" |
| 15 #include "ipc/ipc_listener.h" | 14 #include "ipc/ipc_listener.h" |
| 16 #include "ipc/ipc_platform_file.h" | 15 #include "ipc/ipc_platform_file.h" |
| 17 #include "webkit/fileapi/file_system_callback_dispatcher.h" | 16 #include "webkit/fileapi/file_system_callback_dispatcher.h" |
| 18 #include "webkit/fileapi/file_system_types.h" | 17 #include "webkit/fileapi/file_system_types.h" |
| 19 #include "webkit/quota/quota_types.h" | 18 #include "webkit/quota/quota_types.h" |
| 20 | 19 |
| 21 namespace base { | 20 namespace base { |
| 22 class FilePath; | 21 class FilePath; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 const GURL& root); | 101 const GURL& root); |
| 103 void OnDidSucceed(int request_id); | 102 void OnDidSucceed(int request_id); |
| 104 void OnDidReadMetadata(int request_id, | 103 void OnDidReadMetadata(int request_id, |
| 105 const base::PlatformFileInfo& file_info, | 104 const base::PlatformFileInfo& file_info, |
| 106 const base::FilePath& platform_path); | 105 const base::FilePath& platform_path); |
| 107 void OnDidCreateSnapshotFile(int request_id, | 106 void OnDidCreateSnapshotFile(int request_id, |
| 108 const base::PlatformFileInfo& file_info, | 107 const base::PlatformFileInfo& file_info, |
| 109 const base::FilePath& platform_path); | 108 const base::FilePath& platform_path); |
| 110 void OnDidReadDirectory( | 109 void OnDidReadDirectory( |
| 111 int request_id, | 110 int request_id, |
| 112 const std::vector<base::FileUtilProxy::Entry>& entries, | 111 const std::vector<fileapi::FileSystemOperation::Entry>& entries, |
| 113 bool has_more); | 112 bool has_more); |
| 114 void OnDidFail(int request_id, base::PlatformFileError error_code); | 113 void OnDidFail(int request_id, base::PlatformFileError error_code); |
| 115 void OnDidWrite(int request_id, int64 bytes, bool complete); | 114 void OnDidWrite(int request_id, int64 bytes, bool complete); |
| 116 void OnDidOpenFile( | 115 void OnDidOpenFile( |
| 117 int request_id, | 116 int request_id, |
| 118 IPC::PlatformFileForTransit file, | 117 IPC::PlatformFileForTransit file, |
| 119 int file_open_id, | 118 int file_open_id, |
| 120 quota::QuotaLimitType quota_policy); | 119 quota::QuotaLimitType quota_policy); |
| 121 | 120 |
| 122 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_; | 121 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_; |
| 123 | 122 |
| 124 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); | 123 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); |
| 125 }; | 124 }; |
| 126 | 125 |
| 127 } // namespace content | 126 } // namespace content |
| 128 | 127 |
| 129 #endif // CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 128 #endif // CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
| OLD | NEW |