summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_webidbdatabase_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/renderer_webidbdatabase_impl.cc')
-rw-r--r--chrome/renderer/renderer_webidbdatabase_impl.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/chrome/renderer/renderer_webidbdatabase_impl.cc b/chrome/renderer/renderer_webidbdatabase_impl.cc
index f2a0bf5..d65e8a18 100644
--- a/chrome/renderer/renderer_webidbdatabase_impl.cc
+++ b/chrome/renderer/renderer_webidbdatabase_impl.cc
@@ -4,13 +4,13 @@
#include "chrome/renderer/renderer_webidbdatabase_impl.h"
-#include "chrome/common/render_messages.h"
-#include "chrome/common/render_messages_params.h"
+#include "chrome/common/indexed_db_messages.h"
#include "chrome/renderer/render_thread.h"
#include "chrome/renderer/indexed_db_dispatcher.h"
#include "chrome/renderer/renderer_webidbobjectstore_impl.h"
#include "chrome/renderer/renderer_webidbtransaction_impl.h"
#include "third_party/WebKit/WebKit/chromium/public/WebString.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebVector.h"
using WebKit::WebDOMStringList;
using WebKit::WebExceptionCode;
@@ -27,28 +27,28 @@ RendererWebIDBDatabaseImpl::RendererWebIDBDatabaseImpl(int32 idb_database_id)
RendererWebIDBDatabaseImpl::~RendererWebIDBDatabaseImpl() {
// TODO(jorlow): Is it possible for this to be destroyed but still have
// pending callbacks? If so, fix!
- RenderThread::current()->Send(new ViewHostMsg_IDBDatabaseDestroyed(
+ RenderThread::current()->Send(new IndexedDBHostMsg_DatabaseDestroyed(
idb_database_id_));
}
WebString RendererWebIDBDatabaseImpl::name() const {
string16 result;
RenderThread::current()->Send(
- new ViewHostMsg_IDBDatabaseName(idb_database_id_, &result));
+ new IndexedDBHostMsg_DatabaseName(idb_database_id_, &result));
return result;
}
WebString RendererWebIDBDatabaseImpl::version() const {
string16 result;
RenderThread::current()->Send(
- new ViewHostMsg_IDBDatabaseVersion(idb_database_id_, &result));
+ new IndexedDBHostMsg_DatabaseVersion(idb_database_id_, &result));
return result;
}
WebDOMStringList RendererWebIDBDatabaseImpl::objectStoreNames() const {
std::vector<string16> result;
RenderThread::current()->Send(
- new ViewHostMsg_IDBDatabaseObjectStoreNames(idb_database_id_, &result));
+ new IndexedDBHostMsg_DatabaseObjectStoreNames(idb_database_id_, &result));
WebDOMStringList webResult;
for (std::vector<string16>::const_iterator it = result.begin();
it != result.end(); ++it) {
@@ -63,16 +63,16 @@ WebKit::WebIDBObjectStore* RendererWebIDBDatabaseImpl::createObjectStore(
bool auto_increment,
const WebKit::WebIDBTransaction& transaction,
WebExceptionCode& ec) {
- ViewHostMsg_IDBDatabaseCreateObjectStore_Params params;
- params.name_ = name;
- params.key_path_ = key_path;
- params.auto_increment_ = auto_increment;
- params.transaction_id_ = IndexedDBDispatcher::TransactionId(transaction);
- params.idb_database_id_ = idb_database_id_;
+ IndexedDBHostMsg_DatabaseCreateObjectStore_Params params;
+ params.name = name;
+ params.key_path = key_path;
+ params.auto_increment = auto_increment;
+ params.transaction_id = IndexedDBDispatcher::TransactionId(transaction);
+ params.idb_database_id = idb_database_id_;
int object_store;
RenderThread::current()->Send(
- new ViewHostMsg_IDBDatabaseCreateObjectStore(params, &object_store, &ec));
+ new IndexedDBHostMsg_DatabaseCreateObjectStore(params, &object_store, &ec));
if (!object_store)
return NULL;
return new RendererWebIDBObjectStoreImpl(object_store);
@@ -83,7 +83,7 @@ void RendererWebIDBDatabaseImpl::deleteObjectStore(
const WebIDBTransaction& transaction,
WebExceptionCode& ec) {
RenderThread::current()->Send(
- new ViewHostMsg_IDBDatabaseDeleteObjectStore(
+ new IndexedDBHostMsg_DatabaseDeleteObjectStore(
idb_database_id_, name,
IndexedDBDispatcher::TransactionId(transaction), &ec));
}
@@ -110,7 +110,7 @@ WebKit::WebIDBTransaction* RendererWebIDBDatabaseImpl::transaction(
int transaction_id;
RenderThread::current()->Send(
- new ViewHostMsg_IDBDatabaseTransaction(
+ new IndexedDBHostMsg_DatabaseTransaction(
idb_database_id_, object_stores, mode,
timeout, &transaction_id, &ec));
if (!transaction_id)