| 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_old.h" | 10 #include "base/callback_old.h" |
| 11 #include "base/message_loop_proxy.h" | 11 #include "base/message_loop_proxy.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/platform_file.h" | 13 #include "base/platform_file.h" |
| 14 #include "base/shared_memory.h" | 14 #include "base/shared_memory.h" |
| 15 #include "base/sync_socket.h" | 15 #include "base/sync_socket.h" |
| 16 #include "base/time.h" | 16 #include "base/time.h" |
| 17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
| 18 #include "media/video/video_decode_accelerator.h" | 18 #include "media/video/video_decode_accelerator.h" |
| 19 #include "ppapi/c/dev/pp_video_dev.h" | 19 #include "ppapi/c/dev/pp_video_dev.h" |
| 20 #include "ppapi/c/pp_completion_callback.h" | 20 #include "ppapi/c/pp_completion_callback.h" |
| 21 #include "ppapi/c/pp_errors.h" | 21 #include "ppapi/c/pp_errors.h" |
| 22 #include "ppapi/c/pp_instance.h" | 22 #include "ppapi/c/pp_instance.h" |
| 23 #include "ppapi/c/pp_stdint.h" | 23 #include "ppapi/c/pp_stdint.h" |
| 24 #include "ui/gfx/size.h" | 24 #include "ui/gfx/size.h" |
| 25 #include "webkit/fileapi/file_system_types.h" | 25 #include "webkit/fileapi/file_system_types.h" |
| 26 #include "webkit/plugins/ppapi/dir_contents.h" | 26 #include "webkit/plugins/ppapi/dir_contents.h" |
| 27 #include "webkit/quota/quota_types.h" |
| 27 | 28 |
| 28 class AudioMessageFilter; | 29 class AudioMessageFilter; |
| 29 class GURL; | 30 class GURL; |
| 30 class P2PSocketDispatcher; | 31 class P2PSocketDispatcher; |
| 31 class SkBitmap; | 32 class SkBitmap; |
| 32 | 33 |
| 33 namespace base { | 34 namespace base { |
| 34 class MessageLoopProxy; | 35 class MessageLoopProxy; |
| 35 class Time; | 36 class Time; |
| 36 } | 37 } |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 321 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
| 321 virtual bool Delete(const GURL& path, | 322 virtual bool Delete(const GURL& path, |
| 322 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 323 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
| 323 virtual bool Rename(const GURL& file_path, | 324 virtual bool Rename(const GURL& file_path, |
| 324 const GURL& new_file_path, | 325 const GURL& new_file_path, |
| 325 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 326 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
| 326 virtual bool ReadDirectory( | 327 virtual bool ReadDirectory( |
| 327 const GURL& directory_path, | 328 const GURL& directory_path, |
| 328 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 329 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
| 329 | 330 |
| 331 // For quota handlings for FileIO API. |
| 332 typedef Callback1<int64>::Type AvailableSpaceCallback; |
| 333 virtual void QueryAvailableSpace(const GURL& origin, |
| 334 quota::StorageType type, |
| 335 AvailableSpaceCallback* callback) = 0; |
| 336 virtual void WillUpdateFile(const GURL& file_path) = 0; |
| 337 virtual void DidUpdateFile(const GURL& file_path, int64_t delta) = 0; |
| 338 |
| 330 virtual base::PlatformFileError OpenFile(const PepperFilePath& path, | 339 virtual base::PlatformFileError OpenFile(const PepperFilePath& path, |
| 331 int flags, | 340 int flags, |
| 332 base::PlatformFile* file) = 0; | 341 base::PlatformFile* file) = 0; |
| 333 virtual base::PlatformFileError RenameFile(const PepperFilePath& from_path, | 342 virtual base::PlatformFileError RenameFile(const PepperFilePath& from_path, |
| 334 const PepperFilePath& to_path) = 0; | 343 const PepperFilePath& to_path) = 0; |
| 335 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, | 344 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, |
| 336 bool recursive) = 0; | 345 bool recursive) = 0; |
| 337 virtual base::PlatformFileError CreateDir(const PepperFilePath& path) = 0; | 346 virtual base::PlatformFileError CreateDir(const PepperFilePath& path) = 0; |
| 338 virtual base::PlatformFileError QueryFile(const PepperFilePath& path, | 347 virtual base::PlatformFileError QueryFile(const PepperFilePath& path, |
| 339 base::PlatformFileInfo* info) = 0; | 348 base::PlatformFileInfo* info) = 0; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; | 423 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; |
| 415 | 424 |
| 416 // Returns the current preferences. | 425 // Returns the current preferences. |
| 417 virtual ::ppapi::Preferences GetPreferences() = 0; | 426 virtual ::ppapi::Preferences GetPreferences() = 0; |
| 418 }; | 427 }; |
| 419 | 428 |
| 420 } // namespace ppapi | 429 } // namespace ppapi |
| 421 } // namespace webkit | 430 } // namespace webkit |
| 422 | 431 |
| 423 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 432 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |