Index: content/browser/renderer_host/pepper/pepper_socket_utils.h |
diff --git a/content/browser/renderer_host/pepper/pepper_socket_utils.h b/content/browser/renderer_host/pepper/pepper_socket_utils.h |
index 7a0cef56a5ce3bcbb5667dc43ea845dc978a471f..a1a17973616073a11dad1b728ece765162453cf1 100644 |
--- a/content/browser/renderer_host/pepper/pepper_socket_utils.h |
+++ b/content/browser/renderer_host/pepper/pepper_socket_utils.h |
@@ -5,10 +5,19 @@ |
#ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_SOCKET_UTILS_H_ |
#define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_SOCKET_UTILS_H_ |
+#include "base/basictypes.h" |
#include "content/public/common/socket_permission_request.h" |
struct PP_NetAddress_Private; |
+namespace net { |
+class X509Certificate; |
yzshen1
2013/08/16 20:40:42
extra space.
ygorshenin1
2013/08/19 14:33:35
Done.
|
+} |
+ |
+namespace ppapi { |
+struct PPB_X509Certificate_Fields; |
+} |
+ |
namespace content { |
class RenderViewHost; |
@@ -31,6 +40,17 @@ bool CanUseSocketAPIs(bool external_plugin, |
const SocketPermissionRequest& params, |
RenderViewHost* render_view_host); |
+// Extracts the certificate field data from a |net::X509Certificate| into |
+// |PPB_X509Certificate_Fields|. |
yzshen1
2013/08/16 20:40:42
nit: we usually don't use | around type names.
ygorshenin1
2013/08/19 14:33:35
Done.
|
+bool GetCertificateFields(const net::X509Certificate& cert, |
+ ppapi::PPB_X509Certificate_Fields* fields); |
+ |
+// Extracts the certificate field data from the DER representation of a |
+// certificate into |PPB_X509Certificate_Fields|. |
+bool GetCertificateFields(const char* der, |
+ uint32_t length, |
+ ppapi::PPB_X509Certificate_Fields* fields); |
+ |
} // namespace pepper_socket_utils |
} // namespace content |