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

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, 8 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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 // For PPB_TCPSocket_Private. 462 // For PPB_TCPSocket_Private.
463 virtual uint32 TCPSocketCreate() = 0; 463 virtual uint32 TCPSocketCreate() = 0;
464 virtual void TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket, 464 virtual void TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket,
465 uint32 socket_id, 465 uint32 socket_id,
466 const std::string& host, 466 const std::string& host,
467 uint16_t port) = 0; 467 uint16_t port) = 0;
468 virtual void TCPSocketConnectWithNetAddress( 468 virtual void TCPSocketConnectWithNetAddress(
469 PPB_TCPSocket_Private_Impl* socket, 469 PPB_TCPSocket_Private_Impl* socket,
470 uint32 socket_id, 470 uint32 socket_id,
471 const PP_NetAddress_Private& addr) = 0; 471 const PP_NetAddress_Private& addr) = 0;
472 virtual void TCPSocketSSLHandshake(uint32 socket_id, 472 virtual void TCPSocketSSLHandshake(
473 const std::string& server_name, 473 uint32 socket_id,
474 uint16_t server_port) = 0; 474 const std::string& server_name,
475 uint16_t server_port,
476 const std::vector<std::vector<char> >& trusted_certs,
477 const std::vector<std::vector<char> >& untrusted_certs) = 0;
475 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0; 478 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0;
476 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0; 479 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0;
477 virtual void TCPSocketDisconnect(uint32 socket_id) = 0; 480 virtual void TCPSocketDisconnect(uint32 socket_id) = 0;
478 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, 481 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket,
479 uint32 socket_id) = 0; 482 uint32 socket_id) = 0;
480 483
481 // For PPB_UDPSocket_Private. 484 // For PPB_UDPSocket_Private.
482 virtual uint32 UDPSocketCreate() = 0; 485 virtual uint32 UDPSocketCreate() = 0;
483 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket, 486 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket,
484 uint32 socket_id, 487 uint32 socket_id,
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 const EnumerateDevicesCallback& callback) = 0; 622 const EnumerateDevicesCallback& callback) = 0;
620 // Create a ClipboardClient for writing to the clipboard. The caller will own 623 // Create a ClipboardClient for writing to the clipboard. The caller will own
621 // the pointer to this. 624 // the pointer to this.
622 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; 625 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0;
623 }; 626 };
624 627
625 } // namespace ppapi 628 } // namespace ppapi
626 } // namespace webkit 629 } // namespace webkit
627 630
628 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 631 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698