| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 NET_BASE_X509_CERTIFICATE_H_ | 5 #ifndef NET_BASE_X509_CERTIFICATE_H_ |
| 6 #define NET_BASE_X509_CERTIFICATE_H_ | 6 #define NET_BASE_X509_CERTIFICATE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 private: | 176 private: |
| 177 // A cache of X509Certificate objects. | 177 // A cache of X509Certificate objects. |
| 178 class Cache; | 178 class Cache; |
| 179 | 179 |
| 180 // Construct an X509Certificate from a handle to the certificate object | 180 // Construct an X509Certificate from a handle to the certificate object |
| 181 // in the underlying crypto library. | 181 // in the underlying crypto library. |
| 182 explicit X509Certificate(OSCertHandle cert_handle); | 182 explicit X509Certificate(OSCertHandle cert_handle); |
| 183 | 183 |
| 184 friend class base::RefCountedThreadSafe<X509Certificate>; | 184 friend class base::RefCountedThreadSafe<X509Certificate>; |
| 185 #if defined(OS_LINUX) |
| 186 // TODO(port): This is temporary hack to make it link. Remove when ported. |
| 187 ~X509Certificate() {} |
| 188 #else |
| 185 ~X509Certificate(); | 189 ~X509Certificate(); |
| 190 #endif |
| 186 | 191 |
| 187 // Common object initialization code. Called by the constructors only. | 192 // Common object initialization code. Called by the constructors only. |
| 188 void Initialize(); | 193 void Initialize(); |
| 189 | 194 |
| 190 #if defined(OS_WIN) | 195 #if defined(OS_WIN) |
| 191 // Helper function to parse a principal from a WinInet description of that | 196 // Helper function to parse a principal from a WinInet description of that |
| 192 // principal. | 197 // principal. |
| 193 static void ParsePrincipal(const std::string& description, | 198 static void ParsePrincipal(const std::string& description, |
| 194 Principal* principal); | 199 Principal* principal); |
| 195 #endif | 200 #endif |
| (...skipping 18 matching lines...) Expand all Loading... |
| 214 // A handle to the certificate object in the underlying crypto library. | 219 // A handle to the certificate object in the underlying crypto library. |
| 215 OSCertHandle cert_handle_; | 220 OSCertHandle cert_handle_; |
| 216 | 221 |
| 217 DISALLOW_COPY_AND_ASSIGN(X509Certificate); | 222 DISALLOW_COPY_AND_ASSIGN(X509Certificate); |
| 218 }; | 223 }; |
| 219 | 224 |
| 220 } // namespace net | 225 } // namespace net |
| 221 | 226 |
| 222 #endif // NET_BASE_X509_CERTIFICATE_H_ | 227 #endif // NET_BASE_X509_CERTIFICATE_H_ |
| 223 | 228 |
| OLD | NEW |