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

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

Issue 5828003: Move the Pepper implementation from webkit/glue/plugins/pepper_* to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 "base/values.h" 5 #include "base/values.h"
6 #include "chrome/common/edit_command.h" 6 #include "chrome/common/edit_command.h"
7 #include "chrome/common/extensions/extension_extent.h" 7 #include "chrome/common/extensions/extension_extent.h"
8 #include "chrome/common/extensions/url_pattern.h" 8 #include "chrome/common/extensions/url_pattern.h"
9 #include "chrome/common/gpu_param_traits.h" 9 #include "chrome/common/gpu_param_traits.h"
10 #include "chrome/common/render_messages_params.h" 10 #include "chrome/common/render_messages_params.h"
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 void ParamTraits<AudioBuffersState>::Log(const param_type& p, std::string* l) { 1201 void ParamTraits<AudioBuffersState>::Log(const param_type& p, std::string* l) {
1202 l->append("("); 1202 l->append("(");
1203 LogParam(p.pending_bytes, l); 1203 LogParam(p.pending_bytes, l);
1204 l->append(", "); 1204 l->append(", ");
1205 LogParam(p.hardware_delay_bytes, l); 1205 LogParam(p.hardware_delay_bytes, l);
1206 l->append(", "); 1206 l->append(", ");
1207 LogParam(p.timestamp, l); 1207 LogParam(p.timestamp, l);
1208 l->append(")"); 1208 l->append(")");
1209 } 1209 }
1210 1210
1211 void ParamTraits<PepperDirEntry>::Write(Message* m, const param_type& p) { 1211 void ParamTraits<webkit::plugins::ppapi::DirEntry>::Write(Message* m,
1212 const param_type& p) {
1212 WriteParam(m, p.name); 1213 WriteParam(m, p.name);
1213 WriteParam(m, p.is_dir); 1214 WriteParam(m, p.is_dir);
1214 } 1215 }
1215 1216
1216 bool ParamTraits<PepperDirEntry>::Read(const Message* m, 1217 bool ParamTraits<webkit::plugins::ppapi::DirEntry>::Read(const Message* m,
1217 void** iter, 1218 void** iter,
1218 param_type* p) { 1219 param_type* p) {
1219 return ReadParam(m, iter, &p->name) && 1220 return ReadParam(m, iter, &p->name) &&
1220 ReadParam(m, iter, &p->is_dir); 1221 ReadParam(m, iter, &p->is_dir);
1221 } 1222 }
1222 1223
1223 void ParamTraits<PepperDirEntry>::Log(const param_type& p, std::string* l) { 1224 void ParamTraits<webkit::plugins::ppapi::DirEntry>::Log(const param_type& p,
1225 std::string* l) {
1224 l->append("("); 1226 l->append("(");
1225 LogParam(p.name, l); 1227 LogParam(p.name, l);
1226 l->append(", "); 1228 l->append(", ");
1227 LogParam(p.is_dir, l); 1229 LogParam(p.is_dir, l);
1228 l->append(")"); 1230 l->append(")");
1229 } 1231 }
1230 1232
1231 void ParamTraits<speech_input::SpeechInputResultItem>::Write( 1233 void ParamTraits<speech_input::SpeechInputResultItem>::Write(
1232 Message* m, const param_type& p) { 1234 Message* m, const param_type& p) {
1233 WriteParam(m, p.utterance); 1235 WriteParam(m, p.utterance);
(...skipping 10 matching lines...) Expand all
1244 void ParamTraits<speech_input::SpeechInputResultItem>::Log(const param_type& p, 1246 void ParamTraits<speech_input::SpeechInputResultItem>::Log(const param_type& p,
1245 std::string* l) { 1247 std::string* l) {
1246 l->append("("); 1248 l->append("(");
1247 LogParam(p.utterance, l); 1249 LogParam(p.utterance, l);
1248 l->append(":"); 1250 l->append(":");
1249 LogParam(p.confidence, l); 1251 LogParam(p.confidence, l);
1250 l->append(")"); 1252 l->append(")");
1251 } 1253 }
1252 1254
1253 } // namespace IPC 1255 } // namespace IPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698