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

Unified Diff: content/browser/in_process_webkit/indexed_db_callbacks.cc

Issue 17033004: Tell IDB frontend about data loss (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove debug Created 7 years, 6 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/browser/in_process_webkit/indexed_db_callbacks.cc
diff --git a/content/browser/in_process_webkit/indexed_db_callbacks.cc b/content/browser/in_process_webkit/indexed_db_callbacks.cc
index 32f07089307f3ffbe92fefdd11826f329e9f8c14..7ee576bf532c7cb98c0ecc5471b7245347226abe 100644
--- a/content/browser/in_process_webkit/indexed_db_callbacks.cc
+++ b/content/browser/in_process_webkit/indexed_db_callbacks.cc
@@ -53,7 +53,8 @@ void IndexedDBCallbacksBase::onSuccess(
void IndexedDBCallbacksBase::onUpgradeNeeded(long long old_version,
WebIDBDatabaseImpl* database,
- const IndexedDBDatabaseMetadata&) {
+ const IndexedDBDatabaseMetadata&,
+ bool data_loss) {
NOTREACHED();
}
@@ -133,7 +134,8 @@ void IndexedDBCallbacksDatabase::onSuccess(
void IndexedDBCallbacksDatabase::onUpgradeNeeded(
long long old_version,
WebIDBDatabaseImpl* database,
- const IndexedDBDatabaseMetadata& metadata) {
+ const IndexedDBDatabaseMetadata& metadata,
+ bool data_loss) {
dispatcher_host()->RegisterTransactionId(host_transaction_id_, origin_url_);
int32 ipc_database_id =
dispatcher_host()->Add(database, ipc_thread_id(), origin_url_);
@@ -145,6 +147,7 @@ void IndexedDBCallbacksDatabase::onUpgradeNeeded(
params.ipc_database_callbacks_id = ipc_database_callbacks_id_;
params.old_version = old_version;
params.idb_metadata = IndexedDBDispatcherHost::ConvertMetadata(metadata);
+ params.data_loss = data_loss;
dispatcher_host()->Send(new IndexedDBMsg_CallbacksUpgradeNeeded(params));
}

Powered by Google App Engine
This is Rietveld 408576698