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

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
« no previous file with comments | « content/browser/storage_partition_impl.h ('k') | content/browser/storage_partition_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/storage_partition_impl.cc
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc
index 8b3000ec06f098ee63b507deecb5107b8e522063..691a40fb05481d18e98252d275183d40b057d9ce 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -159,15 +159,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<WebRTCIdentityStore> webrtc_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),
+ webrtc_identity_store_(webrtc_identity_store.Pass()) {}
StoragePartitionImpl::~StoragePartitionImpl() {
// These message loop checks are just to avoid leaks in unittests.
@@ -243,13 +244,17 @@ StoragePartitionImpl* StoragePartitionImpl::Create(
scoped_refptr<ChromeAppCacheService> appcache_service =
new ChromeAppCacheService(quota_manager->proxy());
+ scoped_ptr<WebRTCIdentityStore> webrtc_identity_store(
+ new WebRTCIdentityStore());
+
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(),
+ webrtc_identity_store.Pass());
}
base::FilePath StoragePartitionImpl::GetPath() {
@@ -344,6 +349,10 @@ void StoragePartitionImpl::AsyncClearDataBetween(uint32 storage_mask,
}
}
+WebRTCIdentityStore* StoragePartitionImpl::GetWebRTCIdentityStore() {
+ return webrtc_identity_store_.get();
+}
+
void StoragePartitionImpl::SetURLRequestContext(
net::URLRequestContextGetter* url_request_context) {
url_request_context_ = url_request_context;
« no previous file with comments | « content/browser/storage_partition_impl.h ('k') | content/browser/storage_partition_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698