CacheStorage: Make CacheStorageContext API usable from UI thread.

In order to support moving CacheStorage off the IO thread and on to
a separate SequencedTaskRunner, we are encapsulating the threading
requirements.  This CL does this by removing the requirement that
external clients of CacheStorageContext must be on the IO thread.
Instead the API can be accessed directly on the UI thread and
CacheStorageContextImpl will handle executing the code on the correct

Bug: 960012
Change-Id: I7d576a7deb484113cff0e9454b038f7b87c5e503
Reviewed-by: Daniel Murphy <>
Reviewed-by: Kinuko Yasuda <>
Reviewed-by: Christian Dullweber <>
Commit-Queue: Kinuko Yasuda <>
Cr-Commit-Position: refs/heads/master@{#662961}
4 files changed