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

Unified Diff: content/browser/indexed_db/indexed_db_dispatcher_host.h

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/indexed_db/indexed_db_dispatcher_host.h
diff --git a/content/browser/indexed_db/indexed_db_dispatcher_host.h b/content/browser/indexed_db/indexed_db_dispatcher_host.h
index c64c71f5a9966d9f8271f203bf261d9c278b829d..bfcbca291bf137dbd3a5085e1d17a26c711ae6aa 100644
--- a/content/browser/indexed_db/indexed_db_dispatcher_host.h
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host.h
@@ -33,6 +33,7 @@ class Origin;
}
namespace content {
+class BlobDispatcherHost;
class IndexedDBBlobInfo;
class IndexedDBContextImpl;
@@ -66,6 +67,11 @@ class CONTENT_EXPORT IndexedDBDispatcherHost
}
int ipc_process_id() const { return ipc_process_id_; }
+ void SetBlobDispatcherHost(scoped_refptr<BlobDispatcherHost> host);
+
+ // Decrements the refcount for the given blob for this renderer.
+ void AckBlobRecievedFromIDB(const std::string& uuid);
+
std::string HoldBlobData(const IndexedDBBlobInfo& blob_info);
void DropBlobData(const std::string& uuid);
@@ -109,6 +115,8 @@ class CONTENT_EXPORT IndexedDBDispatcherHost
scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
+ // TODO(dmurph): Remove once blobs are mojo'd.
pwnall 2017/04/21 01:39:22 Would it be worth pointing to this CL in the TODO?
+ scoped_refptr<BlobDispatcherHost> blob_dispatcher_host_;
scoped_refptr<base::SequencedTaskRunner> idb_runner_;
// Maps blob uuid to a pair (handle, ref count). Entry is added and/or count

Powered by Google App Engine
This is Rietveld 408576698