OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 virtual bool AsyncOpenFile(const FilePath& path, | 261 virtual bool AsyncOpenFile(const FilePath& path, |
262 int flags, | 262 int flags, |
263 AsyncOpenFileCallback* callback) = 0; | 263 AsyncOpenFileCallback* callback) = 0; |
264 | 264 |
265 virtual bool OpenFileSystem( | 265 virtual bool OpenFileSystem( |
266 const GURL& url, | 266 const GURL& url, |
267 fileapi::FileSystemType type, | 267 fileapi::FileSystemType type, |
268 long long size, | 268 long long size, |
269 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 269 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
270 virtual bool MakeDirectory( | 270 virtual bool MakeDirectory( |
271 const FilePath& path, | 271 const GURL& path, |
272 bool recursive, | 272 bool recursive, |
273 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 273 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
274 virtual bool Query(const FilePath& path, | 274 virtual bool Query(const GURL& path, |
275 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 275 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
276 virtual bool Touch(const FilePath& path, | 276 virtual bool Touch(const GURL& path, |
277 const base::Time& last_access_time, | 277 const base::Time& last_access_time, |
278 const base::Time& last_modified_time, | 278 const base::Time& last_modified_time, |
279 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 279 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
280 virtual bool Delete(const FilePath& path, | 280 virtual bool Delete(const GURL& path, |
281 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 281 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
282 virtual bool Rename(const FilePath& file_path, | 282 virtual bool Rename(const GURL& file_path, |
283 const FilePath& new_file_path, | 283 const GURL& new_file_path, |
284 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 284 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
285 virtual bool ReadDirectory( | 285 virtual bool ReadDirectory( |
286 const FilePath& directory_path, | 286 const GURL& directory_path, |
287 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 287 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
288 | 288 |
289 virtual base::PlatformFileError OpenFile(const PepperFilePath& path, | 289 virtual base::PlatformFileError OpenFile(const PepperFilePath& path, |
290 int flags, | 290 int flags, |
291 base::PlatformFile* file) = 0; | 291 base::PlatformFile* file) = 0; |
292 virtual base::PlatformFileError RenameFile(const PepperFilePath& from_path, | 292 virtual base::PlatformFileError RenameFile(const PepperFilePath& from_path, |
293 const PepperFilePath& to_path) = 0; | 293 const PepperFilePath& to_path) = 0; |
294 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, | 294 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, |
295 bool recursive) = 0; | 295 bool recursive) = 0; |
296 virtual base::PlatformFileError CreateDir(const PepperFilePath& path) = 0; | 296 virtual base::PlatformFileError CreateDir(const PepperFilePath& path) = 0; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 // | 353 // |
354 // TODO(sergeyu): Replace this with a higher-level P2P API | 354 // TODO(sergeyu): Replace this with a higher-level P2P API |
355 // implementation. | 355 // implementation. |
356 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; | 356 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; |
357 }; | 357 }; |
358 | 358 |
359 } // namespace ppapi | 359 } // namespace ppapi |
360 } // namespace webkit | 360 } // namespace webkit |
361 | 361 |
362 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 362 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |