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

Unified Diff: Source/modules/indexeddb/IDBDatabase.cpp

Issue 235933013: Add the backchannel for Blobs to be received into Blink from the database backend. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rolled in feedback Created 6 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: Source/modules/indexeddb/IDBDatabase.cpp
diff --git a/Source/modules/indexeddb/IDBDatabase.cpp b/Source/modules/indexeddb/IDBDatabase.cpp
index 89304214bbb60745849b9e7111c576a7d9148c7d..63232ab91e1502ecdf609d94296294bde7581824 100644
--- a/Source/modules/indexeddb/IDBDatabase.cpp
+++ b/Source/modules/indexeddb/IDBDatabase.cpp
@@ -99,6 +99,19 @@ int64_t IDBDatabase::nextTransactionId()
return atomicIncrement(&currentTransactionId);
}
+void IDBDatabase::ackReceivedBlobs(const Vector<blink::WebBlobInfo>* blobInfo)
+{
+ ASSERT(blobInfo);
+ if (!blobInfo->size() || !m_backend)
+ return;
+ Vector<blink::WebBlobInfo>::const_iterator iter;
+ Vector<String> uuids;
+ uuids.reserveCapacity(blobInfo->size());
+ for (iter = blobInfo->begin(); iter != blobInfo->end(); ++iter)
+ uuids.append(iter->uuid());
+ m_backend->ackReceivedBlobs(uuids);
+}
+
void IDBDatabase::indexCreated(int64_t objectStoreId, const IDBIndexMetadata& metadata)
{
IDBDatabaseMetadata::ObjectStoreMap::iterator it = m_metadata.objectStores.find(objectStoreId);

Powered by Google App Engine
This is Rietveld 408576698