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

Unified Diff: net/http/http_cache.h

Issue 356953003: Adding DiskBasedCertCache to HttpCache (+UMA). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@current
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: net/http/http_cache.h
diff --git a/net/http/http_cache.h b/net/http/http_cache.h
index 752b98a6715b0f9c66030d4a9e143fb90d9b522e..0d8a3f0dcd2d6ba2f29aef888f904a8fdaff217f 100644
--- a/net/http/http_cache.h
+++ b/net/http/http_cache.h
@@ -31,6 +31,7 @@
#include "net/base/load_states.h"
#include "net/base/net_export.h"
#include "net/base/request_priority.h"
+#include "net/http/disk_based_cert_cache.h"
Ryan Sleevi 2014/06/26 19:56:02 Don't include this header in the .h. You can forw
#include "net/http/http_network_session.h"
#include "net/http/http_transaction_factory.h"
@@ -201,6 +202,10 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
base::WeakPtr<HttpCache> GetWeakPtr() { return weak_factory_.GetWeakPtr(); }
+ DiskBasedCertCache* CertCache() {
Ryan Sleevi 2014/06/26 19:56:02 1) This should be const 2) You should place it wit
+ return cert_cache_.get();
+ }
+
// Resets the network layer to allow for tests that probe
// network changes (e.g. host unreachable). The old network layer is
// returned to allow for filter patterns that only intercept
@@ -405,6 +410,8 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
scoped_ptr<disk_cache::Backend> disk_cache_;
+ scoped_ptr<DiskBasedCertCache> cert_cache_;
+
// The set of active entries indexed by cache key.
ActiveEntriesMap active_entries_;

Powered by Google App Engine
This is Rietveld 408576698