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

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.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 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
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 namespace ppapi { 94 namespace ppapi {
95 95
96 class FileIO; 96 class FileIO;
97 class FullscreenContainer; 97 class FullscreenContainer;
98 class PluginInstance; 98 class PluginInstance;
99 class PluginModule; 99 class PluginModule;
100 class PPB_Broker_Impl; 100 class PPB_Broker_Impl;
101 class PPB_Flash_Menu_Impl; 101 class PPB_Flash_Menu_Impl;
102 class PPB_ImageData_Impl; 102 class PPB_ImageData_Impl;
103 class PPB_TCPSocket_Private_Impl; 103 class PPB_TCPSocket_Private_Impl;
104 class PPB_UDPSocket_Private_Impl;
105 104
106 // Virtual interface that the browser implements to implement features for 105 // Virtual interface that the browser implements to implement features for
107 // PPAPI plugins. 106 // PPAPI plugins.
108 class PluginDelegate { 107 class PluginDelegate {
109 public: 108 public:
110 // This interface is used for the PluginModule to tell the code in charge of 109 // This interface is used for the PluginModule to tell the code in charge of
111 // re-using modules which modules currently exist. 110 // re-using modules which modules currently exist.
112 // 111 //
113 // It is different than the other interfaces, which are scoped to the 112 // It is different than the other interfaces, which are scoped to the
114 // lifetime of the plugin instance. The implementor of this interface must 113 // lifetime of the plugin instance. The implementor of this interface must
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 const std::string& server_name, 540 const std::string& server_name,
542 uint16_t server_port, 541 uint16_t server_port,
543 const std::vector<std::vector<char> >& trusted_certs, 542 const std::vector<std::vector<char> >& trusted_certs,
544 const std::vector<std::vector<char> >& untrusted_certs) = 0; 543 const std::vector<std::vector<char> >& untrusted_certs) = 0;
545 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0; 544 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0;
546 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0; 545 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0;
547 virtual void TCPSocketDisconnect(uint32 socket_id) = 0; 546 virtual void TCPSocketDisconnect(uint32 socket_id) = 0;
548 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, 547 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket,
549 uint32 socket_id) = 0; 548 uint32 socket_id) = 0;
550 549
551 // For PPB_UDPSocket_Private.
552 virtual uint32 UDPSocketCreate() = 0;
553 virtual void UDPSocketSetBoolSocketFeature(PPB_UDPSocket_Private_Impl* socket,
554 uint32 socket_id,
555 int32_t name,
556 bool value) = 0;
557 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket,
558 uint32 socket_id,
559 const PP_NetAddress_Private& addr) = 0;
560 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes) = 0;
561 virtual void UDPSocketSendTo(uint32 socket_id,
562 const std::string& buffer,
563 const PP_NetAddress_Private& addr) = 0;
564 virtual void UDPSocketClose(uint32 socket_id) = 0;
565
566 // For PPB_TCPServerSocket_Private. 550 // For PPB_TCPServerSocket_Private.
567 virtual void TCPServerSocketListen(PP_Resource socket_resource, 551 virtual void TCPServerSocketListen(PP_Resource socket_resource,
568 const PP_NetAddress_Private& addr, 552 const PP_NetAddress_Private& addr,
569 int32_t backlog) = 0; 553 int32_t backlog) = 0;
570 virtual void TCPServerSocketAccept(uint32 server_socket_id) = 0; 554 virtual void TCPServerSocketAccept(uint32 server_socket_id) = 0;
571 virtual void TCPServerSocketStopListening( 555 virtual void TCPServerSocketStopListening(
572 PP_Resource socket_resource, 556 PP_Resource socket_resource,
573 uint32 socket_id) = 0; 557 uint32 socket_id) = 0;
574 558
575 // For PPB_HostResolver_Private. 559 // For PPB_HostResolver_Private.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 const EnumerateDevicesCallback& callback) = 0; 657 const EnumerateDevicesCallback& callback) = 0;
674 // Stop enumerating devices of the specified |request_id|. The |request_id| 658 // Stop enumerating devices of the specified |request_id|. The |request_id|
675 // is the return value of EnumerateDevicesCallback. 659 // is the return value of EnumerateDevicesCallback.
676 virtual void StopEnumerateDevices(int request_id) = 0; 660 virtual void StopEnumerateDevices(int request_id) = 0;
677 }; 661 };
678 662
679 } // namespace ppapi 663 } // namespace ppapi
680 } // namespace webkit 664 } // namespace webkit
681 665
682 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 666 #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