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

Unified Diff: content/browser/renderer_host/pepper/pepper_socket_utils.h

Issue 22923014: TCPSockets are switched to the new Pepper proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698