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

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

Issue 12129002: Remove deprecated IPC code for onUpgradeNeeded/onSuccess/metadata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 d3d74ed7693540b2f9803fe89363308a68d362c2..4f7fe94f38e506c3441c08c717342e8cfa9f0d1d 100644
--- a/content/browser/in_process_webkit/indexed_db_callbacks.cc
+++ b/content/browser/in_process_webkit/indexed_db_callbacks.cc
@@ -49,22 +49,6 @@ IndexedDBCallbacksDatabase::IndexedDBCallbacksDatabase(
}
void IndexedDBCallbacksDatabase::onSuccess(
- WebKit::WebIDBDatabase* idb_object) {
- int32 ipc_object_id = ipc_database_id_;
- if (ipc_object_id == kDatabaseNotAdded) {
- ipc_object_id = dispatcher_host()->Add(idb_object, ipc_thread_id(),
- origin_url_);
- } else {
- // We already have this database and don't need a new copy of it.
- delete idb_object;
- }
- dispatcher_host()->Send(
- new IndexedDBMsg_CallbacksSuccessIDBDatabaseOld(ipc_thread_id(),
- ipc_response_id(),
- ipc_object_id));
-}
-
-void IndexedDBCallbacksDatabase::onSuccess(
WebKit::WebIDBDatabase* idb_object,
const WebKit::WebIDBMetadata& metadata) {
int32 ipc_object_id = ipc_database_id_;
@@ -87,21 +71,6 @@ void IndexedDBCallbacksDatabase::onSuccess(
void IndexedDBCallbacksDatabase::onUpgradeNeeded(
long long old_version,
- WebKit::WebIDBTransaction*,
- WebKit::WebIDBDatabase* database) {
- dispatcher_host()->RegisterTransactionId(host_transaction_id_, origin_url_);
- int32 ipc_database_id = dispatcher_host()->Add(database, ipc_thread_id(),
- origin_url_);
- ipc_database_id_ = ipc_database_id;
- dispatcher_host()->Send(
- new IndexedDBMsg_CallbacksUpgradeNeededOld(
- ipc_thread_id(), ipc_response_id(),
- ipc_database_id,
- old_version));
-}
-
-void IndexedDBCallbacksDatabase::onUpgradeNeeded(
- long long old_version,
WebKit::WebIDBDatabase* database,
const WebKit::WebIDBMetadata& metadata) {
dispatcher_host()->RegisterTransactionId(host_transaction_id_, origin_url_);

Powered by Google App Engine
This is Rietveld 408576698