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

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

Issue 229483003: WebBlobInfo plumbing for WebIDBDatabaseImpl::put. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rolled in Josh's 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
« no previous file with comments | « content/child/indexed_db/webidbdatabase_impl.h ('k') | no next file » | 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 459a6fd08be7028f2125ca5e46bf6f04b860f1ec..ee83e187a5b98772a5fe4859fb9658ea723df6c9 100644
--- a/content/child/indexed_db/webidbdatabase_impl.cc
+++ b/content/child/indexed_db/webidbdatabase_impl.cc
@@ -11,11 +11,13 @@
#include "content/child/thread_safe_sender.h"
#include "content/child/worker_task_runner.h"
#include "content/common/indexed_db/indexed_db_messages.h"
+#include "third_party/WebKit/public/platform/WebBlobInfo.h"
#include "third_party/WebKit/public/platform/WebIDBKeyPath.h"
#include "third_party/WebKit/public/platform/WebIDBMetadata.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/platform/WebVector.h"
+using blink::WebBlobInfo;
using blink::WebIDBCallbacks;
using blink::WebIDBCursor;
using blink::WebIDBDatabase;
@@ -106,6 +108,8 @@ void WebIDBDatabaseImpl::get(long long transaction_id,
callbacks);
}
+// TODO(ericu): Remove this once it's obsolete. It's only here for the
+// three-sided-patch dance.
void WebIDBDatabaseImpl::put(long long transaction_id,
long long object_store_id,
const blink::WebData& value,
@@ -116,10 +120,35 @@ void WebIDBDatabaseImpl::put(long long transaction_id,
const WebVector<WebIndexKeys>& web_index_keys) {
IndexedDBDispatcher* dispatcher =
IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_.get());
+ const blink::WebVector<WebBlobInfo> web_blob_info;
dispatcher->RequestIDBDatabasePut(ipc_database_id_,
transaction_id,
object_store_id,
value,
+ web_blob_info,
+ IndexedDBKeyBuilder::Build(key),
+ put_mode,
+ callbacks,
+ web_index_ids,
+ web_index_keys);
+}
+
+void WebIDBDatabaseImpl::put(long long transaction_id,
+ long long object_store_id,
+ const blink::WebData& value,
+ const blink::WebVector<WebBlobInfo>& web_blob_info,
+ const WebIDBKey& key,
+ PutMode put_mode,
+ WebIDBCallbacks* callbacks,
+ const WebVector<long long>& web_index_ids,
+ const WebVector<WebIndexKeys>& web_index_keys) {
+ IndexedDBDispatcher* dispatcher =
+ IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_.get());
+ dispatcher->RequestIDBDatabasePut(ipc_database_id_,
+ transaction_id,
+ object_store_id,
+ value,
+ web_blob_info,
IndexedDBKeyBuilder::Build(key),
put_mode,
callbacks,
« no previous file with comments | « content/child/indexed_db/webidbdatabase_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698