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

Side by Side Diff: webkit/plugins/ppapi/ppb_tcp_socket_private_impl.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_PPB_TCP_SOCKET_PRIVATE_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_TCP_SOCKET_PRIVATE_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_TCP_SOCKET_PRIVATE_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_TCP_SOCKET_PRIVATE_IMPL_H_
7 7
8 #include <vector>
9
8 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
9 #include "ppapi/shared_impl/private/tcp_socket_private_impl.h" 11 #include "ppapi/shared_impl/private/tcp_socket_private_impl.h"
10 12
11 namespace webkit { 13 namespace webkit {
12 namespace ppapi { 14 namespace ppapi {
13 15
14 class PluginDelegate; 16 class PluginDelegate;
15 17
16 class PPB_TCPSocket_Private_Impl : public ::ppapi::TCPSocketPrivateImpl { 18 class PPB_TCPSocket_Private_Impl : public ::ppapi::TCPSocketPrivateImpl {
17 public: 19 public:
18 static PP_Resource CreateResource(PP_Instance instance); 20 static PP_Resource CreateResource(PP_Instance instance);
19 static PP_Resource CreateConnectedSocket( 21 static PP_Resource CreateConnectedSocket(
20 PP_Instance instance, 22 PP_Instance instance,
21 uint32 socket_id, 23 uint32 socket_id,
22 const PP_NetAddress_Private& local_addr, 24 const PP_NetAddress_Private& local_addr,
23 const PP_NetAddress_Private& remote_addr); 25 const PP_NetAddress_Private& remote_addr);
24 26
25 virtual void SendConnect(const std::string& host, uint16_t port) OVERRIDE; 27 virtual void SendConnect(const std::string& host, uint16_t port) OVERRIDE;
26 virtual void SendConnectWithNetAddress( 28 virtual void SendConnectWithNetAddress(
27 const PP_NetAddress_Private& addr) OVERRIDE; 29 const PP_NetAddress_Private& addr) OVERRIDE;
28 virtual void SendSSLHandshake(const std::string& server_name, 30 virtual void SendSSLHandshake(
29 uint16_t server_port) OVERRIDE; 31 const std::string& server_name,
32 uint16_t server_port,
33 const std::vector<std::vector<char> >& trusted_certs,
34 const std::vector<std::vector<char> >& untrusted_certs) OVERRIDE;
30 virtual void SendRead(int32_t bytes_to_read) OVERRIDE; 35 virtual void SendRead(int32_t bytes_to_read) OVERRIDE;
31 virtual void SendWrite(const std::string& buffer) OVERRIDE; 36 virtual void SendWrite(const std::string& buffer) OVERRIDE;
32 virtual void SendDisconnect() OVERRIDE; 37 virtual void SendDisconnect() OVERRIDE;
33 38
34 private: 39 private:
35 PPB_TCPSocket_Private_Impl(PP_Instance instance, uint32 socket_id); 40 PPB_TCPSocket_Private_Impl(PP_Instance instance, uint32 socket_id);
36 virtual ~PPB_TCPSocket_Private_Impl(); 41 virtual ~PPB_TCPSocket_Private_Impl();
37 42
38 static PluginDelegate* GetPluginDelegate(PP_Instance instance); 43 static PluginDelegate* GetPluginDelegate(PP_Instance instance);
39 44
40 DISALLOW_COPY_AND_ASSIGN(PPB_TCPSocket_Private_Impl); 45 DISALLOW_COPY_AND_ASSIGN(PPB_TCPSocket_Private_Impl);
41 }; 46 };
42 47
43 } // namespace ppapi 48 } // namespace ppapi
44 } // namespace webkit 49 } // namespace webkit
45 50
46 #endif // WEBKIT_PLUGINS_PPAPI_PPB_TCP_SOCKET_PRIVATE_IMPL_H_ 51 #endif // WEBKIT_PLUGINS_PPAPI_PPB_TCP_SOCKET_PRIVATE_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppb_tcp_socket_private_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698