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

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

Issue 10829013: Chrome side changes for integer versions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add #include that windows needs Created 8 years, 5 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 6a43a10f4229cc0361dcadde35d064a487605c75..6105331c31c3675bf0e446f2990ef36a9b2bf850 100644
--- a/content/browser/in_process_webkit/indexed_db_callbacks.cc
+++ b/content/browser/in_process_webkit/indexed_db_callbacks.cc
@@ -27,11 +27,32 @@ void IndexedDBCallbacksBase::onError(const WebKit::WebIDBDatabaseError& error) {
thread_id_, response_id_, error.code(), error.message()));
}
+void IndexedDBCallbacksBase::onBlocked(long long old_version) {
+ dispatcher_host_->Send(new IndexedDBMsg_CallbacksIntBlocked(
+ thread_id_, response_id_, old_version));
+}
+
void IndexedDBCallbacksBase::onBlocked() {
dispatcher_host_->Send(new IndexedDBMsg_CallbacksBlocked(thread_id_,
response_id_));
}
+template<>
+void IndexedDBCallbacks<WebKit::WebIDBDatabase>::onUpgradeNeeded(
+ long long old_version,
+ WebKit::WebIDBTransaction* transaction,
+ WebKit::WebIDBDatabase* database) {
+ int32 transaction_id = dispatcher_host()->Add(transaction, thread_id(),
+ origin_url_);
+ int32 database_id = dispatcher_host()->Add(database, thread_id(),
+ origin_url_);
+ database_id_ = database_id;
+ dispatcher_host()->Send(
+ new IndexedDBMsg_CallbacksUpgradeNeeded(
+ thread_id(), response_id(), transaction_id, database_id,
+ old_version));
+}
+
void IndexedDBCallbacks<WebKit::WebIDBCursor>::onSuccess(
WebKit::WebIDBCursor* idb_object) {
int32 object_id = dispatcher_host()->Add(idb_object);

Powered by Google App Engine
This is Rietveld 408576698