Commit 15430739 authored by nhiroki@chromium.org's avatar nhiroki@chromium.org

CacheStorage: Enable Cache::putImpl to receive multiple requests/responses

This CL enables Cache::putImpl to receive multiple requests and responses for
supporting addAll() in a subsequent CL. This should not change behavior of put()
and add().

BUG=427652

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

git-svn-id: svn://svn.chromium.org/blink/trunk@197958 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 777e6e7b
......@@ -49,8 +49,9 @@ public:
DEFINE_INLINE_TRACE() { }
private:
class BarrierCallbackForPut;
class BlobHandleCallbackForPut;
class FetchResolvedForAdd;
class AsyncPutBatch;
friend class FetchResolvedForAdd;
Cache(WeakPtr<GlobalFetch::ScopedFetcher>, WebServiceWorkerCache*);
......@@ -58,7 +59,7 @@ private:
ScriptPromise matchAllImpl(ScriptState*, const Request*, const CacheQueryOptions&);
ScriptPromise addAllImpl(ScriptState*, const Vector<Request*>&, ExceptionState&);
ScriptPromise deleteImpl(ScriptState*, const Request*, const CacheQueryOptions&);
ScriptPromise putImpl(ScriptState*, Request*, Response*);
ScriptPromise putImpl(ScriptState*, const HeapVector<Member<Request>>&, const HeapVector<Member<Response>>&);
ScriptPromise keysImpl(ScriptState*);
ScriptPromise keysImpl(ScriptState*, const Request*, const CacheQueryOptions&);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment