| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 319 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
| 319 virtual bool Delete(const GURL& path, | 320 virtual bool Delete(const GURL& path, |
| 320 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 321 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
| 321 virtual bool Rename(const GURL& file_path, | 322 virtual bool Rename(const GURL& file_path, |
| 322 const GURL& new_file_path, | 323 const GURL& new_file_path, |
| 323 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 324 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
| 324 virtual bool ReadDirectory( | 325 virtual bool ReadDirectory( |
| 325 const GURL& directory_path, | 326 const GURL& directory_path, |
| 326 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 327 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
| 327 | 328 |
| 329 // For quota handlings for FileIO API. |
| 330 typedef Callback1<int64>::Type AvailableSpaceCallback; |
| 331 virtual void QueryAvailableSpace(const GURL& origin, |
| 332 quota::StorageType type, |
| 333 AvailableSpaceCallback* callback) = 0; |
| 334 virtual void WillUpdateFile(const GURL& file_path) = 0; |
| 335 virtual void DidUpdateFile(const GURL& file_path, int64_t delta) = 0; |
| 336 |
| 328 virtual base::PlatformFileError OpenFile(const PepperFilePath& path, | 337 virtual base::PlatformFileError OpenFile(const PepperFilePath& path, |
| 329 int flags, | 338 int flags, |
| 330 base::PlatformFile* file) = 0; | 339 base::PlatformFile* file) = 0; |
| 331 virtual base::PlatformFileError RenameFile(const PepperFilePath& from_path, | 340 virtual base::PlatformFileError RenameFile(const PepperFilePath& from_path, |
| 332 const PepperFilePath& to_path) = 0; | 341 const PepperFilePath& to_path) = 0; |
| 333 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, | 342 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, |
| 334 bool recursive) = 0; | 343 bool recursive) = 0; |
| 335 virtual base::PlatformFileError CreateDir(const PepperFilePath& path) = 0; | 344 virtual base::PlatformFileError CreateDir(const PepperFilePath& path) = 0; |
| 336 virtual base::PlatformFileError QueryFile(const PepperFilePath& path, | 345 virtual base::PlatformFileError QueryFile(const PepperFilePath& path, |
| 337 base::PlatformFileInfo* info) = 0; | 346 base::PlatformFileInfo* info) = 0; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; | 421 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; |
| 413 | 422 |
| 414 // Returns the current preferences. | 423 // Returns the current preferences. |
| 415 virtual ::ppapi::Preferences GetPreferences() = 0; | 424 virtual ::ppapi::Preferences GetPreferences() = 0; |
| 416 }; | 425 }; |
| 417 | 426 |
| 418 } // namespace ppapi | 427 } // namespace ppapi |
| 419 } // namespace webkit | 428 } // namespace webkit |
| 420 | 429 |
| 421 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 430 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |