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

Side by Side Diff: net/base/ssl_info.cc

Issue 7819009: For the SSL cert status, convert anonymous enum that gives bit values into a typedefed uint32. Th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 #include "net/base/ssl_info.h" 5 #include "net/base/ssl_info.h"
6 6
7 #include "net/base/cert_status_flags.h" 7 #include "net/base/cert_status_flags.h"
8 #include "net/base/x509_certificate.h" 8 #include "net/base/x509_certificate.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 15 matching lines...) Expand all
26 security_bits = info.security_bits; 26 security_bits = info.security_bits;
27 connection_status = info.connection_status; 27 connection_status = info.connection_status;
28 public_key_hashes = info.public_key_hashes; 28 public_key_hashes = info.public_key_hashes;
29 is_issued_by_known_root = info.is_issued_by_known_root; 29 is_issued_by_known_root = info.is_issued_by_known_root;
30 handshake_type = info.handshake_type; 30 handshake_type = info.handshake_type;
31 return *this; 31 return *this;
32 } 32 }
33 33
34 void SSLInfo::Reset() { 34 void SSLInfo::Reset() {
35 cert = NULL; 35 cert = NULL;
36 cert_status = 0; 36 cert_status = CERT_STATUS_NO_ERROR;
37 security_bits = -1; 37 security_bits = -1;
38 connection_status = 0; 38 connection_status = 0;
39 is_issued_by_known_root = false; 39 is_issued_by_known_root = false;
40 public_key_hashes.clear(); 40 public_key_hashes.clear();
41 handshake_type = HANDSHAKE_UNKNOWN; 41 handshake_type = HANDSHAKE_UNKNOWN;
42 } 42 }
43 43
44 void SSLInfo::SetCertError(int error) { 44 void SSLInfo::SetCertError(int error) {
45 cert_status |= MapNetErrorToCertStatus(error); 45 cert_status |= MapNetErrorToCertStatus(error);
46 } 46 }
47 47
48 } // namespace net 48 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698