| 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" | 12 #include "base/files/file_util_proxy.h" |
| 13 #include "base/id_map.h" | 13 #include "base/id_map.h" |
| 14 #include "base/process.h" | 14 #include "base/process.h" |
| 15 #include "ipc/ipc_listener.h" | 15 #include "ipc/ipc_listener.h" |
| 16 #include "ipc/ipc_platform_file.h" | 16 #include "ipc/ipc_platform_file.h" |
| 17 #include "webkit/fileapi/file_system_callback_dispatcher.h" | 17 #include "webkit/fileapi/file_system_callback_dispatcher.h" |
| 18 #include "webkit/fileapi/file_system_types.h" | 18 #include "webkit/fileapi/file_system_types.h" |
| 19 #include "webkit/quota/quota_types.h" |
| 19 | 20 |
| 20 namespace base { | 21 namespace base { |
| 21 class FilePath; | 22 class FilePath; |
| 22 struct PlatformFileInfo; | 23 struct PlatformFileInfo; |
| 23 } | 24 } |
| 24 | 25 |
| 25 class GURL; | 26 class GURL; |
| 26 | 27 |
| 27 namespace content { | 28 namespace content { |
| 28 | 29 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 const base::PlatformFileInfo& file_info, | 113 const base::PlatformFileInfo& file_info, |
| 113 const base::FilePath& platform_path); | 114 const base::FilePath& platform_path); |
| 114 void OnDidReadDirectory( | 115 void OnDidReadDirectory( |
| 115 int request_id, | 116 int request_id, |
| 116 const std::vector<base::FileUtilProxy::Entry>& entries, | 117 const std::vector<base::FileUtilProxy::Entry>& entries, |
| 117 bool has_more); | 118 bool has_more); |
| 118 void OnDidFail(int request_id, base::PlatformFileError error_code); | 119 void OnDidFail(int request_id, base::PlatformFileError error_code); |
| 119 void OnDidWrite(int request_id, int64 bytes, bool complete); | 120 void OnDidWrite(int request_id, int64 bytes, bool complete); |
| 120 void OnDidOpenFile( | 121 void OnDidOpenFile( |
| 121 int request_id, | 122 int request_id, |
| 122 IPC::PlatformFileForTransit file); | 123 IPC::PlatformFileForTransit file, |
| 124 quota::QuotaLimitType quota_limit_type); |
| 123 | 125 |
| 124 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_; | 126 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_; |
| 125 | 127 |
| 126 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); | 128 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); |
| 127 }; | 129 }; |
| 128 | 130 |
| 129 } // namespace content | 131 } // namespace content |
| 130 | 132 |
| 131 #endif // CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 133 #endif // CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
| OLD | NEW |