diff options
author | jiayl@chromium.org <jiayl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-01 21:21:46 +0000 |
---|---|---|
committer | jiayl@chromium.org <jiayl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-01 21:21:46 +0000 |
commit | d322066dba0d6bfb0e591b651c47f5e27efcb98a (patch) | |
tree | 39714d7f6a3539ef29b41d282b5705e75bb5b976 /content/browser/storage_partition_impl.h | |
parent | 142c27f34f9e70290ee032d92cec7bd2b78c4b90 (diff) | |
download | chromium_src-d322066dba0d6bfb0e591b651c47f5e27efcb98a.zip chromium_src-d322066dba0d6bfb0e591b651c47f5e27efcb98a.tar.gz chromium_src-d322066dba0d6bfb0e591b651c47f5e27efcb98a.tar.bz2 |
Generates the DTLS identity in browser process and returns it to the renderer process.
This is the first part of implementing a persistent identity store for WebRTC in Chrome. It implements the IPC messages to request and return the DTLS identity and the identity generation in browser process. A persistent store based on SQLite DB will be implemented later.
DTLSIdentityService: used in the renderer process to request a DTLS identity. It sends an IPC to the browser process and receives the reply containing the identity in a callback.
DTLSIdentityServiceHost: listens for the IPC message from DTLSIdentityService and passes the request to DTLSIdentityStore.
DTLSIdentityStore: created per RenerProcessHost. For now it always generates a new identity on a worker thread for each request, without any caching or persistent storage.
BUG=https://code.google.com/p/webrtc/issues/detail?id=1864
Review URL: https://chromiumcodereview.appspot.com/15969025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209499 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/storage_partition_impl.h')
-rw-r--r-- | content/browser/storage_partition_impl.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/content/browser/storage_partition_impl.h b/content/browser/storage_partition_impl.h index af206f5..9dcdfec 100644 --- a/content/browser/storage_partition_impl.h +++ b/content/browser/storage_partition_impl.h @@ -11,6 +11,7 @@ #include "content/browser/appcache/chrome_appcache_service.h" #include "content/browser/dom_storage/dom_storage_context_impl.h" #include "content/browser/indexed_db/indexed_db_context_impl.h" +#include "content/browser/media/webrtc_identity_store.h" #include "content/common/content_export.h" #include "content/public/browser/storage_partition.h" @@ -41,6 +42,8 @@ class StoragePartitionImpl : public StoragePartition { const base::Time& end, const base::Closure& callback) OVERRIDE; + WebRTCIdentityStore* GetWebRTCIdentityStore(); + private: friend class StoragePartitionImplMap; FRIEND_TEST_ALL_PREFIXES(StoragePartitionShaderClearTest, ClearShaderCache); @@ -62,7 +65,8 @@ class StoragePartitionImpl : public StoragePartition { 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); // Used by StoragePartitionImplMap. // @@ -89,6 +93,7 @@ class StoragePartitionImpl : public StoragePartition { scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; scoped_refptr<DOMStorageContextImpl> dom_storage_context_; scoped_refptr<IndexedDBContextImpl> indexed_db_context_; + scoped_ptr<WebRTCIdentityStore> webrtc_identity_store_; DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); }; |