summaryrefslogtreecommitdiffstats
path: root/chrome/browser/in_process_webkit
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-24 12:16:17 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-24 12:16:17 +0000
commit507902277eebc76641b21243039865f61fd7f13a (patch)
treed855b8cff498f9998e118e6f76668ddb794257c9 /chrome/browser/in_process_webkit
parentef811fd19fc58d4ebf90904eec8ac5e4251c3e22 (diff)
downloadchromium_src-507902277eebc76641b21243039865f61fd7f13a.zip
chromium_src-507902277eebc76641b21243039865f61fd7f13a.tar.gz
chromium_src-507902277eebc76641b21243039865f61fd7f13a.tar.bz2
Revert 60457 - Adds IDBFactory::didCompleteEventsForTransaction plumbing
(depends on https://bugs.webkit.org/show_bug.cgi?id=44700) TEST=IndexedDBBrowserTest.TransactionGetTest This takes over http://codereview.chromium.org/3310022/show Review URL: http://codereview.chromium.org/3394007 TBR=andreip@chromium.org Review URL: http://codereview.chromium.org/3405031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60459 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/in_process_webkit')
-rw-r--r--chrome/browser/in_process_webkit/indexed_db_browsertest.cc4
-rw-r--r--chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc28
-rw-r--r--chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h2
3 files changed, 12 insertions, 22 deletions
diff --git a/chrome/browser/in_process_webkit/indexed_db_browsertest.cc b/chrome/browser/in_process_webkit/indexed_db_browsertest.cc
index 1692628..451cf09 100644
--- a/chrome/browser/in_process_webkit/indexed_db_browsertest.cc
+++ b/chrome/browser/in_process_webkit/indexed_db_browsertest.cc
@@ -112,7 +112,3 @@ IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, SplitFilename) {
test_on_webkit_thread->security_origin().toString().utf8();
EXPECT_EQ("http://host:1", origin_str);
}
-
-IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, TransactionGetTest) {
- SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("transaction_get_test.html"))));
-}
diff --git a/chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc b/chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc
index 626416c..595a8cb 100644
--- a/chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc
+++ b/chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc
@@ -111,6 +111,7 @@ bool IndexedDBDispatcherHost::OnMessageReceived(const IPC::Message& message) {
case ViewHostMsg_IDBCursorRemove::ID:
case ViewHostMsg_IDBCursorDestroyed::ID:
case ViewHostMsg_IDBFactoryOpen::ID:
+ case ViewHostMsg_IDBFactoryAbortPendingTransactions::ID:
case ViewHostMsg_IDBDatabaseName::ID:
case ViewHostMsg_IDBDatabaseDescription::ID:
case ViewHostMsg_IDBDatabaseVersion::ID:
@@ -143,7 +144,6 @@ bool IndexedDBDispatcherHost::OnMessageReceived(const IPC::Message& message) {
case ViewHostMsg_IDBObjectStoreDestroyed::ID:
case ViewHostMsg_IDBTransactionAbort::ID:
case ViewHostMsg_IDBTransactionDestroyed::ID:
- case ViewHostMsg_IDBTransactionDidCompleteTaskEvents::ID:
case ViewHostMsg_IDBTransactionObjectStore::ID:
break;
default:
@@ -198,6 +198,8 @@ void IndexedDBDispatcherHost::OnMessageReceivedWebKit(
IPC_BEGIN_MESSAGE_MAP_EX(IndexedDBDispatcherHost, message, msg_is_ok)
IPC_MESSAGE_HANDLER(ViewHostMsg_IDBFactoryOpen,
OnIDBFactoryOpen)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_IDBFactoryAbortPendingTransactions,
+ OnIDBFactoryAbortPendingTransactions)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
}
@@ -271,6 +273,12 @@ void IndexedDBDispatcherHost::OnIDBFactoryOpen(
webkit_glue::FilePathToWebString(indexed_db_path));
}
+// TODO(andreip): remove this method entirely once WK rolls to r68143.
+void IndexedDBDispatcherHost::OnIDBFactoryAbortPendingTransactions(
+ const std::vector<int32>& ids) {
+ DCHECK(ChromeThread::CurrentlyOn(ChromeThread::WEBKIT));
+}
+
//////////////////////////////////////////////////////////////////////
// Helper templates.
//
@@ -966,8 +974,6 @@ bool IndexedDBDispatcherHost::TransactionDispatcherHost::OnMessageReceived(
IPC_MESSAGE_HANDLER(ViewHostMsg_IDBTransactionAbort, OnAbort)
IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_IDBTransactionObjectStore,
OnObjectStore)
- IPC_MESSAGE_HANDLER(ViewHostMsg_IDBTransactionDidCompleteTaskEvents,
- OnDidCompleteTaskEvents)
IPC_MESSAGE_HANDLER(ViewHostMsg_IDBTransactionDestroyed, OnDestroyed)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -996,29 +1002,17 @@ void IndexedDBDispatcherHost::TransactionDispatcherHost::OnObjectStore(
int32 transaction_id, const string16& name, IPC::Message* reply_msg) {
WebIDBTransaction* idb_transaction = parent_->GetOrTerminateProcess(
&map_, transaction_id, reply_msg,
- ViewHostMsg_IDBTransactionObjectStore::ID);
+ ViewHostMsg_IDBDatabaseObjectStore::ID);
if (!idb_transaction)
return;
WebIDBObjectStore* object_store = idb_transaction->objectStore(name);
int32 object_id = object_store ? parent_->Add(object_store) : 0;
ViewHostMsg_IDBTransactionObjectStore::WriteReplyParams(
- reply_msg, object_id);
+ reply_msg, object_id);
parent_->Send(reply_msg);
}
-void IndexedDBDispatcherHost::
- TransactionDispatcherHost::OnDidCompleteTaskEvents(int transaction_id) {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::WEBKIT));
- WebIDBTransaction* idb_transaction = parent_->GetOrTerminateProcess(
- &map_, transaction_id, 0,
- ViewHostMsg_IDBTransactionDidCompleteTaskEvents::ID);
- if (!idb_transaction)
- return;
-
- idb_transaction->didCompleteTaskEvents();
-}
-
void IndexedDBDispatcherHost::TransactionDispatcherHost::OnDestroyed(
int32 object_id) {
parent_->DestroyObject(
diff --git a/chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h b/chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h
index f048cbe..982c861 100644
--- a/chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h
+++ b/chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h
@@ -74,6 +74,7 @@ class IndexedDBDispatcherHost
// below.
void OnMessageReceivedWebKit(const IPC::Message& message);
void OnIDBFactoryOpen(const ViewHostMsg_IDBFactoryOpen_Params& p);
+ void OnIDBFactoryAbortPendingTransactions(const std::vector<int32>& ids);
// Helper templates.
template <class ReturnType>
@@ -220,7 +221,6 @@ class IndexedDBDispatcherHost
void OnAbort(int32 transaction_id);
void OnObjectStore(int32 transaction_id, const string16& name,
IPC::Message* reply_msg);
- void OnDidCompleteTaskEvents(int transaction_id);
void OnDestroyed(int32 idb_transaction_id);
IndexedDBDispatcherHost* parent_;