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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 virtual void TCPSocketSSLHandshake( | 260 virtual void TCPSocketSSLHandshake( |
261 uint32 socket_id, | 261 uint32 socket_id, |
262 const std::string& server_name, | 262 const std::string& server_name, |
263 uint16_t server_port, | 263 uint16_t server_port, |
264 const std::vector<std::vector<char> >& trusted_certs, | 264 const std::vector<std::vector<char> >& trusted_certs, |
265 const std::vector<std::vector<char> >& untrusted_certs) OVERRIDE; | 265 const std::vector<std::vector<char> >& untrusted_certs) OVERRIDE; |
266 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) OVERRIDE; | 266 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) OVERRIDE; |
267 virtual void TCPSocketWrite(uint32 socket_id, | 267 virtual void TCPSocketWrite(uint32 socket_id, |
268 const std::string& buffer) OVERRIDE; | 268 const std::string& buffer) OVERRIDE; |
269 virtual void TCPSocketDisconnect(uint32 socket_id) OVERRIDE; | 269 virtual void TCPSocketDisconnect(uint32 socket_id) OVERRIDE; |
| 270 virtual void TCPSocketSetBoolOption(uint32 socket_id, |
| 271 PP_TCPSocketOption_Private name, |
| 272 bool value) OVERRIDE; |
270 virtual void RegisterTCPSocket( | 273 virtual void RegisterTCPSocket( |
271 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket, | 274 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket, |
272 uint32 socket_id) OVERRIDE; | 275 uint32 socket_id) OVERRIDE; |
273 virtual void TCPServerSocketListen( | 276 virtual void TCPServerSocketListen( |
274 PP_Resource socket_resource, | 277 PP_Resource socket_resource, |
275 const PP_NetAddress_Private& addr, | 278 const PP_NetAddress_Private& addr, |
276 int32_t backlog) OVERRIDE; | 279 int32_t backlog) OVERRIDE; |
277 virtual void TCPServerSocketAccept(uint32 server_socket_id) OVERRIDE; | 280 virtual void TCPServerSocketAccept(uint32 server_socket_id) OVERRIDE; |
278 virtual void TCPServerSocketStopListening( | 281 virtual void TCPServerSocketStopListening( |
279 PP_Resource socket_resource, | 282 PP_Resource socket_resource, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 bool succeeded, | 332 bool succeeded, |
330 const ppapi::PPB_X509Certificate_Fields& certificate_fields); | 333 const ppapi::PPB_X509Certificate_Fields& certificate_fields); |
331 void OnTCPSocketReadACK(uint32 plugin_dispatcher_id, | 334 void OnTCPSocketReadACK(uint32 plugin_dispatcher_id, |
332 uint32 socket_id, | 335 uint32 socket_id, |
333 bool succeeded, | 336 bool succeeded, |
334 const std::string& data); | 337 const std::string& data); |
335 void OnTCPSocketWriteACK(uint32 plugin_dispatcher_id, | 338 void OnTCPSocketWriteACK(uint32 plugin_dispatcher_id, |
336 uint32 socket_id, | 339 uint32 socket_id, |
337 bool succeeded, | 340 bool succeeded, |
338 int32_t bytes_written); | 341 int32_t bytes_written); |
| 342 void OnTCPSocketSetBoolOptionACK(uint32 plugin_dispatcher_id, |
| 343 uint32 socket_id, |
| 344 bool succeeded); |
339 void OnTCPServerSocketListenACK(uint32 plugin_dispatcher_id, | 345 void OnTCPServerSocketListenACK(uint32 plugin_dispatcher_id, |
340 PP_Resource socket_resource, | 346 PP_Resource socket_resource, |
341 uint32 socket_id, | 347 uint32 socket_id, |
342 int32_t status); | 348 int32_t status); |
343 void OnTCPServerSocketAcceptACK(uint32 plugin_dispatcher_id, | 349 void OnTCPServerSocketAcceptACK(uint32 plugin_dispatcher_id, |
344 uint32 socket_id, | 350 uint32 socket_id, |
345 uint32 accepted_socket_id, | 351 uint32 accepted_socket_id, |
346 const PP_NetAddress_Private& local_addr, | 352 const PP_NetAddress_Private& local_addr, |
347 const PP_NetAddress_Private& remote_addr); | 353 const PP_NetAddress_Private& remote_addr); |
348 | 354 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 | 430 |
425 scoped_ptr<PepperDeviceEnumerationEventHandler> | 431 scoped_ptr<PepperDeviceEnumerationEventHandler> |
426 device_enumeration_event_handler_; | 432 device_enumeration_event_handler_; |
427 | 433 |
428 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 434 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
429 }; | 435 }; |
430 | 436 |
431 } // namespace content | 437 } // namespace content |
432 | 438 |
433 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 439 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |