| 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_HostResolver_Private_Hint; | 35 struct PP_HostResolver_Private_Hint; |
| 35 struct PP_NetAddress_Private; | 36 struct PP_NetAddress_Private; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 namespace ppapi { | 82 namespace ppapi { |
| 82 | 83 |
| 83 class FileIO; | 84 class FileIO; |
| 84 class FullscreenContainer; | 85 class FullscreenContainer; |
| 85 class PepperFilePath; | 86 class PepperFilePath; |
| 86 class PluginInstance; | 87 class PluginInstance; |
| 87 class PluginModule; | 88 class PluginModule; |
| 88 class PPB_Broker_Impl; | 89 class PPB_Broker_Impl; |
| 89 class PPB_Flash_Menu_Impl; | 90 class PPB_Flash_Menu_Impl; |
| 90 class PPB_Flash_NetConnector_Impl; | 91 class PPB_Flash_NetConnector_Impl; |
| 91 class PPB_TCPServerSocket_Private_Impl; | |
| 92 class PPB_TCPSocket_Private_Impl; | 92 class PPB_TCPSocket_Private_Impl; |
| 93 class PPB_UDPSocket_Private_Impl; | 93 class PPB_UDPSocket_Private_Impl; |
| 94 | 94 |
| 95 // Virtual interface that the browser implements to implement features for | 95 // Virtual interface that the browser implements to implement features for |
| 96 // PPAPI plugins. | 96 // PPAPI plugins. |
| 97 class PluginDelegate { | 97 class PluginDelegate { |
| 98 public: | 98 public: |
| 99 // This interface is used for the PluginModule to tell the code in charge of | 99 // This interface is used for the PluginModule to tell the code in charge of |
| 100 // re-using modules which modules currently exist. | 100 // re-using modules which modules currently exist. |
| 101 // | 101 // |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket, | 471 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket, |
| 472 uint32 socket_id, | 472 uint32 socket_id, |
| 473 const PP_NetAddress_Private& addr) = 0; | 473 const PP_NetAddress_Private& addr) = 0; |
| 474 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes) = 0; | 474 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes) = 0; |
| 475 virtual void UDPSocketSendTo(uint32 socket_id, | 475 virtual void UDPSocketSendTo(uint32 socket_id, |
| 476 const std::string& buffer, | 476 const std::string& buffer, |
| 477 const PP_NetAddress_Private& addr) = 0; | 477 const PP_NetAddress_Private& addr) = 0; |
| 478 virtual void UDPSocketClose(uint32 socket_id) = 0; | 478 virtual void UDPSocketClose(uint32 socket_id) = 0; |
| 479 | 479 |
| 480 // For PPB_TCPServerSocket_Private. | 480 // For PPB_TCPServerSocket_Private. |
| 481 virtual void TCPServerSocketListen(PPB_TCPServerSocket_Private_Impl* socket, | 481 virtual void TCPServerSocketListen(PP_Resource socket_resource, |
| 482 uint32 temp_socket_id, | |
| 483 const PP_NetAddress_Private& addr, | 482 const PP_NetAddress_Private& addr, |
| 484 int32_t backlog) = 0; | 483 int32_t backlog) = 0; |
| 485 virtual void TCPServerSocketAccept(uint32 real_socket_id) = 0; | 484 virtual void TCPServerSocketAccept(uint32 server_socket_id) = 0; |
| 486 virtual void TCPServerSocketStopListening(uint32 real_socket_id, | 485 virtual void TCPServerSocketStopListening( |
| 487 uint32 temp_socket_id) = 0; | 486 PP_Resource socket_resource, |
| 487 uint32 socket_id) = 0; |
| 488 | 488 |
| 489 // For PPB_HostResolver_Private. | 489 // For PPB_HostResolver_Private. |
| 490 virtual void RegisterHostResolver( | 490 virtual void RegisterHostResolver( |
| 491 ::ppapi::PPB_HostResolver_Shared* host_resolver, | 491 ::ppapi::PPB_HostResolver_Shared* host_resolver, |
| 492 uint32 host_resolver_id) = 0; | 492 uint32 host_resolver_id) = 0; |
| 493 virtual void HostResolverResolve( | 493 virtual void HostResolverResolve( |
| 494 uint32 host_resolver_id, | 494 uint32 host_resolver_id, |
| 495 const ::ppapi::HostPortPair& host_port, | 495 const ::ppapi::HostPortPair& host_port, |
| 496 const PP_HostResolver_Private_Hint* hint) = 0; | 496 const PP_HostResolver_Private_Hint* hint) = 0; |
| 497 virtual void UnregisterHostResolver(uint32 host_resolver_id) = 0; | 497 virtual void UnregisterHostResolver(uint32 host_resolver_id) = 0; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 const EnumerateDevicesCallback& callback) = 0; | 602 const EnumerateDevicesCallback& callback) = 0; |
| 603 // Create a ClipboardClient for writing to the clipboard. The caller will own | 603 // Create a ClipboardClient for writing to the clipboard. The caller will own |
| 604 // the pointer to this. | 604 // the pointer to this. |
| 605 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; | 605 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; |
| 606 }; | 606 }; |
| 607 | 607 |
| 608 } // namespace ppapi | 608 } // namespace ppapi |
| 609 } // namespace webkit | 609 } // namespace webkit |
| 610 | 610 |
| 611 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 611 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |