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..fe47d5afff0aeec656b97577cbc39b5323e88417 100644 |
--- a/content/browser/in_process_webkit/indexed_db_callbacks.cc |
+++ b/content/browser/in_process_webkit/indexed_db_callbacks.cc |
@@ -13,6 +13,7 @@ |
#include "webkit/browser/quota/quota_manager.h" |
using WebKit::WebData; |
+using WebKit::WebIDBCallbacks; |
using WebKit::WebString; |
namespace content { |
@@ -51,9 +52,11 @@ void IndexedDBCallbacksBase::onSuccess( |
NOTREACHED(); |
} |
-void IndexedDBCallbacksBase::onUpgradeNeeded(long long old_version, |
- WebIDBDatabaseImpl* database, |
- const IndexedDBDatabaseMetadata&) { |
+void IndexedDBCallbacksBase::onUpgradeNeeded( |
+ long long old_version, |
+ WebIDBDatabaseImpl* database, |
+ const IndexedDBDatabaseMetadata&, |
jsbell
2013/06/17 23:21:48
Not new in this patch, but name the argument: /*me
dgrogan
2013/06/17 23:52:40
Done.
|
+ WebKit::WebIDBCallbacks::DataLoss data_loss) { |
NOTREACHED(); |
} |
@@ -133,7 +136,8 @@ void IndexedDBCallbacksDatabase::onSuccess( |
void IndexedDBCallbacksDatabase::onUpgradeNeeded( |
long long old_version, |
WebIDBDatabaseImpl* database, |
- const IndexedDBDatabaseMetadata& metadata) { |
+ const IndexedDBDatabaseMetadata& metadata, |
+ WebIDBCallbacks::DataLoss 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 +149,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)); |
} |