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 CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 const webkit::ppapi::PepperFilePath& path, | 249 const webkit::ppapi::PepperFilePath& path, |
250 base::PlatformFileInfo* info) OVERRIDE; | 250 base::PlatformFileInfo* info) OVERRIDE; |
251 virtual base::PlatformFileError GetDirContents( | 251 virtual base::PlatformFileError GetDirContents( |
252 const webkit::ppapi::PepperFilePath& path, | 252 const webkit::ppapi::PepperFilePath& path, |
253 webkit::ppapi::DirContents* contents) OVERRIDE; | 253 webkit::ppapi::DirContents* contents) OVERRIDE; |
254 virtual void SyncGetFileSystemPlatformPath( | 254 virtual void SyncGetFileSystemPlatformPath( |
255 const GURL& url, | 255 const GURL& url, |
256 FilePath* platform_path) OVERRIDE; | 256 FilePath* platform_path) OVERRIDE; |
257 virtual scoped_refptr<base::MessageLoopProxy> | 257 virtual scoped_refptr<base::MessageLoopProxy> |
258 GetFileThreadMessageLoopProxy() OVERRIDE; | 258 GetFileThreadMessageLoopProxy() OVERRIDE; |
259 virtual int32_t ConnectTcp( | |
260 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, | |
261 const char* host, | |
262 uint16_t port) OVERRIDE; | |
263 virtual int32_t ConnectTcpAddress( | |
264 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, | |
265 const struct PP_NetAddress_Private* addr) OVERRIDE; | |
266 // This is the completion for both |ConnectTcp()| and |ConnectTcpAddress()|. | |
267 void OnConnectTcpACK( | |
268 int request_id, | |
269 base::PlatformFile socket, | |
270 const PP_NetAddress_Private& local_addr, | |
271 const PP_NetAddress_Private& remote_addr); | |
272 | 259 |
273 virtual uint32 TCPSocketCreate() OVERRIDE; | 260 virtual uint32 TCPSocketCreate() OVERRIDE; |
274 virtual void TCPSocketConnect( | 261 virtual void TCPSocketConnect( |
275 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket, | 262 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket, |
276 uint32 socket_id, | 263 uint32 socket_id, |
277 const std::string& host, | 264 const std::string& host, |
278 uint16_t port) OVERRIDE; | 265 uint16_t port) OVERRIDE; |
279 virtual void TCPSocketConnectWithNetAddress( | 266 virtual void TCPSocketConnectWithNetAddress( |
280 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket, | 267 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket, |
281 uint32 socket_id, | 268 uint32 socket_id, |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 typedef std::map<webkit::ppapi::PluginInstance*, | 442 typedef std::map<webkit::ppapi::PluginInstance*, |
456 MouseLockDispatcher::LockTarget*> LockTargetMap; | 443 MouseLockDispatcher::LockTarget*> LockTargetMap; |
457 LockTargetMap mouse_lock_instances_; | 444 LockTargetMap mouse_lock_instances_; |
458 | 445 |
459 // Used to send a single context menu "completion" upon menu close. | 446 // Used to send a single context menu "completion" upon menu close. |
460 bool has_saved_context_menu_action_; | 447 bool has_saved_context_menu_action_; |
461 unsigned saved_context_menu_action_; | 448 unsigned saved_context_menu_action_; |
462 | 449 |
463 IDMap<AsyncOpenFileCallback> pending_async_open_files_; | 450 IDMap<AsyncOpenFileCallback> pending_async_open_files_; |
464 | 451 |
465 IDMap<scoped_refptr<webkit::ppapi::PPB_Flash_NetConnector_Impl>, | |
466 IDMapOwnPointer> pending_connect_tcps_; | |
467 | |
468 IDMap<webkit::ppapi::PPB_TCPSocket_Private_Impl> tcp_sockets_; | 452 IDMap<webkit::ppapi::PPB_TCPSocket_Private_Impl> tcp_sockets_; |
469 | 453 |
470 IDMap<webkit::ppapi::PPB_UDPSocket_Private_Impl> udp_sockets_; | 454 IDMap<webkit::ppapi::PPB_UDPSocket_Private_Impl> udp_sockets_; |
471 | 455 |
472 IDMap<ppapi::PPB_TCPServerSocket_Shared> tcp_server_sockets_; | 456 IDMap<ppapi::PPB_TCPServerSocket_Shared> tcp_server_sockets_; |
473 | 457 |
474 IDMap<ppapi::PPB_HostResolver_Shared> host_resolvers_; | 458 IDMap<ppapi::PPB_HostResolver_Shared> host_resolvers_; |
475 | 459 |
476 IDMap<scoped_refptr<webkit::ppapi::PPB_Flash_Menu_Impl>, | 460 IDMap<scoped_refptr<webkit::ppapi::PPB_Flash_Menu_Impl>, |
477 IDMapOwnPointer> pending_context_menus_; | 461 IDMapOwnPointer> pending_context_menus_; |
(...skipping 16 matching lines...) Expand all Loading... |
494 | 478 |
495 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 479 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
496 | 480 |
497 scoped_ptr<PepperDeviceEnumerationEventHandler> | 481 scoped_ptr<PepperDeviceEnumerationEventHandler> |
498 device_enumeration_event_handler_; | 482 device_enumeration_event_handler_; |
499 | 483 |
500 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 484 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
501 }; | 485 }; |
502 | 486 |
503 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 487 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |