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

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

Issue 6705012: Move the rest of the content browser->renderer messages to content. Also move drag related messa... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/common/render_messages_params.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Get basic type definitions. 5 // Get basic type definitions.
6 #define IPC_MESSAGE_IMPL 6 #define IPC_MESSAGE_IMPL
7 #include "chrome/common/render_messages.h" 7 #include "chrome/common/render_messages.h"
8 #include "chrome/common/common_param_traits.h" 8 #include "chrome/common/common_param_traits.h"
9 9
10 // Generate constructors. 10 // Generate constructors.
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 LogParam(p.version, l); 152 LogParam(p.version, l);
153 l->append(", "); 153 l->append(", ");
154 LogParam(p.desc, l); 154 LogParam(p.desc, l);
155 l->append(", "); 155 l->append(", ");
156 LogParam(p.mime_types, l); 156 LogParam(p.mime_types, l);
157 l->append(", "); 157 l->append(", ");
158 LogParam(p.enabled, l); 158 LogParam(p.enabled, l);
159 l->append(")"); 159 l->append(")");
160 } 160 }
161 161
162 void ParamTraits<WebDropData>::Write(Message* m, const param_type& p) {
163 WriteParam(m, p.url);
164 WriteParam(m, p.url_title);
165 WriteParam(m, p.download_metadata);
166 WriteParam(m, p.file_extension);
167 WriteParam(m, p.filenames);
168 WriteParam(m, p.plain_text);
169 WriteParam(m, p.text_html);
170 WriteParam(m, p.html_base_url);
171 WriteParam(m, p.file_description_filename);
172 WriteParam(m, p.file_contents);
173 }
174
175 bool ParamTraits<WebDropData>::Read(const Message* m, void** iter,
176 param_type* p) {
177 return
178 ReadParam(m, iter, &p->url) &&
179 ReadParam(m, iter, &p->url_title) &&
180 ReadParam(m, iter, &p->download_metadata) &&
181 ReadParam(m, iter, &p->file_extension) &&
182 ReadParam(m, iter, &p->filenames) &&
183 ReadParam(m, iter, &p->plain_text) &&
184 ReadParam(m, iter, &p->text_html) &&
185 ReadParam(m, iter, &p->html_base_url) &&
186 ReadParam(m, iter, &p->file_description_filename) &&
187 ReadParam(m, iter, &p->file_contents);
188 }
189
190 void ParamTraits<WebDropData>::Log(const param_type& p, std::string* l) {
191 l->append("<WebDropData>");
192 }
193
194 void ParamTraits<URLPattern>::Write(Message* m, const param_type& p) { 162 void ParamTraits<URLPattern>::Write(Message* m, const param_type& p) {
195 WriteParam(m, p.valid_schemes()); 163 WriteParam(m, p.valid_schemes());
196 WriteParam(m, p.GetAsString()); 164 WriteParam(m, p.GetAsString());
197 } 165 }
198 166
199 bool ParamTraits<URLPattern>::Read(const Message* m, void** iter, 167 bool ParamTraits<URLPattern>::Read(const Message* m, void** iter,
200 param_type* p) { 168 param_type* p) {
201 int valid_schemes; 169 int valid_schemes;
202 std::string spec; 170 std::string spec;
203 if (!ReadParam(m, iter, &valid_schemes) || 171 if (!ReadParam(m, iter, &valid_schemes) ||
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 l->append(", "); 288 l->append(", ");
321 LogParam(p.children, l); 289 LogParam(p.children, l);
322 l->append(", "); 290 l->append(", ");
323 LogParam(p.html_attributes, l); 291 LogParam(p.html_attributes, l);
324 l->append(", "); 292 l->append(", ");
325 LogParam(p.indirect_child_ids, l); 293 LogParam(p.indirect_child_ids, l);
326 l->append(")"); 294 l->append(")");
327 } 295 }
328 296
329 } // namespace IPC 297 } // namespace IPC
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/common/render_messages_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698