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

Side by Side Diff: chrome/common/net/x509_certificate_model.h

Issue 10916094: Move the NSS functions out of CertDatabase into a new NSSCertDatabase class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_ 5 #ifndef CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_
6 #define CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_ 6 #define CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_
7 7
8 #include "net/base/cert_database.h"
9 #include "net/base/cert_type.h" 8 #include "net/base/cert_type.h"
10 #include "net/base/x509_certificate.h" 9 #include "net/base/x509_certificate.h"
11 10
12 // This namespace defines a set of functions to be used in UI-related bits of 11 // This namespace defines a set of functions to be used in UI-related bits of
13 // X509 certificates. It decouples the UI from the underlying crypto library 12 // X509 certificates. It decouples the UI from the underlying crypto library
14 // (currently NSS or OpenSSL - in development). 13 // (currently NSS or OpenSSL - in development).
15 // This is currently only used by linux, as mac / windows use their own native 14 // This is currently only used by linux, as mac / windows use their own native
16 // certificate viewers and crypto libraries. 15 // certificate viewers and crypto libraries.
17 namespace x509_certificate_model { 16 namespace x509_certificate_model {
18 17
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 #if defined(USE_NSS) 141 #if defined(USE_NSS)
143 // Format a buffer as a space separated string, with 16 bytes on each line. 142 // Format a buffer as a space separated string, with 16 bytes on each line.
144 // |data_length| is the length in bits. 143 // |data_length| is the length in bits.
145 std::string ProcessRawBits(const unsigned char* data, 144 std::string ProcessRawBits(const unsigned char* data,
146 size_t data_length); 145 size_t data_length);
147 #endif // USE_NSS 146 #endif // USE_NSS
148 147
149 } // namespace x509_certificate_model 148 } // namespace x509_certificate_model
150 149
151 #endif // CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_ 150 #endif // CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698