| 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 22 matching lines...) Expand all Loading... |
| 33 virtual ~FileSystemDispatcher(); | 33 virtual ~FileSystemDispatcher(); |
| 34 | 34 |
| 35 // IPC::Listener implementation. | 35 // IPC::Listener implementation. |
| 36 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 36 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 37 | 37 |
| 38 bool OpenFileSystem(const GURL& origin_url, | 38 bool OpenFileSystem(const GURL& origin_url, |
| 39 fileapi::FileSystemType type, | 39 fileapi::FileSystemType type, |
| 40 long long size, | 40 long long size, |
| 41 bool create, | 41 bool create, |
| 42 fileapi::FileSystemCallbackDispatcher* dispatcher); | 42 fileapi::FileSystemCallbackDispatcher* dispatcher); |
| 43 bool DeleteFileSystem(const GURL& origin_url, |
| 44 fileapi::FileSystemType type, |
| 45 fileapi::FileSystemCallbackDispatcher* dispatcher); |
| 43 bool Move(const GURL& src_path, | 46 bool Move(const GURL& src_path, |
| 44 const GURL& dest_path, | 47 const GURL& dest_path, |
| 45 fileapi::FileSystemCallbackDispatcher* dispatcher); | 48 fileapi::FileSystemCallbackDispatcher* dispatcher); |
| 46 bool Copy(const GURL& src_path, | 49 bool Copy(const GURL& src_path, |
| 47 const GURL& dest_path, | 50 const GURL& dest_path, |
| 48 fileapi::FileSystemCallbackDispatcher* dispatcher); | 51 fileapi::FileSystemCallbackDispatcher* dispatcher); |
| 49 bool Remove(const GURL& path, | 52 bool Remove(const GURL& path, |
| 50 bool recursive, | 53 bool recursive, |
| 51 fileapi::FileSystemCallbackDispatcher* dispatcher); | 54 fileapi::FileSystemCallbackDispatcher* dispatcher); |
| 52 bool ReadMetadata(const GURL& path, | 55 bool ReadMetadata(const GURL& path, |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 void OnDidOpenFile( | 110 void OnDidOpenFile( |
| 108 int request_id, | 111 int request_id, |
| 109 IPC::PlatformFileForTransit file); | 112 IPC::PlatformFileForTransit file); |
| 110 | 113 |
| 111 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_; | 114 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_; |
| 112 | 115 |
| 113 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); | 116 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); |
| 114 }; | 117 }; |
| 115 | 118 |
| 116 #endif // CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 119 #endif // CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
| OLD | NEW |