Clears the expired identities from the WebRTC identity cache.
commitbd4cbd4cf4ddf58856d63b1c63dc61f57600b06b
authorjiayl@chromium.org <jiayl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 9 Oct 2013 18:25:27 +0000 (9 18:25 +0000)
committerjiayl@chromium.org <jiayl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 9 Oct 2013 18:25:27 +0000 (9 18:25 +0000)
tree3312352ed465713374745278cba04c41e063ad4d
parentc63780b727b98367f944cf78a723f1dd2f9dea5b
Clears the expired identities from the WebRTC identity cache.
We now check the creation time of an identity before returning for WebRTCIdentityStoreBackend::FindIdentity and remove the expired identity from the in-memory cache.
The expired identities are also removed from the on-disk database before it's loaded to the in-memory cache.
The identities have 30-day expiration time by default for now.

BUG=304398

Review URL: https://codereview.chromium.org/26082002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227772 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/media/webrtc_identity_store.cc
content/browser/media/webrtc_identity_store.h
content/browser/media/webrtc_identity_store_backend.cc
content/browser/media/webrtc_identity_store_backend.h
content/browser/media/webrtc_identity_store_unittest.cc