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

Unified Diff: content/browser/storage_partition_impl.cc

Issue 15969025: Generates the DTLS identity in browser process and returns it to render process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/storage_partition_impl.cc
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc
index e32fc72ff6d3e7c9d6f63d0698b8793c6dad9d51..8917e6da6311cce3f30166c76a72be426836db82 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -157,14 +157,16 @@ StoragePartitionImpl::StoragePartitionImpl(
fileapi::FileSystemContext* filesystem_context,
webkit_database::DatabaseTracker* database_tracker,
DOMStorageContextImpl* dom_storage_context,
- IndexedDBContextImpl* indexed_db_context)
+ IndexedDBContextImpl* indexed_db_context,
+ scoped_ptr<DTLSIdentityStore> dtls_identity_store)
: partition_path_(partition_path),
quota_manager_(quota_manager),
appcache_service_(appcache_service),
filesystem_context_(filesystem_context),
database_tracker_(database_tracker),
dom_storage_context_(dom_storage_context),
- indexed_db_context_(indexed_db_context) {
+ indexed_db_context_(indexed_db_context),
+ dtls_identity_store_(dtls_identity_store.Pass()) {
}
StoragePartitionImpl::~StoragePartitionImpl() {
@@ -234,13 +236,17 @@ StoragePartitionImpl* StoragePartitionImpl::Create(
scoped_refptr<ChromeAppCacheService> appcache_service =
new ChromeAppCacheService(quota_manager->proxy());
+ scoped_ptr<DTLSIdentityStore> dtls_identity_store;
+ dtls_identity_store.reset(new DTLSIdentityStore());
+
return new StoragePartitionImpl(partition_path,
quota_manager.get(),
appcache_service.get(),
filesystem_context.get(),
database_tracker.get(),
dom_storage_context.get(),
- indexed_db_context.get());
+ indexed_db_context.get(),
+ dtls_identity_store.Pass());
}
base::FilePath StoragePartitionImpl::GetPath() {
@@ -335,6 +341,10 @@ void StoragePartitionImpl::AsyncClearDataBetween(uint32 storage_mask,
}
}
+DTLSIdentityStore* StoragePartitionImpl::GetDTLSIdentityStore() {
+ return dtls_identity_store_.get();
+}
+
void StoragePartitionImpl::SetURLRequestContext(
net::URLRequestContextGetter* url_request_context) {
url_request_context_ = url_request_context;

Powered by Google App Engine
This is Rietveld 408576698