CacheStorage: Refactor handle ref-counting.
This CL factors out the reference counting handle code into a new
CacheStorageHandleType template. This is a first step towards
referencing counting handles for both CacheStorageCache and
CacheStorage objects.
This CL also has the added benefit of removing a std::map in favor
of storing the count directly on the target object itself.
Bug: 902488
Change-Id: I75c0d86f57c338d3da1db33da40a893c120a720e
Reviewed-on: https://chromium-review.googlesource.com/c/1331847
Commit-Queue: Ben Kelly <[email protected]>
Reviewed-by: Victor Costan <[email protected]>
Reviewed-by: Ken Buchanan <[email protected]>
Cr-Commit-Position: refs/heads/master@{#608670}
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
index 7f0b544..85029d4 100644
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -559,7 +559,6 @@
"cache_storage/cache_storage_blob_to_disk_cache.h",
"cache_storage/cache_storage_cache.cc",
"cache_storage/cache_storage_cache.h",
- "cache_storage/cache_storage_cache_handle.cc",
"cache_storage/cache_storage_cache_handle.h",
"cache_storage/cache_storage_cache_observer.h",
"cache_storage/cache_storage_context_impl.cc",
@@ -576,6 +575,7 @@
"cache_storage/cache_storage_operation.h",
"cache_storage/cache_storage_quota_client.cc",
"cache_storage/cache_storage_quota_client.h",
+ "cache_storage/cache_storage_ref.h",
"cache_storage/cache_storage_scheduler.cc",
"cache_storage/cache_storage_scheduler.h",
"cache_storage/cache_storage_scheduler_client.h",