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

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

Issue 10657011: IndexedDB: Remove IPC plumbing for obsolete property accessors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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_dispatcher_host.cc
diff --git a/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc b/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
index 12d9d169991e61bc8d068e0e87d774f2e8f429f3..8c217e05649d4628144f6b46f624d609f9ef163d 100644
--- a/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
+++ b/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
@@ -327,10 +327,6 @@ bool IndexedDBDispatcherHost::DatabaseDispatcherHost::OnMessageReceived(
IPC_BEGIN_MESSAGE_MAP_EX(IndexedDBDispatcherHost::DatabaseDispatcherHost,
message, *msg_is_ok)
IPC_MESSAGE_HANDLER(IndexedDBHostMsg_DatabaseMetadata, OnMetadata)
- IPC_MESSAGE_HANDLER(IndexedDBHostMsg_DatabaseName, OnName)
- IPC_MESSAGE_HANDLER(IndexedDBHostMsg_DatabaseVersion, OnVersion)
- IPC_MESSAGE_HANDLER(IndexedDBHostMsg_DatabaseObjectStoreNames,
- OnObjectStoreNames)
IPC_MESSAGE_HANDLER(IndexedDBHostMsg_DatabaseCreateObjectStore,
OnCreateObjectStore)
IPC_MESSAGE_HANDLER(IndexedDBHostMsg_DatabaseDeleteObjectStore,
@@ -383,30 +379,6 @@ void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnMetadata(
}
}
-void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnName(
- int32 object_id, string16* name) {
- parent_->SyncGetter<string16>(&map_, object_id, name, &WebIDBDatabase::name);
-}
-
-void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnVersion(
- int32 object_id, string16* version) {
- parent_->SyncGetter<string16>(
- &map_, object_id, version, &WebIDBDatabase::version);
-}
-
-void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnObjectStoreNames(
- int32 idb_database_id, std::vector<string16>* object_stores) {
- WebIDBDatabase* idb_database = parent_->GetOrTerminateProcess(
- &map_, idb_database_id);
- if (!idb_database)
- return;
-
- WebDOMStringList web_object_stores = idb_database->objectStoreNames();
- object_stores->reserve(web_object_stores.length());
- for (unsigned i = 0; i < web_object_stores.length(); ++i)
- object_stores->push_back(web_object_stores.item(i));
-}
-
void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnCreateObjectStore(
const IndexedDBHostMsg_DatabaseCreateObjectStore_Params& params,
int32* object_store_id, WebKit::WebExceptionCode* ec) {
@@ -538,10 +510,6 @@ bool IndexedDBDispatcherHost::IndexDispatcherHost::OnMessageReceived(
bool handled = true;
IPC_BEGIN_MESSAGE_MAP_EX(IndexedDBDispatcherHost::IndexDispatcherHost,
message, *msg_is_ok)
- IPC_MESSAGE_HANDLER(IndexedDBHostMsg_IndexName, OnName)
- IPC_MESSAGE_HANDLER(IndexedDBHostMsg_IndexKeyPath, OnKeyPath)
- IPC_MESSAGE_HANDLER(IndexedDBHostMsg_IndexUnique, OnUnique)
- IPC_MESSAGE_HANDLER(IndexedDBHostMsg_IndexMultiEntry, OnMultiEntry)
IPC_MESSAGE_HANDLER(IndexedDBHostMsg_IndexOpenObjectCursor,
OnOpenObjectCursor)
IPC_MESSAGE_HANDLER(IndexedDBHostMsg_IndexOpenKeyCursor, OnOpenKeyCursor)
@@ -559,31 +527,6 @@ void IndexedDBDispatcherHost::IndexDispatcherHost::Send(
parent_->Send(message);
}
-void IndexedDBDispatcherHost::IndexDispatcherHost::OnName(
- int32 object_id, string16* name) {
- parent_->SyncGetter<string16>(&map_, object_id, name, &WebIDBIndex::name);
-}
-
-void IndexedDBDispatcherHost::IndexDispatcherHost::OnKeyPath(
- int32 object_id, IndexedDBKeyPath* key_path) {
- WebIDBIndex* idb_index = parent_->GetOrTerminateProcess(&map_, object_id);
- if (!idb_index)
- return;
-
- *key_path = IndexedDBKeyPath(idb_index->keyPath());
-}
-
-void IndexedDBDispatcherHost::IndexDispatcherHost::OnUnique(
- int32 object_id, bool* unique) {
- parent_->SyncGetter<bool>(&map_, object_id, unique, &WebIDBIndex::unique);
-}
-
-void IndexedDBDispatcherHost::IndexDispatcherHost::OnMultiEntry(
- int32 object_id, bool* multi_entry) {
- parent_->SyncGetter<bool>(
- &map_, object_id, multi_entry, &WebIDBIndex::multiEntry);
-}
-
void IndexedDBDispatcherHost::IndexDispatcherHost::OnOpenObjectCursor(
const IndexedDBHostMsg_IndexOpenCursor_Params& params,
WebKit::WebExceptionCode* ec) {
@@ -711,11 +654,6 @@ bool IndexedDBDispatcherHost::ObjectStoreDispatcherHost::OnMessageReceived(
bool handled = true;
IPC_BEGIN_MESSAGE_MAP_EX(IndexedDBDispatcherHost::ObjectStoreDispatcherHost,
message, *msg_is_ok)
- IPC_MESSAGE_HANDLER(IndexedDBHostMsg_ObjectStoreName, OnName)
- IPC_MESSAGE_HANDLER(IndexedDBHostMsg_ObjectStoreKeyPath, OnKeyPath)
- IPC_MESSAGE_HANDLER(IndexedDBHostMsg_ObjectStoreIndexNames, OnIndexNames)
- IPC_MESSAGE_HANDLER(IndexedDBHostMsg_ObjectStoreAutoIncrement,
- OnAutoIncrement)
IPC_MESSAGE_HANDLER(IndexedDBHostMsg_ObjectStoreGet, OnGet)
IPC_MESSAGE_HANDLER(IndexedDBHostMsg_ObjectStorePut, OnPut)
IPC_MESSAGE_HANDLER(IndexedDBHostMsg_ObjectStoreDelete, OnDelete)
@@ -736,41 +674,6 @@ void IndexedDBDispatcherHost::ObjectStoreDispatcherHost::Send(
parent_->Send(message);
}
-void IndexedDBDispatcherHost::ObjectStoreDispatcherHost::OnName(
- int32 object_id, string16* name) {
- parent_->SyncGetter<string16>(
- &map_, object_id, name, &WebIDBObjectStore::name);
-}
-
-void IndexedDBDispatcherHost::ObjectStoreDispatcherHost::OnKeyPath(
- int32 object_id, IndexedDBKeyPath* key_path) {
- WebIDBObjectStore* idb_object_store = parent_->GetOrTerminateProcess(
- &map_,object_id);
- if (!idb_object_store)
- return;
-
- *key_path = IndexedDBKeyPath(idb_object_store->keyPath());
-}
-
-void IndexedDBDispatcherHost::ObjectStoreDispatcherHost::OnIndexNames(
- int32 idb_object_store_id, std::vector<string16>* index_names) {
- WebIDBObjectStore* idb_object_store = parent_->GetOrTerminateProcess(
- &map_, idb_object_store_id);
- if (!idb_object_store)
- return;
-
- WebDOMStringList web_index_names = idb_object_store->indexNames();
- index_names->reserve(web_index_names.length());
- for (unsigned i = 0; i < web_index_names.length(); ++i)
- index_names->push_back(web_index_names.item(i));
-}
-
-void IndexedDBDispatcherHost::ObjectStoreDispatcherHost::OnAutoIncrement(
- int32 idb_object_store_id, bool* auto_increment) {
- parent_->SyncGetter<bool>(&map_, idb_object_store_id, auto_increment,
- &WebIDBObjectStore::autoIncrement);
-}
-
void IndexedDBDispatcherHost::ObjectStoreDispatcherHost::OnGet(
int idb_object_store_id,
int32 thread_id,
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_dispatcher_host.h ('k') | content/common/indexed_db/indexed_db_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698