Update WebCORSPreflightResultCacheItem to use TimeDelta

This CL updates WebCORSPreflightResultCache to use TimeDelta as the time
type instead of double. And, adds an injection point of TickClock to
WebCORSPreflightResultCacheItem to avoid overriding global time.

Change-Id: Ia8251c0a8ae2edfd107a8ddf22b421942c2683ad
Reviewed-on: https://chromium-review.googlesource.com/790181
Commit-Queue: Taiju Tsuiki <[email protected]>
Reviewed-by: Kinuko Yasuda <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Cr-Commit-Position: refs/heads/master@{#519600}
5 files changed