diff options
author | jiayl@chromium.org <jiayl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-08 22:03:53 +0000 |
---|---|---|
committer | jiayl@chromium.org <jiayl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-08 22:03:53 +0000 |
commit | ec346e097fdc2b32dbf7305179182f43393b5be1 (patch) | |
tree | 7464385f6bbc638b3b6b6b1a59385db0b270e6c6 /content/browser/storage_partition_impl_unittest.cc | |
parent | f06dc19bf8afa46c8a74d94ab2c35cb4118de883 (diff) | |
download | chromium_src-ec346e097fdc2b32dbf7305179182f43393b5be1.zip chromium_src-ec346e097fdc2b32dbf7305179182f43393b5be1.tar.gz chromium_src-ec346e097fdc2b32dbf7305179182f43393b5be1.tar.bz2 |
Adds a SqlLite backend to WebRTCIdentityStore.
WebRTCIdentityStore maintains a list of inflight requests. If a new request is identical (i.e. same origin, identity_name, common_name) to a inflight request, the new one is joined into the existing one, so that it will not make duplicated requests to the backend or generate dupicated identities.
If the backend does not find an existing identity, WebRTCIdentityStore generates a new one and adds it to the backend.
The backend borrows most of the design from SQLiteServerBoundCertStore::Backend. It loads the database into memory on the first find request. Add or delete database operations are batched to commit every 30 seconds or every 512 operations.
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216264
Review URL: https://chromiumcodereview.appspot.com/21453002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216448 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/storage_partition_impl_unittest.cc')
-rw-r--r-- | content/browser/storage_partition_impl_unittest.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/content/browser/storage_partition_impl_unittest.cc b/content/browser/storage_partition_impl_unittest.cc index 2207837..a8b47bc 100644 --- a/content/browser/storage_partition_impl_unittest.cc +++ b/content/browser/storage_partition_impl_unittest.cc @@ -109,14 +109,8 @@ TEST_F(StoragePartitionShaderClearTest, ClearShaderCache) { EXPECT_EQ(1u, Size()); TestClosureCallback clear_cb; - StoragePartitionImpl sp(cache_path(), - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - scoped_ptr<WebRTCIdentityStore>()); + StoragePartitionImpl sp( + cache_path(), NULL, NULL, NULL, NULL, NULL, NULL, NULL); base::MessageLoop::current()->PostTask( FROM_HERE, base::Bind(&ClearData, &sp, clear_cb.callback())); clear_cb.WaitForResult(); |