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_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 5 #ifndef CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
6 #define CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 6 #define CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // IPC::Listener implementation. | 65 // IPC::Listener implementation. |
66 bool OnMessageReceived(const IPC::Message& msg) override; | 66 bool OnMessageReceived(const IPC::Message& msg) override; |
67 | 67 |
68 void OpenFileSystem(const GURL& origin_url, | 68 void OpenFileSystem(const GURL& origin_url, |
69 storage::FileSystemType type, | 69 storage::FileSystemType type, |
70 const OpenFileSystemCallback& success_callback, | 70 const OpenFileSystemCallback& success_callback, |
71 const StatusCallback& error_callback); | 71 const StatusCallback& error_callback); |
72 void ResolveURL(const GURL& filesystem_url, | 72 void ResolveURL(const GURL& filesystem_url, |
73 const ResolveURLCallback& success_callback, | 73 const ResolveURLCallback& success_callback, |
74 const StatusCallback& error_callback); | 74 const StatusCallback& error_callback); |
75 void DeleteFileSystem(const GURL& origin_url, | |
76 storage::FileSystemType type, | |
77 const StatusCallback& callback); | |
78 void Move(const GURL& src_path, | 75 void Move(const GURL& src_path, |
79 const GURL& dest_path, | 76 const GURL& dest_path, |
80 const StatusCallback& callback); | 77 const StatusCallback& callback); |
81 void Copy(const GURL& src_path, | 78 void Copy(const GURL& src_path, |
82 const GURL& dest_path, | 79 const GURL& dest_path, |
83 const StatusCallback& callback); | 80 const StatusCallback& callback); |
84 void Remove(const GURL& path, | 81 void Remove(const GURL& path, |
85 bool recursive, | 82 bool recursive, |
86 const StatusCallback& callback); | 83 const StatusCallback& callback); |
87 void ReadMetadata(const GURL& path, | 84 void ReadMetadata(const GURL& path, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 void OnDidWrite(int request_id, int64_t bytes, bool complete); | 145 void OnDidWrite(int request_id, int64_t bytes, bool complete); |
149 | 146 |
150 IDMap<std::unique_ptr<CallbackDispatcher>> dispatchers_; | 147 IDMap<std::unique_ptr<CallbackDispatcher>> dispatchers_; |
151 | 148 |
152 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); | 149 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); |
153 }; | 150 }; |
154 | 151 |
155 } // namespace content | 152 } // namespace content |
156 | 153 |
157 #endif // CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 154 #endif // CONTENT_CHILD_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
OLD | NEW |