[Cache API] Add support for Cache.add/addAll
[WebKit-https.git] / Source / WebCore / Modules / cache / Cache.h
index 3ca082e8257b5e3d515f03bb154cb5f519810db2..efb34bbc1e9f0665ef814894082585d4dc1a3c7c 100644 (file)
@@ -62,6 +62,8 @@ public:
 private:
     Cache(ScriptExecutionContext&, String&& name, uint64_t identifier, Ref<CacheStorageConnection>&&);
 
+    ExceptionOr<Ref<FetchRequest>> requestFromInfo(RequestInfo&&, bool ignoreMethod);
+
     // ActiveDOMObject
     void stop() final;
     const char* activeDOMObjectName() const final;
@@ -72,6 +74,7 @@ private:
     void queryCache(Ref<FetchRequest>&&, CacheQueryOptions&&, WTF::Function<void(const Vector<CacheStorageRecord>&)>&&);
     void batchDeleteOperation(const FetchRequest&, CacheQueryOptions&&, WTF::Function<void(ExceptionOr<bool>&&)>&&);
     void batchPutOperation(const FetchRequest&, FetchResponse&, CacheStorageConnection::ResponseBody&&, WTF::Function<void(ExceptionOr<void>&&)>&&);
+    void batchPutOperation(Vector<CacheStorageConnection::Record>&&, WTF::Function<void(ExceptionOr<void>&&)>&&);
 
     void updateRecords(Vector<CacheStorageConnection::Record>&&);