Add background-wide file metadata cache.
Several background classes needs file metadata to perform their tasks.
However, Metadata cache was only available to foreground classes. Also,
lifetime of foreground metadata cache is tied to windows, so we have to
maintain separate Least Recently Used cache in the background.
As having separate cache for several background classes is inefficient,
we are going to have global cache class that is shared among them.
This has huge performance impact on slow storage devices such as MTP
conencted ones.
TEST=manually tested.
BUG=
716309,
712121
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url:
https://codereview.chromium.org/2856533003
Cr-Commit-Position: refs/heads/master@{#476228}
Committed:
https://chromium.googlesource.com/chromium/src/+/e32d7951cd631cbeccd84b0ce874a41c9ee12faa