| 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 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/message_loop_proxy.h" | 12 #include "base/message_loop_proxy.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/platform_file.h" | 14 #include "base/platform_file.h" |
| 15 #include "base/shared_memory.h" | 15 #include "base/shared_memory.h" |
| 16 #include "base/sync_socket.h" | 16 #include "base/sync_socket.h" |
| 17 #include "base/time.h" | 17 #include "base/time.h" |
| 18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 19 #include "media/video/capture/video_capture.h" | 19 #include "media/video/capture/video_capture.h" |
| 20 #include "media/video/video_decode_accelerator.h" | 20 #include "media/video/video_decode_accelerator.h" |
| 21 #include "ppapi/c/dev/pp_video_dev.h" | 21 #include "ppapi/c/dev/pp_video_dev.h" |
| 22 #include "ppapi/c/dev/ppb_device_ref_dev.h" | 22 #include "ppapi/c/dev/ppb_device_ref_dev.h" |
| 23 #include "ppapi/c/pp_completion_callback.h" | 23 #include "ppapi/c/pp_completion_callback.h" |
| 24 #include "ppapi/c/pp_errors.h" | 24 #include "ppapi/c/pp_errors.h" |
| 25 #include "ppapi/c/pp_instance.h" | 25 #include "ppapi/c/pp_instance.h" |
| 26 #include "ppapi/c/pp_resource.h" |
| 26 #include "ppapi/c/pp_stdint.h" | 27 #include "ppapi/c/pp_stdint.h" |
| 27 #include "ui/gfx/size.h" | 28 #include "ui/gfx/size.h" |
| 28 #include "webkit/fileapi/file_system_types.h" | 29 #include "webkit/fileapi/file_system_types.h" |
| 29 #include "webkit/glue/clipboard_client.h" | 30 #include "webkit/glue/clipboard_client.h" |
| 30 #include "webkit/plugins/ppapi/dir_contents.h" | 31 #include "webkit/plugins/ppapi/dir_contents.h" |
| 31 #include "webkit/quota/quota_types.h" | 32 #include "webkit/quota/quota_types.h" |
| 32 | 33 |
| 33 class GURL; | 34 class GURL; |
| 34 struct PP_NetAddress_Private; | 35 struct PP_NetAddress_Private; |
| 35 class SkBitmap; | 36 class SkBitmap; |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 uint32 socket_id, | 470 uint32 socket_id, |
| 470 const PP_NetAddress_Private& addr) = 0; | 471 const PP_NetAddress_Private& addr) = 0; |
| 471 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes) = 0; | 472 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes) = 0; |
| 472 virtual void UDPSocketSendTo(uint32 socket_id, | 473 virtual void UDPSocketSendTo(uint32 socket_id, |
| 473 const std::string& buffer, | 474 const std::string& buffer, |
| 474 const PP_NetAddress_Private& addr) = 0; | 475 const PP_NetAddress_Private& addr) = 0; |
| 475 virtual void UDPSocketClose(uint32 socket_id) = 0; | 476 virtual void UDPSocketClose(uint32 socket_id) = 0; |
| 476 | 477 |
| 477 // For PPB_TCPServerSocket_Private. | 478 // For PPB_TCPServerSocket_Private. |
| 478 virtual void TCPServerSocketListen(PPB_TCPServerSocket_Private_Impl* socket, | 479 virtual void TCPServerSocketListen(PPB_TCPServerSocket_Private_Impl* socket, |
| 479 uint32 temp_socket_id, | 480 PP_Resource socket_resource, |
| 480 const PP_NetAddress_Private& addr, | 481 const PP_NetAddress_Private& addr, |
| 481 int32_t backlog) = 0; | 482 int32_t backlog) = 0; |
| 482 virtual void TCPServerSocketAccept(uint32 real_socket_id) = 0; | 483 virtual void TCPServerSocketAccept(uint32 real_socket_id) = 0; |
| 483 virtual void TCPServerSocketStopListening(uint32 real_socket_id, | 484 virtual void TCPServerSocketStopListening( |
| 484 uint32 temp_socket_id) = 0; | 485 PP_Resource socket_resource, |
| 486 uint32 real_socket_id) = 0; |
| 485 | 487 |
| 486 // Add/remove a network list observer. | 488 // Add/remove a network list observer. |
| 487 virtual bool AddNetworkListObserver( | 489 virtual bool AddNetworkListObserver( |
| 488 webkit_glue::NetworkListObserver* observer) = 0; | 490 webkit_glue::NetworkListObserver* observer) = 0; |
| 489 virtual void RemoveNetworkListObserver( | 491 virtual void RemoveNetworkListObserver( |
| 490 webkit_glue::NetworkListObserver* observer) = 0; | 492 webkit_glue::NetworkListObserver* observer) = 0; |
| 491 | 493 |
| 492 // Show the given context menu at the given position (in the plugin's | 494 // Show the given context menu at the given position (in the plugin's |
| 493 // coordinates). | 495 // coordinates). |
| 494 virtual int32_t ShowContextMenu( | 496 virtual int32_t ShowContextMenu( |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 const EnumerateDevicesCallback& callback) = 0; | 591 const EnumerateDevicesCallback& callback) = 0; |
| 590 // Create a ClipboardClient for writing to the clipboard. The caller will own | 592 // Create a ClipboardClient for writing to the clipboard. The caller will own |
| 591 // the pointer to this. | 593 // the pointer to this. |
| 592 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; | 594 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; |
| 593 }; | 595 }; |
| 594 | 596 |
| 595 } // namespace ppapi | 597 } // namespace ppapi |
| 596 } // namespace webkit | 598 } // namespace webkit |
| 597 | 599 |
| 598 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 600 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |