Fix Telemetry media seek action flakiness.
[chromium-blink-merge.git] / net / socket / nss_ssl_util.h
blob09ae3562cd77fa32c3360f3fe9a907586766b4d0
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
3 // found in the LICENSE file.
5 // This file is only included in ssl_client_socket_nss.cc and
6 // ssl_server_socket_nss.cc to share common functions of NSS.
8 #ifndef NET_SOCKET_NSS_SSL_UTIL_H_
9 #define NET_SOCKET_NSS_SSL_UTIL_H_
11 #include <prerror.h>
13 #include "net/base/net_export.h"
15 namespace net {
17 class BoundNetLog;
19 // Initalize NSS SSL library.
20 NET_EXPORT void EnsureNSSSSLInit();
22 // Log a failed NSS funcion call.
23 void LogFailedNSSFunction(const BoundNetLog& net_log,
24 const char* function,
25 const char* param);
27 // Map network error code to NSS error code.
28 PRErrorCode MapErrorToNSS(int result);
30 // Map NSS error code to network error code.
31 int MapNSSError(PRErrorCode err);
33 } // namespace net
35 #endif // NET_SOCKET_NSS_SSL_UTIL_H_