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/memory/ref_counted.h" |
12 #include "base/message_loop_proxy.h" | 13 #include "base/message_loop_proxy.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_resource.h" |
27 #include "ppapi/c/pp_stdint.h" | 27 #include "ppapi/c/pp_stdint.h" |
28 #include "ppapi/c/private/ppb_flash.h" | 28 #include "ppapi/c/private/ppb_flash.h" |
| 29 #include "ppapi/c/private/ppb_udp_socket_private.h" |
29 #include "ppapi/shared_impl/dir_contents.h" | 30 #include "ppapi/shared_impl/dir_contents.h" |
30 #include "ui/gfx/size.h" | 31 #include "ui/gfx/size.h" |
31 #include "webkit/fileapi/file_system_types.h" | 32 #include "webkit/fileapi/file_system_types.h" |
32 #include "webkit/glue/clipboard_client.h" | 33 #include "webkit/glue/clipboard_client.h" |
33 #include "webkit/quota/quota_types.h" | 34 #include "webkit/quota/quota_types.h" |
34 | 35 |
35 class GURL; | 36 class GURL; |
36 class SkBitmap; | 37 class SkBitmap; |
37 class TransportDIB; | 38 class TransportDIB; |
38 struct PP_HostResolver_Private_Hint; | 39 struct PP_HostResolver_Private_Hint; |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 const std::vector<std::vector<char> >& trusted_certs, | 520 const std::vector<std::vector<char> >& trusted_certs, |
520 const std::vector<std::vector<char> >& untrusted_certs) = 0; | 521 const std::vector<std::vector<char> >& untrusted_certs) = 0; |
521 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0; | 522 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0; |
522 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0; | 523 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0; |
523 virtual void TCPSocketDisconnect(uint32 socket_id) = 0; | 524 virtual void TCPSocketDisconnect(uint32 socket_id) = 0; |
524 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, | 525 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, |
525 uint32 socket_id) = 0; | 526 uint32 socket_id) = 0; |
526 | 527 |
527 // For PPB_UDPSocket_Private. | 528 // For PPB_UDPSocket_Private. |
528 virtual uint32 UDPSocketCreate() = 0; | 529 virtual uint32 UDPSocketCreate() = 0; |
| 530 virtual void UDPSocketSetSocketFeature(PPB_UDPSocket_Private_Impl* socket, |
| 531 uint32 socket_id, |
| 532 PP_UDPSocketFeature_Private name, |
| 533 PP_Var value) = 0; |
529 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket, | 534 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket, |
530 uint32 socket_id, | 535 uint32 socket_id, |
531 const PP_NetAddress_Private& addr) = 0; | 536 const PP_NetAddress_Private& addr) = 0; |
532 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes) = 0; | 537 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes) = 0; |
533 virtual void UDPSocketSendTo(uint32 socket_id, | 538 virtual void UDPSocketSendTo(uint32 socket_id, |
534 const std::string& buffer, | 539 const std::string& buffer, |
535 const PP_NetAddress_Private& addr) = 0; | 540 const PP_NetAddress_Private& addr) = 0; |
536 virtual void UDPSocketClose(uint32 socket_id) = 0; | 541 virtual void UDPSocketClose(uint32 socket_id) = 0; |
537 | 542 |
538 // For PPB_TCPServerSocket_Private. | 543 // For PPB_TCPServerSocket_Private. |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 // Returns restrictions on local data handled by the plug-in. | 674 // Returns restrictions on local data handled by the plug-in. |
670 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( | 675 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( |
671 const GURL& document_url, | 676 const GURL& document_url, |
672 const GURL& plugin_url) = 0; | 677 const GURL& plugin_url) = 0; |
673 }; | 678 }; |
674 | 679 |
675 } // namespace ppapi | 680 } // namespace ppapi |
676 } // namespace webkit | 681 } // namespace webkit |
677 | 682 |
678 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 683 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |