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

Side by Side Diff: net/base/x509_certificate.h

Issue 4013: Port more unit tests in net/http/ (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 12 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
« no previous file with comments | « net/base/client_socket_factory.cc ('k') | net/http/http_cache.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) 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
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
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
OLDNEW
« no previous file with comments | « net/base/client_socket_factory.cc ('k') | net/http/http_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698