Chromium Code Reviews| Index: content/browser/renderer_host/pepper_tcp_socket.h |
| diff --git a/content/browser/renderer_host/pepper_tcp_socket.h b/content/browser/renderer_host/pepper_tcp_socket.h |
| index af1b6ed610db9766cbbdcae37be3832f2a3149df..abf7b5c3f97cc9d2488259b903ed7480c10c2614 100644 |
| --- a/content/browser/renderer_host/pepper_tcp_socket.h |
| +++ b/content/browser/renderer_host/pepper_tcp_socket.h |
| @@ -15,6 +15,10 @@ |
| #include "net/base/completion_callback.h" |
| #include "ppapi/c/pp_stdint.h" |
| +namespace ppapi { |
| +class PPB_X509Certificate_Fields; |
| +} |
| + |
| class PepperMessageFilter; |
| struct PP_NetAddress_Private; |
| @@ -22,6 +26,7 @@ namespace net { |
| class IOBuffer; |
| class SingleRequestHostResolver; |
| class StreamSocket; |
| +class X509Certificate; |
| } |
| // PepperTCPSocket is used by PepperMessageFilter to handle requests from |
| @@ -52,6 +57,16 @@ class PepperTCPSocket { |
| void SendConnectACKError(); |
| + // Extract the certificate field data from a |net::X509Certificate| into |
|
yzshen1
2012/03/20 06:48:01
- Would you please explain why we should put GetCe
raymes
2012/03/21 20:28:08
The certificates are related to the SSL socket fun
|
| + // |PPB_X509Certificate_Fields|. |
| + static bool GetCertificateFields(const net::X509Certificate& cert, |
| + ppapi::PPB_X509Certificate_Fields* fields); |
| + // Extract the certificate field data from the der representation of a |
| + // certificate into |PPB_X509Certificate_Fields|. |
| + static bool GetCertificateFields(const char* der, |
| + uint32_t length, |
| + ppapi::PPB_X509Certificate_Fields* fields); |
| + |
| private: |
| enum ConnectionState { |
| // Before a connection is successfully established (including a previous |