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

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

Issue 9699100: Add functionality to pppapi TCPSocket to support secure sockets in flash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 // For PPB_TCPSocket_Private. 448 // For PPB_TCPSocket_Private.
449 virtual uint32 TCPSocketCreate() = 0; 449 virtual uint32 TCPSocketCreate() = 0;
450 virtual void TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket, 450 virtual void TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket,
451 uint32 socket_id, 451 uint32 socket_id,
452 const std::string& host, 452 const std::string& host,
453 uint16_t port) = 0; 453 uint16_t port) = 0;
454 virtual void TCPSocketConnectWithNetAddress( 454 virtual void TCPSocketConnectWithNetAddress(
455 PPB_TCPSocket_Private_Impl* socket, 455 PPB_TCPSocket_Private_Impl* socket,
456 uint32 socket_id, 456 uint32 socket_id,
457 const PP_NetAddress_Private& addr) = 0; 457 const PP_NetAddress_Private& addr) = 0;
458 virtual void TCPSocketSSLHandshake(uint32 socket_id, 458 virtual void TCPSocketSSLHandshake(
459 const std::string& server_name, 459 uint32 socket_id,
460 uint16_t server_port) = 0; 460 const std::string& server_name,
461 uint16_t server_port,
462 const std::vector<std::vector<char> >& trusted_certs,
463 const std::vector<std::vector<char> >& untrusted_certs) = 0;
461 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0; 464 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0;
462 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0; 465 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0;
463 virtual void TCPSocketDisconnect(uint32 socket_id) = 0; 466 virtual void TCPSocketDisconnect(uint32 socket_id) = 0;
464 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, 467 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket,
465 uint32 socket_id) = 0; 468 uint32 socket_id) = 0;
466 469
467 // For PPB_UDPSocket_Private. 470 // For PPB_UDPSocket_Private.
468 virtual uint32 UDPSocketCreate() = 0; 471 virtual uint32 UDPSocketCreate() = 0;
469 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket, 472 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket,
470 uint32 socket_id, 473 uint32 socket_id,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 const EnumerateDevicesCallback& callback) = 0; 598 const EnumerateDevicesCallback& callback) = 0;
596 // Create a ClipboardClient for writing to the clipboard. The caller will own 599 // Create a ClipboardClient for writing to the clipboard. The caller will own
597 // the pointer to this. 600 // the pointer to this.
598 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; 601 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0;
599 }; 602 };
600 603
601 } // namespace ppapi 604 } // namespace ppapi
602 } // namespace webkit 605 } // namespace webkit
603 606
604 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 607 #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_tcp_socket_private_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698