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

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

Issue 9283022: Exposed Listen and Accept methods to plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync. Created 8 years, 10 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
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/plugins/ppapi/mock_plugin_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_MOCK_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
7 7
8 #include "webkit/plugins/ppapi/plugin_delegate.h" 8 #include "webkit/plugins/ppapi/plugin_delegate.h"
9 9
10 struct PP_NetAddress_Private; 10 struct PP_NetAddress_Private;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 virtual void TCPSocketConnectWithNetAddress( 115 virtual void TCPSocketConnectWithNetAddress(
116 PPB_TCPSocket_Private_Impl* socket, 116 PPB_TCPSocket_Private_Impl* socket,
117 uint32 socket_id, 117 uint32 socket_id,
118 const PP_NetAddress_Private& addr); 118 const PP_NetAddress_Private& addr);
119 virtual void TCPSocketSSLHandshake(uint32 socket_id, 119 virtual void TCPSocketSSLHandshake(uint32 socket_id,
120 const std::string& server_name, 120 const std::string& server_name,
121 uint16_t server_port); 121 uint16_t server_port);
122 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read); 122 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read);
123 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer); 123 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer);
124 virtual void TCPSocketDisconnect(uint32 socket_id); 124 virtual void TCPSocketDisconnect(uint32 socket_id);
125 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket,
126 uint32 socket_id);
125 virtual uint32 UDPSocketCreate(); 127 virtual uint32 UDPSocketCreate();
126 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket, 128 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket,
127 uint32 socket_id, 129 uint32 socket_id,
128 const PP_NetAddress_Private& addr); 130 const PP_NetAddress_Private& addr);
129 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes); 131 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes);
130 virtual void UDPSocketSendTo(uint32 socket_id, 132 virtual void UDPSocketSendTo(uint32 socket_id,
131 const std::string& buffer, 133 const std::string& buffer,
132 const PP_NetAddress_Private& addr); 134 const PP_NetAddress_Private& addr);
133 virtual void UDPSocketClose(uint32 socket_id); 135 virtual void UDPSocketClose(uint32 socket_id);
136 virtual void TCPServerSocketListen(PPB_TCPServerSocket_Private_Impl* socket,
137 uint32 temp_socket_id,
138 const PP_NetAddress_Private& addr,
139 int32_t backlog);
140 virtual void TCPServerSocketAccept(uint32 real_socket_id);
141 virtual void TCPServerSocketStopListening(uint32 real_socket_id,
142 uint32 temp_socket_id);
134 virtual int32_t ShowContextMenu( 143 virtual int32_t ShowContextMenu(
135 PluginInstance* instance, 144 PluginInstance* instance,
136 webkit::ppapi::PPB_Flash_Menu_Impl* menu, 145 webkit::ppapi::PPB_Flash_Menu_Impl* menu,
137 const gfx::Point& position); 146 const gfx::Point& position);
138 virtual FullscreenContainer* CreateFullscreenContainer( 147 virtual FullscreenContainer* CreateFullscreenContainer(
139 PluginInstance* instance); 148 PluginInstance* instance);
140 virtual gfx::Size GetScreenSize(); 149 virtual gfx::Size GetScreenSize();
141 virtual std::string GetDefaultEncoding(); 150 virtual std::string GetDefaultEncoding();
142 virtual void ZoomLimitsChanged(double minimum_factor, 151 virtual void ZoomLimitsChanged(double minimum_factor,
143 double maximum_factor); 152 double maximum_factor);
(...skipping 17 matching lines...) Expand all
161 virtual bool IsInFullscreenMode(); 170 virtual bool IsInFullscreenMode();
162 virtual bool IsPageVisible() const; 171 virtual bool IsPageVisible() const;
163 virtual int EnumerateDevices(PP_DeviceType_Dev type, 172 virtual int EnumerateDevices(PP_DeviceType_Dev type,
164 const EnumerateDevicesCallback& callback); 173 const EnumerateDevicesCallback& callback);
165 }; 174 };
166 175
167 } // namespace ppapi 176 } // namespace ppapi
168 } // namespace webkit 177 } // namespace webkit
169 178
170 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 179 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/plugins/ppapi/mock_plugin_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698