| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/common/render_messages_params.h" | 5 #include "chrome/common/render_messages_params.h" |
| 6 | 6 |
| 7 #include "chrome/common/navigation_gesture.h" | 7 #include "chrome/common/navigation_gesture.h" |
| 8 #include "chrome/common/common_param_traits.h" | 8 #include "chrome/common/common_param_traits.h" |
| 9 #include "chrome/common/indexed_db_param_traits.h" | 9 #include "chrome/common/indexed_db_param_traits.h" |
| 10 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 168 |
| 169 ViewMsg_DOMStorageEvent_Params::ViewMsg_DOMStorageEvent_Params() | 169 ViewMsg_DOMStorageEvent_Params::ViewMsg_DOMStorageEvent_Params() |
| 170 : storage_type_(DOM_STORAGE_LOCAL) { | 170 : storage_type_(DOM_STORAGE_LOCAL) { |
| 171 } | 171 } |
| 172 | 172 |
| 173 ViewMsg_DOMStorageEvent_Params::~ViewMsg_DOMStorageEvent_Params() { | 173 ViewMsg_DOMStorageEvent_Params::~ViewMsg_DOMStorageEvent_Params() { |
| 174 } | 174 } |
| 175 | 175 |
| 176 ViewHostMsg_IDBFactoryOpen_Params::ViewHostMsg_IDBFactoryOpen_Params() | 176 ViewHostMsg_IDBFactoryOpen_Params::ViewHostMsg_IDBFactoryOpen_Params() |
| 177 : routing_id_(0), | 177 : routing_id_(0), |
| 178 response_id_(0) { | 178 response_id_(0), |
| 179 maximum_size_(0) { |
| 179 } | 180 } |
| 180 | 181 |
| 181 ViewHostMsg_IDBFactoryOpen_Params::~ViewHostMsg_IDBFactoryOpen_Params() { | 182 ViewHostMsg_IDBFactoryOpen_Params::~ViewHostMsg_IDBFactoryOpen_Params() { |
| 182 } | 183 } |
| 183 | 184 |
| 184 ViewHostMsg_IDBDatabaseCreateObjectStore_Params:: | 185 ViewHostMsg_IDBDatabaseCreateObjectStore_Params:: |
| 185 ViewHostMsg_IDBDatabaseCreateObjectStore_Params() | 186 ViewHostMsg_IDBDatabaseCreateObjectStore_Params() |
| 186 : auto_increment_(false), | 187 : auto_increment_(false), |
| 187 transaction_id_(0), | 188 transaction_id_(0), |
| 188 idb_database_id_(0) { | 189 idb_database_id_(0) { |
| (...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1208 } | 1209 } |
| 1209 | 1210 |
| 1210 void ParamTraits<ViewHostMsg_IDBFactoryOpen_Params>::Write( | 1211 void ParamTraits<ViewHostMsg_IDBFactoryOpen_Params>::Write( |
| 1211 Message* m, | 1212 Message* m, |
| 1212 const param_type& p) { | 1213 const param_type& p) { |
| 1213 WriteParam(m, p.routing_id_); | 1214 WriteParam(m, p.routing_id_); |
| 1214 WriteParam(m, p.response_id_); | 1215 WriteParam(m, p.response_id_); |
| 1215 WriteParam(m, p.origin_); | 1216 WriteParam(m, p.origin_); |
| 1216 WriteParam(m, p.name_); | 1217 WriteParam(m, p.name_); |
| 1217 WriteParam(m, p.description_); | 1218 WriteParam(m, p.description_); |
| 1219 WriteParam(m, p.maximum_size_); |
| 1218 } | 1220 } |
| 1219 | 1221 |
| 1220 bool ParamTraits<ViewHostMsg_IDBFactoryOpen_Params>::Read(const Message* m, | 1222 bool ParamTraits<ViewHostMsg_IDBFactoryOpen_Params>::Read(const Message* m, |
| 1221 void** iter, | 1223 void** iter, |
| 1222 param_type* p) { | 1224 param_type* p) { |
| 1223 return | 1225 return |
| 1224 ReadParam(m, iter, &p->routing_id_) && | 1226 ReadParam(m, iter, &p->routing_id_) && |
| 1225 ReadParam(m, iter, &p->response_id_) && | 1227 ReadParam(m, iter, &p->response_id_) && |
| 1226 ReadParam(m, iter, &p->origin_) && | 1228 ReadParam(m, iter, &p->origin_) && |
| 1227 ReadParam(m, iter, &p->name_) && | 1229 ReadParam(m, iter, &p->name_) && |
| 1228 ReadParam(m, iter, &p->description_); | 1230 ReadParam(m, iter, &p->description_) && |
| 1231 ReadParam(m, iter, &p->maximum_size_); |
| 1229 } | 1232 } |
| 1230 | 1233 |
| 1231 void ParamTraits<ViewHostMsg_IDBFactoryOpen_Params>::Log(const param_type& p, | 1234 void ParamTraits<ViewHostMsg_IDBFactoryOpen_Params>::Log(const param_type& p, |
| 1232 std::string* l) { | 1235 std::string* l) { |
| 1233 l->append("("); | 1236 l->append("("); |
| 1234 LogParam(p.routing_id_, l); | 1237 LogParam(p.routing_id_, l); |
| 1235 l->append(", "); | 1238 l->append(", "); |
| 1236 LogParam(p.response_id_, l); | 1239 LogParam(p.response_id_, l); |
| 1237 l->append(", "); | 1240 l->append(", "); |
| 1238 LogParam(p.origin_, l); | 1241 LogParam(p.origin_, l); |
| 1239 l->append(", "); | 1242 l->append(", "); |
| 1240 LogParam(p.name_, l); | 1243 LogParam(p.name_, l); |
| 1241 l->append(", "); | 1244 l->append(", "); |
| 1242 LogParam(p.description_, l); | 1245 LogParam(p.description_, l); |
| 1246 l->append(", "); |
| 1247 LogParam(p.maximum_size_, l); |
| 1243 l->append(")"); | 1248 l->append(")"); |
| 1244 } | 1249 } |
| 1245 | 1250 |
| 1246 void ParamTraits<ViewHostMsg_IDBDatabaseCreateObjectStore_Params>::Write( | 1251 void ParamTraits<ViewHostMsg_IDBDatabaseCreateObjectStore_Params>::Write( |
| 1247 Message* m, | 1252 Message* m, |
| 1248 const param_type& p) { | 1253 const param_type& p) { |
| 1249 WriteParam(m, p.name_); | 1254 WriteParam(m, p.name_); |
| 1250 WriteParam(m, p.key_path_); | 1255 WriteParam(m, p.key_path_); |
| 1251 WriteParam(m, p.auto_increment_); | 1256 WriteParam(m, p.auto_increment_); |
| 1252 WriteParam(m, p.transaction_id_); | 1257 WriteParam(m, p.transaction_id_); |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1879 const param_type& p, | 1884 const param_type& p, |
| 1880 std::string* l) { | 1885 std::string* l) { |
| 1881 l->append("("); | 1886 l->append("("); |
| 1882 LogParam(p.notification_type, l); | 1887 LogParam(p.notification_type, l); |
| 1883 l->append(", "); | 1888 l->append(", "); |
| 1884 LogParam(p.acc_obj, l); | 1889 LogParam(p.acc_obj, l); |
| 1885 l->append(")"); | 1890 l->append(")"); |
| 1886 } | 1891 } |
| 1887 | 1892 |
| 1888 } // namespace IPC | 1893 } // namespace IPC |
| OLD | NEW |