Change threading in ServiceWorkerCacheStorage
commit84222823a2e36095d327d6a43437e70ba25a195b
authorjkarlin@chromium.org <jkarlin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 13 Aug 2014 03:33:17 +0000 (13 03:33 +0000)
committerjkarlin@chromium.org <jkarlin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 13 Aug 2014 03:34:55 +0000 (13 03:34 +0000)
tree89c5ec8e2b69f3138649ddfe60092df0125fccc4
parent96f1b5deb40b82674786ea87c68188157ae8b44e
Change threading in ServiceWorkerCacheStorage

ServiceWorkerCacheStorage currently expects to have its public
functions run by a SequencedTaskRunner.

This CL changes the functions to run on the calling thread and only
uses the TaskRunner for blocking operations.  This way, when calling
the cache and blob storage, we're on the calling thread (IO).

Also added some comments along the way.

BUG=392621

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

Cr-Commit-Position: refs/heads/master@{#289186}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289186 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/service_worker/service_worker_cache.cc
content/browser/service_worker/service_worker_cache.h
content/browser/service_worker/service_worker_cache_storage.cc
content/browser/service_worker/service_worker_cache_storage.h
content/browser/service_worker/service_worker_cache_storage_manager.cc