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

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 10735056: AllowBroadcast() is exposed to NaCl. (Closed) Base URL: http://git.chromium.org/chromium/src.git@udp_broadcast
Patch Set: Sync. Created 8 years, 3 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
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 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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 const std::vector<std::vector<char> >& trusted_certs, 518 const std::vector<std::vector<char> >& trusted_certs,
518 const std::vector<std::vector<char> >& untrusted_certs) = 0; 519 const std::vector<std::vector<char> >& untrusted_certs) = 0;
519 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0; 520 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0;
520 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0; 521 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0;
521 virtual void TCPSocketDisconnect(uint32 socket_id) = 0; 522 virtual void TCPSocketDisconnect(uint32 socket_id) = 0;
522 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, 523 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket,
523 uint32 socket_id) = 0; 524 uint32 socket_id) = 0;
524 525
525 // For PPB_UDPSocket_Private. 526 // For PPB_UDPSocket_Private.
526 virtual uint32 UDPSocketCreate() = 0; 527 virtual uint32 UDPSocketCreate() = 0;
528 virtual void UDPSocketSetBoolSocketFeature(PPB_UDPSocket_Private_Impl* socket,
529 uint32 socket_id,
530 int32_t name,
531 bool value) = 0;
527 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket, 532 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket,
528 uint32 socket_id, 533 uint32 socket_id,
529 const PP_NetAddress_Private& addr) = 0; 534 const PP_NetAddress_Private& addr) = 0;
530 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes) = 0; 535 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes) = 0;
531 virtual void UDPSocketSendTo(uint32 socket_id, 536 virtual void UDPSocketSendTo(uint32 socket_id,
532 const std::string& buffer, 537 const std::string& buffer,
533 const PP_NetAddress_Private& addr) = 0; 538 const PP_NetAddress_Private& addr) = 0;
534 virtual void UDPSocketClose(uint32 socket_id) = 0; 539 virtual void UDPSocketClose(uint32 socket_id) = 0;
535 540
536 // For PPB_TCPServerSocket_Private. 541 // For PPB_TCPServerSocket_Private.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 // Returns restrictions on local data handled by the plug-in. 672 // Returns restrictions on local data handled by the plug-in.
668 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( 673 virtual PP_FlashLSORestrictions GetLocalDataRestrictions(
669 const GURL& document_url, 674 const GURL& document_url,
670 const GURL& plugin_url) = 0; 675 const GURL& plugin_url) = 0;
671 }; 676 };
672 677
673 } // namespace ppapi 678 } // namespace ppapi
674 } // namespace webkit 679 } // namespace webkit
675 680
676 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 681 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppb_udp_socket_private_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698