Disable view source for Developer Tools.
[chromium-blink-merge.git] / net / cert / scoped_nss_types.h
blob3e6d57d998daeac77016607b85214f45212ad909
1 // Copyright 2013 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.
4 //
5 #ifndef NET_CERT_SCOPED_NSS_TYPES_H_
6 #define NET_CERT_SCOPED_NSS_TYPES_H_
8 #include <cert.h>
10 #include "base/memory/scoped_ptr.h"
12 namespace net {
14 struct FreeCERTCertificate {
15 public:
16 void operator()(CERTCertificate* x) const {
17 CERT_DestroyCertificate(x);
21 typedef scoped_ptr_malloc<CERTCertificate, FreeCERTCertificate>
22 ScopedCERTCertificate;
24 } // namespace net
26 #endif // NET_CERT_SCOPED_NSS_TYPES_H_