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

Side by Side Diff: content/browser/renderer_host/pepper_tcp_socket.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 CONTENT_BROWSER_RENDERER_HOST_PEPPER_TCP_SOCKET_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_TCP_SOCKET_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_TCP_SOCKET_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_TCP_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 int32 routing_id, 44 int32 routing_id,
45 uint32 plugin_dispatcher_id, 45 uint32 plugin_dispatcher_id,
46 uint32 socket_id, 46 uint32 socket_id,
47 net::StreamSocket* socket); 47 net::StreamSocket* socket);
48 ~PepperTCPSocket(); 48 ~PepperTCPSocket();
49 49
50 int routing_id() { return routing_id_; } 50 int routing_id() { return routing_id_; }
51 51
52 void Connect(const std::string& host, uint16_t port); 52 void Connect(const std::string& host, uint16_t port);
53 void ConnectWithNetAddress(const PP_NetAddress_Private& net_addr); 53 void ConnectWithNetAddress(const PP_NetAddress_Private& net_addr);
54 void SSLHandshake(const std::string& server_name, uint16_t server_port); 54 void SSLHandshake(
55 const std::string& server_name,
56 uint16_t server_port,
57 const std::vector<std::vector<char> >& trusted_certs,
58 const std::vector<std::vector<char> >& untrusted_certs);
55 void Read(int32 bytes_to_read); 59 void Read(int32 bytes_to_read);
56 void Write(const std::string& data); 60 void Write(const std::string& data);
57 61
58 void SendConnectACKError(); 62 void SendConnectACKError();
59 63
60 // Extracts the certificate field data from a |net::X509Certificate| into 64 // Extracts the certificate field data from a |net::X509Certificate| into
61 // |PPB_X509Certificate_Fields|. 65 // |PPB_X509Certificate_Fields|.
62 static bool GetCertificateFields(const net::X509Certificate& cert, 66 static bool GetCertificateFields(const net::X509Certificate& cert,
63 ppapi::PPB_X509Certificate_Fields* fields); 67 ppapi::PPB_X509Certificate_Fields* fields);
64 // Extracts the certificate field data from the DER representation of a 68 // Extracts the certificate field data from the DER representation of a
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 115
112 scoped_ptr<net::StreamSocket> socket_; 116 scoped_ptr<net::StreamSocket> socket_;
113 117
114 scoped_refptr<net::IOBuffer> read_buffer_; 118 scoped_refptr<net::IOBuffer> read_buffer_;
115 scoped_refptr<net::IOBuffer> write_buffer_; 119 scoped_refptr<net::IOBuffer> write_buffer_;
116 120
117 DISALLOW_COPY_AND_ASSIGN(PepperTCPSocket); 121 DISALLOW_COPY_AND_ASSIGN(PepperTCPSocket);
118 }; 122 };
119 123
120 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_TCP_SOCKET_H_ 124 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_TCP_SOCKET_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/pepper_message_filter.cc ('k') | content/browser/renderer_host/pepper_tcp_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698