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

Side by Side Diff: net/ssl/ssl_info.h

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk Created 7 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SSL_SSL_INFO_H_ 5 #ifndef NET_SSL_SSL_INFO_H_
6 #define NET_SSL_SSL_INFO_H_ 6 #define NET_SSL_SSL_INFO_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 17 matching lines...) Expand all
28 HANDSHAKE_FULL, // we negotiated a new session. 28 HANDSHAKE_FULL, // we negotiated a new session.
29 }; 29 };
30 30
31 SSLInfo(); 31 SSLInfo();
32 SSLInfo(const SSLInfo& info); 32 SSLInfo(const SSLInfo& info);
33 ~SSLInfo(); 33 ~SSLInfo();
34 SSLInfo& operator=(const SSLInfo& info); 34 SSLInfo& operator=(const SSLInfo& info);
35 35
36 void Reset(); 36 void Reset();
37 37
38 bool is_valid() const { return cert != NULL; } 38 bool is_valid() const { return cert.get() != NULL; }
39 39
40 // Adds the specified |error| to the cert status. 40 // Adds the specified |error| to the cert status.
41 void SetCertError(int error); 41 void SetCertError(int error);
42 42
43 // The SSL certificate. 43 // The SSL certificate.
44 scoped_refptr<X509Certificate> cert; 44 scoped_refptr<X509Certificate> cert;
45 45
46 // Bitmask of status info of |cert|, representing, for example, known errors 46 // Bitmask of status info of |cert|, representing, for example, known errors
47 // and extended validation (EV) status. 47 // and extended validation (EV) status.
48 // See cert_status_flags.h for values. 48 // See cert_status_flags.h for values.
(...skipping 23 matching lines...) Expand all
72 HandshakeType handshake_type; 72 HandshakeType handshake_type;
73 73
74 // The hashes, in several algorithms, of the SubjectPublicKeyInfos from 74 // The hashes, in several algorithms, of the SubjectPublicKeyInfos from
75 // each certificate in the chain. 75 // each certificate in the chain.
76 HashValueVector public_key_hashes; 76 HashValueVector public_key_hashes;
77 }; 77 };
78 78
79 } // namespace net 79 } // namespace net
80 80
81 #endif // NET_SSL_SSL_INFO_H_ 81 #endif // NET_SSL_SSL_INFO_H_
OLDNEW
« no previous file with comments | « net/ssl/ssl_client_auth_cache_unittest.cc ('k') | net/test/embedded_test_server/embedded_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698