Index: chrome/common/render_messages_params.cc |
=================================================================== |
--- chrome/common/render_messages_params.cc (revision 69028) |
+++ chrome/common/render_messages_params.cc (working copy) |
@@ -6,7 +6,6 @@ |
#include "chrome/common/navigation_gesture.h" |
#include "chrome/common/common_param_traits.h" |
-#include "chrome/common/indexed_db_param_traits.h" |
#include "chrome/common/render_messages.h" |
#include "net/base/upload_data.h" |
@@ -173,76 +172,6 @@ |
ViewMsg_DOMStorageEvent_Params::~ViewMsg_DOMStorageEvent_Params() { |
} |
-ViewHostMsg_IDBFactoryOpen_Params::ViewHostMsg_IDBFactoryOpen_Params() |
- : routing_id_(0), |
- response_id_(0), |
- maximum_size_(0) { |
-} |
- |
-ViewHostMsg_IDBFactoryOpen_Params::~ViewHostMsg_IDBFactoryOpen_Params() { |
-} |
- |
-ViewHostMsg_IDBDatabaseCreateObjectStore_Params:: |
- ViewHostMsg_IDBDatabaseCreateObjectStore_Params() |
- : auto_increment_(false), |
- transaction_id_(0), |
- idb_database_id_(0) { |
-} |
- |
-ViewHostMsg_IDBDatabaseCreateObjectStore_Params:: |
- ~ViewHostMsg_IDBDatabaseCreateObjectStore_Params() { |
-} |
- |
-ViewHostMsg_IDBIndexOpenCursor_Params::ViewHostMsg_IDBIndexOpenCursor_Params() |
- : response_id_(0), |
- lower_open_(false), |
- upper_open_(false), |
- direction_(0), |
- idb_index_id_(0), |
- transaction_id_(0) { |
-} |
- |
-ViewHostMsg_IDBIndexOpenCursor_Params:: |
- ~ViewHostMsg_IDBIndexOpenCursor_Params() { |
-} |
- |
- |
-ViewHostMsg_IDBObjectStorePut_Params::ViewHostMsg_IDBObjectStorePut_Params() |
- : idb_object_store_id_(0), |
- response_id_(0), |
- add_only_(false), |
- transaction_id_(0) { |
-} |
- |
-ViewHostMsg_IDBObjectStorePut_Params::~ViewHostMsg_IDBObjectStorePut_Params() { |
-} |
- |
-ViewHostMsg_IDBObjectStoreCreateIndex_Params:: |
-ViewHostMsg_IDBObjectStoreCreateIndex_Params() |
- : unique_(false), |
- transaction_id_(0), |
- idb_object_store_id_(0) { |
-} |
- |
-ViewHostMsg_IDBObjectStoreCreateIndex_Params:: |
-~ViewHostMsg_IDBObjectStoreCreateIndex_Params() { |
-} |
- |
- |
-ViewHostMsg_IDBObjectStoreOpenCursor_Params:: |
- ViewHostMsg_IDBObjectStoreOpenCursor_Params() |
- : response_id_(0), |
- lower_open_(false), |
- upper_open_(false), |
- direction_(0), |
- idb_object_store_id_(0), |
- transaction_id_(0) { |
-} |
- |
-ViewHostMsg_IDBObjectStoreOpenCursor_Params:: |
- ~ViewHostMsg_IDBObjectStoreOpenCursor_Params() { |
-} |
- |
ViewMsg_ExecuteCode_Params::ViewMsg_ExecuteCode_Params() { |
} |
@@ -1257,260 +1186,6 @@ |
l->append(")"); |
} |
-void ParamTraits<ViewHostMsg_IDBFactoryOpen_Params>::Write( |
- Message* m, |
- const param_type& p) { |
- WriteParam(m, p.routing_id_); |
- WriteParam(m, p.response_id_); |
- WriteParam(m, p.origin_); |
- WriteParam(m, p.name_); |
- WriteParam(m, p.maximum_size_); |
-} |
- |
-bool ParamTraits<ViewHostMsg_IDBFactoryOpen_Params>::Read(const Message* m, |
- void** iter, |
- param_type* p) { |
- return |
- ReadParam(m, iter, &p->routing_id_) && |
- ReadParam(m, iter, &p->response_id_) && |
- ReadParam(m, iter, &p->origin_) && |
- ReadParam(m, iter, &p->name_) && |
- ReadParam(m, iter, &p->maximum_size_); |
-} |
- |
-void ParamTraits<ViewHostMsg_IDBFactoryOpen_Params>::Log(const param_type& p, |
- std::string* l) { |
- l->append("("); |
- LogParam(p.routing_id_, l); |
- l->append(", "); |
- LogParam(p.response_id_, l); |
- l->append(", "); |
- LogParam(p.origin_, l); |
- l->append(", "); |
- LogParam(p.name_, l); |
- l->append(", "); |
- LogParam(p.maximum_size_, l); |
- l->append(")"); |
-} |
- |
-void ParamTraits<ViewHostMsg_IDBDatabaseCreateObjectStore_Params>::Write( |
- Message* m, |
- const param_type& p) { |
- WriteParam(m, p.name_); |
- WriteParam(m, p.key_path_); |
- WriteParam(m, p.auto_increment_); |
- WriteParam(m, p.transaction_id_); |
- WriteParam(m, p.idb_database_id_); |
-} |
- |
-bool ParamTraits<ViewHostMsg_IDBDatabaseCreateObjectStore_Params>::Read( |
- const Message* m, |
- void** iter, |
- param_type* p) { |
- return |
- ReadParam(m, iter, &p->name_) && |
- ReadParam(m, iter, &p->key_path_) && |
- ReadParam(m, iter, &p->auto_increment_) && |
- ReadParam(m, iter, &p->transaction_id_) && |
- ReadParam(m, iter, &p->idb_database_id_); |
-} |
- |
-void ParamTraits<ViewHostMsg_IDBDatabaseCreateObjectStore_Params>::Log( |
- const param_type& p, |
- std::string* l) { |
- l->append("("); |
- LogParam(p.name_, l); |
- l->append(", "); |
- LogParam(p.key_path_, l); |
- l->append(", "); |
- LogParam(p.auto_increment_, l); |
- l->append(", "); |
- LogParam(p.transaction_id_, l); |
- l->append(", "); |
- LogParam(p.idb_database_id_, l); |
- l->append(")"); |
-} |
- |
-void ParamTraits<ViewHostMsg_IDBIndexOpenCursor_Params>::Write( |
- Message* m, |
- const param_type& p) { |
- WriteParam(m, p.response_id_); |
- WriteParam(m, p.lower_key_); |
- WriteParam(m, p.upper_key_); |
- WriteParam(m, p.lower_open_); |
- WriteParam(m, p.upper_open_); |
- WriteParam(m, p.direction_); |
- WriteParam(m, p.idb_index_id_); |
- WriteParam(m, p.transaction_id_); |
-} |
- |
-bool ParamTraits<ViewHostMsg_IDBIndexOpenCursor_Params>::Read( |
- const Message* m, |
- void** iter, |
- param_type* p) { |
- return |
- ReadParam(m, iter, &p->response_id_) && |
- ReadParam(m, iter, &p->lower_key_) && |
- ReadParam(m, iter, &p->upper_key_) && |
- ReadParam(m, iter, &p->lower_open_) && |
- ReadParam(m, iter, &p->upper_open_) && |
- ReadParam(m, iter, &p->direction_) && |
- ReadParam(m, iter, &p->idb_index_id_) && |
- ReadParam(m, iter, &p->transaction_id_); |
-} |
- |
-void ParamTraits<ViewHostMsg_IDBIndexOpenCursor_Params>::Log( |
- const param_type& p, |
- std::string* l) { |
- l->append("("); |
- LogParam(p.response_id_, l); |
- l->append(", "); |
- LogParam(p.lower_key_, l); |
- l->append(", "); |
- LogParam(p.upper_key_, l); |
- l->append(", "); |
- LogParam(p.lower_open_, l); |
- l->append(", "); |
- LogParam(p.upper_open_, l); |
- l->append(", "); |
- LogParam(p.direction_, l); |
- l->append(", "); |
- LogParam(p.idb_index_id_, l); |
- l->append(","); |
- LogParam(p.transaction_id_, l); |
- l->append(")"); |
-} |
- |
-void ParamTraits<ViewHostMsg_IDBObjectStorePut_Params>::Write( |
- Message* m, |
- const param_type& p) { |
- WriteParam(m, p.idb_object_store_id_); |
- WriteParam(m, p.response_id_); |
- WriteParam(m, p.serialized_value_); |
- WriteParam(m, p.key_); |
- WriteParam(m, p.add_only_); |
- WriteParam(m, p.transaction_id_); |
-} |
- |
-bool ParamTraits<ViewHostMsg_IDBObjectStorePut_Params>::Read( |
- const Message* m, |
- void** iter, |
- param_type* p) { |
- return |
- ReadParam(m, iter, &p->idb_object_store_id_) && |
- ReadParam(m, iter, &p->response_id_) && |
- ReadParam(m, iter, &p->serialized_value_) && |
- ReadParam(m, iter, &p->key_) && |
- ReadParam(m, iter, &p->add_only_) && |
- ReadParam(m, iter, &p->transaction_id_); |
-} |
- |
-void ParamTraits<ViewHostMsg_IDBObjectStorePut_Params>::Log( |
- const param_type& p, |
- std::string* l) { |
- l->append("("); |
- LogParam(p.idb_object_store_id_, l); |
- l->append(", "); |
- LogParam(p.response_id_, l); |
- l->append(", "); |
- LogParam(p.serialized_value_, l); |
- l->append(", "); |
- LogParam(p.key_, l); |
- l->append(", "); |
- LogParam(p.add_only_, l); |
- l->append(", "); |
- LogParam(p.transaction_id_, l); |
- l->append(")"); |
-} |
- |
-void ParamTraits<ViewHostMsg_IDBObjectStoreCreateIndex_Params>::Write( |
- Message* m, |
- const param_type& p) { |
- WriteParam(m, p.name_); |
- WriteParam(m, p.key_path_); |
- WriteParam(m, p.unique_); |
- WriteParam(m, p.transaction_id_); |
- WriteParam(m, p.idb_object_store_id_); |
-} |
- |
-bool ParamTraits<ViewHostMsg_IDBObjectStoreCreateIndex_Params>::Read( |
- const Message* m, |
- void** iter, |
- param_type* p) { |
- return |
- ReadParam(m, iter, &p->name_) && |
- ReadParam(m, iter, &p->key_path_) && |
- ReadParam(m, iter, &p->unique_) && |
- ReadParam(m, iter, &p->transaction_id_) && |
- ReadParam(m, iter, &p->idb_object_store_id_); |
-} |
- |
-void ParamTraits<ViewHostMsg_IDBObjectStoreCreateIndex_Params>::Log( |
- const param_type& p, |
- std::string* l) { |
- l->append("("); |
- LogParam(p.name_, l); |
- l->append(", "); |
- LogParam(p.key_path_, l); |
- l->append(", "); |
- LogParam(p.unique_, l); |
- l->append(", "); |
- LogParam(p.transaction_id_, l); |
- l->append(", "); |
- LogParam(p.idb_object_store_id_, l); |
- l->append(")"); |
-} |
- |
-void ParamTraits<ViewHostMsg_IDBObjectStoreOpenCursor_Params>::Write( |
- Message* m, |
- const param_type& p) { |
- WriteParam(m, p.response_id_); |
- WriteParam(m, p.lower_key_); |
- WriteParam(m, p.upper_key_); |
- WriteParam(m, p.lower_open_); |
- WriteParam(m, p.upper_open_); |
- WriteParam(m, p.direction_); |
- WriteParam(m, p.idb_object_store_id_); |
- WriteParam(m, p.transaction_id_); |
-} |
- |
-bool ParamTraits<ViewHostMsg_IDBObjectStoreOpenCursor_Params>::Read( |
- const Message* m, |
- void** iter, |
- param_type* p) { |
- return |
- ReadParam(m, iter, &p->response_id_) && |
- ReadParam(m, iter, &p->lower_key_) && |
- ReadParam(m, iter, &p->upper_key_) && |
- ReadParam(m, iter, &p->lower_open_) && |
- ReadParam(m, iter, &p->upper_open_) && |
- ReadParam(m, iter, &p->direction_) && |
- ReadParam(m, iter, &p->idb_object_store_id_) && |
- ReadParam(m, iter, &p->transaction_id_); |
-} |
- |
-void ParamTraits<ViewHostMsg_IDBObjectStoreOpenCursor_Params>::Log( |
- const param_type& p, |
- std::string* l) { |
- l->append("("); |
- LogParam(p.response_id_, l); |
- l->append(", "); |
- LogParam(p.lower_key_, l); |
- l->append(", "); |
- LogParam(p.upper_key_, l); |
- l->append(", "); |
- LogParam(p.lower_open_, l); |
- l->append(", "); |
- LogParam(p.upper_open_, l); |
- l->append(", "); |
- LogParam(p.direction_, l); |
- l->append(", "); |
- LogParam(p.idb_object_store_id_, l); |
- l->append(","); |
- LogParam(p.transaction_id_, l); |
- l->append(")"); |
-} |
- |
void ParamTraits<ViewMsg_ExecuteCode_Params>::Write(Message* m, |
const param_type& p) { |
WriteParam(m, p.request_id); |