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

Unified Diff: content/child/indexed_db/webidbdatabase_impl.cc

Issue 196473018: Add safe blob-over-IPC transfer from browser->renderer for IDB. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: style tweaks Created 6 years, 9 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
« no previous file with comments | « content/child/indexed_db/webidbdatabase_impl.h ('k') | content/common/indexed_db/indexed_db_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/indexed_db/webidbdatabase_impl.cc
diff --git a/content/child/indexed_db/webidbdatabase_impl.cc b/content/child/indexed_db/webidbdatabase_impl.cc
index 22e2aab898e7ef984e441f2321f2c3f4b3241f82..459a6fd08be7028f2125ca5e46bf6f04b860f1ec 100644
--- a/content/child/indexed_db/webidbdatabase_impl.cc
+++ b/content/child/indexed_db/webidbdatabase_impl.cc
@@ -261,4 +261,12 @@ void WebIDBDatabaseImpl::commit(long long transaction_id) {
new IndexedDBHostMsg_DatabaseCommit(ipc_database_id_, transaction_id));
}
+void WebIDBDatabaseImpl::ackReceivedBlobs(const WebVector<WebString>& uuids) {
+ DCHECK(uuids.size());
+ std::vector<std::string> param(uuids.size());
+ for (size_t i = 0; i < uuids.size(); ++i)
+ param[i] = uuids[i].latin1().data();
+ thread_safe_sender_->Send(new IndexedDBHostMsg_AckReceivedBlobs(param));
+}
+
} // namespace content
« no previous file with comments | « content/child/indexed_db/webidbdatabase_impl.h ('k') | content/common/indexed_db/indexed_db_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698