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

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..130c7a23470d565c262e21bc5fa57d4dacc1503f 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -157,15 +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<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.
@@ -234,13 +235,17 @@ StoragePartitionImpl* StoragePartitionImpl::Create(
scoped_refptr<ChromeAppCacheService> appcache_service =
new ChromeAppCacheService(quota_manager->proxy());
+ scoped_ptr<WebRTCIdentityStore> webrtc_identity_store;
+ webrtc_identity_store.reset(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() {
@@ -335,6 +340,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;

Powered by Google App Engine
This is Rietveld 408576698