HttpCache::GetBackend and disk_cache::CreateCacheBackend are hard to use. |
|
Issue descriptionBoth of are the net-style maybe-sync/maybe-async methods that require the caller to carefully manage the storage where the pointer gets written to. It may be worthwhile to change their signatures; to perhaps take something like a OnceCallback<int, Backend*> and a OnceCallback<int, std::unique_ptr<Backend>>. They could either guarantee to always be async, or clearly document that a re-entrant sync return can happen. |
|
►
Sign in to add a comment |
|