Chromium Code Reviews| 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 |