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

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

Issue 2276593002: Support renaming of IndexedDB indexes and object stores. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test coverage for the (slightly incorrect) behavior in strict mode when our flag is not enabl… Created 4 years, 3 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/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 2a4f8486bc5593027d2a6a6b5e551c71c96996e5..c2d4ee5cadc725afbf7b2a2f642040d6d0233b21 100644
--- a/content/child/indexed_db/webidbdatabase_impl.cc
+++ b/content/child/indexed_db/webidbdatabase_impl.cc
@@ -78,6 +78,13 @@ void WebIDBDatabaseImpl::deleteObjectStore(long long transaction_id,
ipc_database_id_, transaction_id, object_store_id));
}
+void WebIDBDatabaseImpl::renameObjectStore(long long transaction_id,
+ long long object_store_id,
+ const blink::WebString& new_name) {
+ thread_safe_sender_->Send(new IndexedDBHostMsg_DatabaseRenameObjectStore(
+ ipc_database_id_, transaction_id, object_store_id, new_name));
+}
+
void WebIDBDatabaseImpl::createTransaction(
long long transaction_id,
WebIDBDatabaseCallbacks* callbacks,
@@ -308,6 +315,14 @@ void WebIDBDatabaseImpl::deleteIndex(long long transaction_id,
ipc_database_id_, transaction_id, object_store_id, index_id));
}
+void WebIDBDatabaseImpl::renameIndex(long long transaction_id,
+ long long object_store_id,
+ long long index_id,
+ const WebString& new_name) {
+ thread_safe_sender_->Send(new IndexedDBHostMsg_DatabaseRenameIndex(
+ ipc_database_id_, transaction_id, object_store_id, index_id, new_name));
+}
+
void WebIDBDatabaseImpl::abort(long long transaction_id) {
thread_safe_sender_->Send(
new IndexedDBHostMsg_DatabaseAbort(ipc_database_id_, transaction_id));

Powered by Google App Engine
This is Rietveld 408576698