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

Side by Side Diff: content/public/browser/ssl_status.h

Issue 2600233003: Discard SSL certificates for non-committed entries to save memory. (Closed)
Patch Set: Created 3 years, 12 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
« no previous file with comments | « content/browser/frame_host/navigation_controller_impl.cc ('k') | no next file » | 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) 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 CONTENT_PUBLIC_BROWSER_SSL_STATUS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_SSL_STATUS_H_
6 #define CONTENT_PUBLIC_BROWSER_SSL_STATUS_H_ 6 #define CONTENT_PUBLIC_BROWSER_SSL_STATUS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 cert_status == status.cert_status && 67 cert_status == status.cert_status &&
68 security_bits == status.security_bits && 68 security_bits == status.security_bits &&
69 key_exchange_group == status.key_exchange_group && 69 key_exchange_group == status.key_exchange_group &&
70 connection_status == status.connection_status && 70 connection_status == status.connection_status &&
71 content_status == status.content_status && 71 content_status == status.content_status &&
72 sct_statuses == status.sct_statuses && 72 sct_statuses == status.sct_statuses &&
73 pkp_bypassed == status.pkp_bypassed; 73 pkp_bypassed == status.pkp_bypassed;
74 } 74 }
75 75
76 bool initialized; 76 bool initialized;
77 // Note: this is only valid for committed entries. For other entries in the
78 // NavigationController (e.g. previous entries) we prune the certificate to
79 // save memory.
77 scoped_refptr<net::X509Certificate> certificate; 80 scoped_refptr<net::X509Certificate> certificate;
78 net::CertStatus cert_status; 81 net::CertStatus cert_status;
79 int security_bits; 82 int security_bits;
80 uint16_t key_exchange_group; 83 uint16_t key_exchange_group;
81 int connection_status; 84 int connection_status;
82 // A combination of the ContentStatusFlags above. 85 // A combination of the ContentStatusFlags above.
83 int content_status; 86 int content_status;
84 // The validation statuses of the Signed Certificate Timestamps (SCTs) 87 // The validation statuses of the Signed Certificate Timestamps (SCTs)
85 // of Certificate Transparency (CT) that were served with the 88 // of Certificate Transparency (CT) that were served with the
86 // main resource. 89 // main resource.
87 std::vector<net::ct::SCTVerifyStatus> sct_statuses; 90 std::vector<net::ct::SCTVerifyStatus> sct_statuses;
88 // True if PKP was bypassed due to a local trust anchor. 91 // True if PKP was bypassed due to a local trust anchor.
89 bool pkp_bypassed; 92 bool pkp_bypassed;
90 }; 93 };
91 94
92 } // namespace content 95 } // namespace content
93 96
94 #endif // CONTENT_PUBLIC_BROWSER_SSL_STATUS_H_ 97 #endif // CONTENT_PUBLIC_BROWSER_SSL_STATUS_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_controller_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698