summaryrefslogtreecommitdiffstats
path: root/chromium/content/browser/cache_storage/legacy/legacy_cache_storage_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/cache_storage/legacy/legacy_cache_storage_cache.h')
-rw-r--r--chromium/content/browser/cache_storage/legacy/legacy_cache_storage_cache.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/content/browser/cache_storage/legacy/legacy_cache_storage_cache.h b/chromium/content/browser/cache_storage/legacy/legacy_cache_storage_cache.h
index 659ed7ce3e1..a2b541a5293 100644
--- a/chromium/content/browser/cache_storage/legacy/legacy_cache_storage_cache.h
+++ b/chromium/content/browser/cache_storage/legacy/legacy_cache_storage_cache.h
@@ -306,6 +306,13 @@ class CONTENT_EXPORT LegacyCacheStorageCache : public CacheStorageCache {
blink::mojom::CacheStorageError error,
std::unique_ptr<QueryCacheResults> query_cache_results);
+ // Utility method to write metadata headers to an entry.
+ using WriteMetadataCallback =
+ base::OnceCallback<void(int exepected_bytes, int rv)>;
+ void WriteMetadata(disk_cache::Entry* entry,
+ const proto::CacheMetadata& metadata,
+ WriteMetadataCallback callback);
+
// WriteSideData callbacks
void WriteSideDataDidGetQuota(ErrorCallback callback,
const GURL& url,