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

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

Issue 13006020: net: extract net/cert out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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
« no previous file with comments | « chrome/common/automation_messages.h ('k') | chrome/common/net/x509_certificate_model_nss.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_type.h" 8 #include "net/cert/cert_type.h"
9 #include "net/base/x509_certificate.h" 9 #include "net/cert/x509_certificate.h"
10 10
11 // 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
12 // X509 certificates. It decouples the UI from the underlying crypto library 12 // X509 certificates. It decouples the UI from the underlying crypto library
13 // (currently NSS or OpenSSL - in development). 13 // (currently NSS or OpenSSL - in development).
14 // 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
15 // certificate viewers and crypto libraries. 15 // certificate viewers and crypto libraries.
16 namespace x509_certificate_model { 16 namespace x509_certificate_model {
17 17
18 std::string GetCertNameOrNickname( 18 std::string GetCertNameOrNickname(
19 net::X509Certificate::OSCertHandle cert_handle); 19 net::X509Certificate::OSCertHandle cert_handle);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 #if defined(USE_NSS) 141 #if defined(USE_NSS)
142 // 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.
143 // |data_length| is the length in bits. 143 // |data_length| is the length in bits.
144 std::string ProcessRawBits(const unsigned char* data, 144 std::string ProcessRawBits(const unsigned char* data,
145 size_t data_length); 145 size_t data_length);
146 #endif // USE_NSS 146 #endif // USE_NSS
147 147
148 } // namespace x509_certificate_model 148 } // namespace x509_certificate_model
149 149
150 #endif // CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_ 150 #endif // CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/common/automation_messages.h ('k') | chrome/common/net/x509_certificate_model_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698