Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: content/renderer/pepper/pepper_plugin_delegate_impl.h

Issue 11441012: PPB_UDPSocket_Private is switched to the new Pepper proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/id_map.h" 14 #include "base/id_map.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 #include "base/observer_list.h" 18 #include "base/observer_list.h"
19 #include "content/public/renderer/render_view_observer.h" 19 #include "content/public/renderer/render_view_observer.h"
20 #include "content/renderer/mouse_lock_dispatcher.h" 20 #include "content/renderer/mouse_lock_dispatcher.h"
21 #include "content/renderer/pepper/pepper_parent_context_provider.h" 21 #include "content/renderer/pepper/pepper_parent_context_provider.h"
22 #include "content/renderer/render_view_pepper_helper.h" 22 #include "content/renderer/render_view_pepper_helper.h"
23 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" 23 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h"
24 #include "ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h" 24 #include "ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h"
25 #include "ppapi/shared_impl/private/tcp_socket_private_impl.h" 25 #include "ppapi/shared_impl/private/tcp_socket_private_impl.h"
26 #include "ppapi/shared_impl/private/udp_socket_private_impl.h"
27 #include "ui/base/ime/text_input_type.h" 26 #include "ui/base/ime/text_input_type.h"
28 #include "webkit/plugins/ppapi/plugin_delegate.h" 27 #include "webkit/plugins/ppapi/plugin_delegate.h"
29 28
30 class FilePath; 29 class FilePath;
31 30
32 namespace IPC { 31 namespace IPC {
33 struct ChannelHandle; 32 struct ChannelHandle;
34 } 33 }
35 34
36 namespace ppapi { 35 namespace ppapi {
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 uint16_t server_port, 262 uint16_t server_port,
264 const std::vector<std::vector<char> >& trusted_certs, 263 const std::vector<std::vector<char> >& trusted_certs,
265 const std::vector<std::vector<char> >& untrusted_certs) OVERRIDE; 264 const std::vector<std::vector<char> >& untrusted_certs) OVERRIDE;
266 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) OVERRIDE; 265 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) OVERRIDE;
267 virtual void TCPSocketWrite(uint32 socket_id, 266 virtual void TCPSocketWrite(uint32 socket_id,
268 const std::string& buffer) OVERRIDE; 267 const std::string& buffer) OVERRIDE;
269 virtual void TCPSocketDisconnect(uint32 socket_id) OVERRIDE; 268 virtual void TCPSocketDisconnect(uint32 socket_id) OVERRIDE;
270 virtual void RegisterTCPSocket( 269 virtual void RegisterTCPSocket(
271 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket, 270 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket,
272 uint32 socket_id) OVERRIDE; 271 uint32 socket_id) OVERRIDE;
273 virtual uint32 UDPSocketCreate() OVERRIDE;
274 virtual void UDPSocketSetBoolSocketFeature(
275 webkit::ppapi::PPB_UDPSocket_Private_Impl* socket,
276 uint32 socket_id,
277 int32_t name,
278 bool value) OVERRIDE;
279 virtual void UDPSocketBind(
280 webkit::ppapi::PPB_UDPSocket_Private_Impl* socket,
281 uint32 socket_id,
282 const PP_NetAddress_Private& addr) OVERRIDE;
283 virtual void UDPSocketRecvFrom(uint32 socket_id,
284 int32_t num_bytes) OVERRIDE;
285 virtual void UDPSocketSendTo(uint32 socket_id,
286 const std::string& buffer,
287 const PP_NetAddress_Private& addr) OVERRIDE;
288 virtual void UDPSocketClose(uint32 socket_id) OVERRIDE;
289 virtual void TCPServerSocketListen( 272 virtual void TCPServerSocketListen(
290 PP_Resource socket_resource, 273 PP_Resource socket_resource,
291 const PP_NetAddress_Private& addr, 274 const PP_NetAddress_Private& addr,
292 int32_t backlog) OVERRIDE; 275 int32_t backlog) OVERRIDE;
293 virtual void TCPServerSocketAccept(uint32 server_socket_id) OVERRIDE; 276 virtual void TCPServerSocketAccept(uint32 server_socket_id) OVERRIDE;
294 virtual void TCPServerSocketStopListening( 277 virtual void TCPServerSocketStopListening(
295 PP_Resource socket_resource, 278 PP_Resource socket_resource,
296 uint32 socket_id) OVERRIDE; 279 uint32 socket_id) OVERRIDE;
297 virtual void RegisterHostResolver( 280 virtual void RegisterHostResolver(
298 ppapi::PPB_HostResolver_Shared* host_resolver, 281 ppapi::PPB_HostResolver_Shared* host_resolver,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 bool succeeded, 336 bool succeeded,
354 const ppapi::PPB_X509Certificate_Fields& certificate_fields); 337 const ppapi::PPB_X509Certificate_Fields& certificate_fields);
355 void OnTCPSocketReadACK(uint32 plugin_dispatcher_id, 338 void OnTCPSocketReadACK(uint32 plugin_dispatcher_id,
356 uint32 socket_id, 339 uint32 socket_id,
357 bool succeeded, 340 bool succeeded,
358 const std::string& data); 341 const std::string& data);
359 void OnTCPSocketWriteACK(uint32 plugin_dispatcher_id, 342 void OnTCPSocketWriteACK(uint32 plugin_dispatcher_id,
360 uint32 socket_id, 343 uint32 socket_id,
361 bool succeeded, 344 bool succeeded,
362 int32_t bytes_written); 345 int32_t bytes_written);
363 void OnUDPSocketBindACK(uint32 plugin_dispatcher_id,
364 uint32 socket_id,
365 bool succeeded,
366 const PP_NetAddress_Private& addr);
367 void OnUDPSocketSendToACK(uint32 plugin_dispatcher_id,
368 uint32 socket_id,
369 bool succeeded,
370 int32_t bytes_written);
371 void OnUDPSocketRecvFromACK(uint32 plugin_dispatcher_id,
372 uint32 socket_id,
373 bool succeeded,
374 const std::string& data,
375 const PP_NetAddress_Private& addr);
376 void OnTCPServerSocketListenACK(uint32 plugin_dispatcher_id, 346 void OnTCPServerSocketListenACK(uint32 plugin_dispatcher_id,
377 PP_Resource socket_resource, 347 PP_Resource socket_resource,
378 uint32 socket_id, 348 uint32 socket_id,
379 int32_t status); 349 int32_t status);
380 void OnTCPServerSocketAcceptACK(uint32 plugin_dispatcher_id, 350 void OnTCPServerSocketAcceptACK(uint32 plugin_dispatcher_id,
381 uint32 socket_id, 351 uint32 socket_id,
382 uint32 accepted_socket_id, 352 uint32 accepted_socket_id,
383 const PP_NetAddress_Private& local_addr, 353 const PP_NetAddress_Private& local_addr,
384 const PP_NetAddress_Private& remote_addr); 354 const PP_NetAddress_Private& remote_addr);
385 void OnHostResolverResolveACK( 355 void OnHostResolverResolveACK(
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 404
435 std::set<webkit::ppapi::PluginInstance*> active_instances_; 405 std::set<webkit::ppapi::PluginInstance*> active_instances_;
436 typedef std::map<webkit::ppapi::PluginInstance*, 406 typedef std::map<webkit::ppapi::PluginInstance*,
437 MouseLockDispatcher::LockTarget*> LockTargetMap; 407 MouseLockDispatcher::LockTarget*> LockTargetMap;
438 LockTargetMap mouse_lock_instances_; 408 LockTargetMap mouse_lock_instances_;
439 409
440 IDMap<AsyncOpenFileCallback> pending_async_open_files_; 410 IDMap<AsyncOpenFileCallback> pending_async_open_files_;
441 411
442 IDMap<webkit::ppapi::PPB_TCPSocket_Private_Impl> tcp_sockets_; 412 IDMap<webkit::ppapi::PPB_TCPSocket_Private_Impl> tcp_sockets_;
443 413
444 IDMap<webkit::ppapi::PPB_UDPSocket_Private_Impl> udp_sockets_;
445
446 IDMap<ppapi::PPB_TCPServerSocket_Shared> tcp_server_sockets_; 414 IDMap<ppapi::PPB_TCPServerSocket_Shared> tcp_server_sockets_;
447 415
448 IDMap<ppapi::PPB_HostResolver_Shared> host_resolvers_; 416 IDMap<ppapi::PPB_HostResolver_Shared> host_resolvers_;
449 417
450 typedef IDMap<scoped_refptr<PepperBrokerImpl>, IDMapOwnPointer> BrokerMap; 418 typedef IDMap<scoped_refptr<PepperBrokerImpl>, IDMapOwnPointer> BrokerMap;
451 BrokerMap pending_connect_broker_; 419 BrokerMap pending_connect_broker_;
452 420
453 typedef IDMap<base::WeakPtr<webkit::ppapi::PPB_Broker_Impl> > 421 typedef IDMap<base::WeakPtr<webkit::ppapi::PPB_Broker_Impl> >
454 PermissionRequestMap; 422 PermissionRequestMap;
455 PermissionRequestMap pending_permission_requests_; 423 PermissionRequestMap pending_permission_requests_;
(...skipping 15 matching lines...) Expand all
471 439
472 scoped_ptr<PepperDeviceEnumerationEventHandler> 440 scoped_ptr<PepperDeviceEnumerationEventHandler>
473 device_enumeration_event_handler_; 441 device_enumeration_event_handler_;
474 442
475 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); 443 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl);
476 }; 444 };
477 445
478 } // namespace content 446 } // namespace content
479 447
480 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 448 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_in_process_resource_creation.cc ('k') | content/renderer/pepper/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698