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

Side by Side Diff: chrome/common/render_messages_params.cc

Issue 5722003: Make DOMStorageDispatcherHost be a message filter (and rename it accordingly)... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: get rid of _DELAY_HANDLE macro Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 host_window_id(0), 159 host_window_id(0),
160 cookie(0), 160 cookie(0),
161 expected_pages_count(0), 161 expected_pages_count(0),
162 has_selection(false), 162 has_selection(false),
163 use_overlays(false) { 163 use_overlays(false) {
164 } 164 }
165 165
166 ViewHostMsg_ScriptedPrint_Params::~ViewHostMsg_ScriptedPrint_Params() { 166 ViewHostMsg_ScriptedPrint_Params::~ViewHostMsg_ScriptedPrint_Params() {
167 } 167 }
168 168
169 ViewMsg_DOMStorageEvent_Params::ViewMsg_DOMStorageEvent_Params()
170 : storage_type_(DOM_STORAGE_LOCAL) {
171 }
172
173 ViewMsg_DOMStorageEvent_Params::~ViewMsg_DOMStorageEvent_Params() {
174 }
175
176 ViewHostMsg_IDBFactoryOpen_Params::ViewHostMsg_IDBFactoryOpen_Params() 169 ViewHostMsg_IDBFactoryOpen_Params::ViewHostMsg_IDBFactoryOpen_Params()
177 : routing_id_(0), 170 : routing_id_(0),
178 response_id_(0), 171 response_id_(0),
179 maximum_size_(0) { 172 maximum_size_(0) {
180 } 173 }
181 174
182 ViewHostMsg_IDBFactoryOpen_Params::~ViewHostMsg_IDBFactoryOpen_Params() { 175 ViewHostMsg_IDBFactoryOpen_Params::~ViewHostMsg_IDBFactoryOpen_Params() {
183 } 176 }
184 177
185 ViewHostMsg_IDBDatabaseCreateObjectStore_Params:: 178 ViewHostMsg_IDBDatabaseCreateObjectStore_Params::
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 LogParam(p.cookie, l); 1204 LogParam(p.cookie, l);
1212 l->append(", "); 1205 l->append(", ");
1213 LogParam(p.expected_pages_count, l); 1206 LogParam(p.expected_pages_count, l);
1214 l->append(", "); 1207 l->append(", ");
1215 LogParam(p.has_selection, l); 1208 LogParam(p.has_selection, l);
1216 l->append(","); 1209 l->append(",");
1217 LogParam(p.use_overlays, l); 1210 LogParam(p.use_overlays, l);
1218 l->append(")"); 1211 l->append(")");
1219 } 1212 }
1220 1213
1221 void ParamTraits<ViewMsg_DOMStorageEvent_Params>::Write(Message* m,
1222 const param_type& p) {
1223 WriteParam(m, p.key_);
1224 WriteParam(m, p.old_value_);
1225 WriteParam(m, p.new_value_);
1226 WriteParam(m, p.origin_);
1227 WriteParam(m, p.url_);
1228 WriteParam(m, p.storage_type_);
1229 }
1230
1231 bool ParamTraits<ViewMsg_DOMStorageEvent_Params>::Read(const Message* m,
1232 void** iter,
1233 param_type* p) {
1234 return
1235 ReadParam(m, iter, &p->key_) &&
1236 ReadParam(m, iter, &p->old_value_) &&
1237 ReadParam(m, iter, &p->new_value_) &&
1238 ReadParam(m, iter, &p->origin_) &&
1239 ReadParam(m, iter, &p->url_) &&
1240 ReadParam(m, iter, &p->storage_type_);
1241 }
1242
1243 void ParamTraits<ViewMsg_DOMStorageEvent_Params>::Log(const param_type& p,
1244 std::string* l) {
1245 l->append("(");
1246 LogParam(p.key_, l);
1247 l->append(", ");
1248 LogParam(p.old_value_, l);
1249 l->append(", ");
1250 LogParam(p.new_value_, l);
1251 l->append(", ");
1252 LogParam(p.origin_, l);
1253 l->append(", ");
1254 LogParam(p.url_, l);
1255 l->append(", ");
1256 LogParam(p.storage_type_, l);
1257 l->append(")");
1258 }
1259
1260 void ParamTraits<ViewHostMsg_IDBFactoryOpen_Params>::Write( 1214 void ParamTraits<ViewHostMsg_IDBFactoryOpen_Params>::Write(
1261 Message* m, 1215 Message* m,
1262 const param_type& p) { 1216 const param_type& p) {
1263 WriteParam(m, p.routing_id_); 1217 WriteParam(m, p.routing_id_);
1264 WriteParam(m, p.response_id_); 1218 WriteParam(m, p.response_id_);
1265 WriteParam(m, p.origin_); 1219 WriteParam(m, p.origin_);
1266 WriteParam(m, p.name_); 1220 WriteParam(m, p.name_);
1267 WriteParam(m, p.maximum_size_); 1221 WriteParam(m, p.maximum_size_);
1268 } 1222 }
1269 1223
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
1937 const param_type& p, 1891 const param_type& p,
1938 std::string* l) { 1892 std::string* l) {
1939 l->append("("); 1893 l->append("(");
1940 LogParam(p.notification_type, l); 1894 LogParam(p.notification_type, l);
1941 l->append(", "); 1895 l->append(", ");
1942 LogParam(p.acc_obj, l); 1896 LogParam(p.acc_obj, l);
1943 l->append(")"); 1897 l->append(")");
1944 } 1898 }
1945 1899
1946 } // namespace IPC 1900 } // namespace IPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698