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

Unified Diff: chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h

Issue 3107029: Revert 56862 - Add transaction coordinator. Allow idle transactions to be abo... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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: chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h
===================================================================
--- chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h (revision 56862)
+++ chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h (working copy)
@@ -25,7 +25,6 @@
class WebIDBDatabase;
class WebIDBIndex;
class WebIDBObjectStore;
-class WebIDBTransaction;
}
// Handles all IndexedDB related messages from a particular renderer process.
@@ -61,7 +60,6 @@
int32 Add(WebKit::WebIDBDatabase* idb_database);
int32 Add(WebKit::WebIDBIndex* idb_index);
int32 Add(WebKit::WebIDBObjectStore* idb_object_store);
- void Add(WebKit::WebIDBTransaction* idb_transaction);
private:
friend class base::RefCountedThreadSafe<IndexedDBDispatcherHost>;
@@ -71,7 +69,6 @@
// 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>
@@ -106,9 +103,6 @@
IPC::Message* reply_msg);
void OnRemoveObjectStore(int32 idb_database_id, int32 response_id,
const string16& name);
- void OnTransaction(int32 idb_database_id,
- const std::vector<string16>& names,
- int32 mode, int32 timeout, IPC::Message* reply_msg);
void OnDestroyed(int32 idb_database_id);
IndexedDBDispatcherHost* parent_;
@@ -180,22 +174,6 @@
IndexedDBDispatcherHost* parent_;
IDMap<WebKit::WebIDBCursor, IDMapOwnPointer> map_;
};
-
- class TransactionDispatcherHost {
- public:
- explicit TransactionDispatcherHost(IndexedDBDispatcherHost* parent);
- ~TransactionDispatcherHost();
-
- bool OnMessageReceived(const IPC::Message& message, bool *msg_is_ok);
- void Send(IPC::Message* message);
-
- // TODO: add the rest of the transaction methods.
- void OnDestroyed(int32 idb_transaction_id);
-
- IndexedDBDispatcherHost* parent_;
- IDMap<WebKit::WebIDBTransaction, IDMapOwnPointer> map_;
- };
-
// Only use on the IO thread.
IPC::Message::Sender* sender_;
@@ -207,9 +185,7 @@
scoped_ptr<IndexDispatcherHost> index_dispatcher_host_;
scoped_ptr<ObjectStoreDispatcherHost> object_store_dispatcher_host_;
scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_;
- scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_;
-
// If we get a corrupt message from a renderer, we need to kill it using this
// handle.
base::ProcessHandle process_handle_;

Powered by Google App Engine
This is Rietveld 408576698