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

Unified Diff: net/base/ssl_config_service.h

Issue 6019005: Use separate SSL session caches per profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | net/base/ssl_config_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/ssl_config_service.h
diff --git a/net/base/ssl_config_service.h b/net/base/ssl_config_service.h
index de2ebef7e904d49656cbec3b5dbb77510e858e8a..d8cf1aa5f081986a7c9961746e34f6a3920a72fb 100644
--- a/net/base/ssl_config_service.h
+++ b/net/base/ssl_config_service.h
@@ -15,6 +15,11 @@
namespace net {
+// TODO(davidben): Make this a more interesting ref-counted object if
+// we move to an SSL library which allows creating and deleting "ssl
+// session cache" objects or so.
+typedef int SSLSessionCacheId;
+
// A collection of SSL-related configuration settings.
struct SSLConfig {
// Default to revocation checking.
@@ -68,6 +73,10 @@ struct SSLConfig {
bool false_start_enabled; // True if we'll use TLS False Start.
+ // A uniquifier to be incorporated into the session cache entry; NSS
+ // provides only a global session cache.
+ SSLSessionCacheId session_cache_id;
+
// TODO(wtc): move the following members to a new SSLParams structure. They
// are not SSL configuration settings.
@@ -185,10 +194,12 @@ class SSLConfigService : public base::RefCountedThreadSafe<SSLConfigService> {
protected:
friend class base::RefCountedThreadSafe<SSLConfigService>;
+ SSLSessionCacheId session_cache_id_;
+
virtual ~SSLConfigService();
// SetFlags sets the values of several flags based on global configuration.
- static void SetSSLConfigFlags(SSLConfig* ssl_config);
+ void SetSSLConfigFlags(SSLConfig* ssl_config);
// Process before/after config update.
void ProcessConfigUpdate(const SSLConfig& orig_config,
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | net/base/ssl_config_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698