Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Unified Diff: content/browser/blob_storage/blob_dispatcher_host.cc

Issue 2828953002: [IndexedDB] Hold referenced to IDB::put blobs in the IDBRequest (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/blob_storage/blob_dispatcher_host.cc
diff --git a/content/browser/blob_storage/blob_dispatcher_host.cc b/content/browser/blob_storage/blob_dispatcher_host.cc
index bea813ddc5c4f7abdfc20eccc633918fb790b792..e21cf8b48b91071550f18e76db7cba7b1f0c4a45 100644
--- a/content/browser/blob_storage/blob_dispatcher_host.cc
+++ b/content/browser/blob_storage/blob_dispatcher_host.cc
@@ -70,6 +70,11 @@ BlobDispatcherHost::~BlobDispatcherHost() {
ClearHostFromBlobStorageContext();
}
+void BlobDispatcherHost::AckBlobRecievedFromIDB(const std::string& uuid) {
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
+ OnDecrementBlobRefCount(uuid);
+}
+
void BlobDispatcherHost::OnChannelClosing() {
ClearHostFromBlobStorageContext();
public_blob_urls_.clear();

Powered by Google App Engine
This is Rietveld 408576698