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

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

Issue 17367: Fix layout test failures. Looks like keying the plugins based on OriginalFil... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
6 #define CHROME_COMMON_RENDER_MESSAGES_H_ 6 #define CHROME_COMMON_RENDER_MESSAGES_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include <map> 10 #include <map>
(...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 l->append(L")"); 1115 l->append(L")");
1116 } 1116 }
1117 }; 1117 };
1118 1118
1119 1119
1120 template <> 1120 template <>
1121 struct ParamTraits<WebPluginInfo> { 1121 struct ParamTraits<WebPluginInfo> {
1122 typedef WebPluginInfo param_type; 1122 typedef WebPluginInfo param_type;
1123 static void Write(Message* m, const param_type& p) { 1123 static void Write(Message* m, const param_type& p) {
1124 WriteParam(m, p.name); 1124 WriteParam(m, p.name);
1125 WriteParam(m, p.filename);
1126 WriteParam(m, p.path); 1125 WriteParam(m, p.path);
1127 WriteParam(m, p.version); 1126 WriteParam(m, p.version);
1128 WriteParam(m, p.desc); 1127 WriteParam(m, p.desc);
1129 WriteParam(m, p.mime_types); 1128 WriteParam(m, p.mime_types);
1130 } 1129 }
1131 static bool Read(const Message* m, void** iter, param_type* r) { 1130 static bool Read(const Message* m, void** iter, param_type* r) {
1132 return 1131 return
1133 ReadParam(m, iter, &r->name) && 1132 ReadParam(m, iter, &r->name) &&
1134 ReadParam(m, iter, &r->filename) &&
1135 ReadParam(m, iter, &r->path) && 1133 ReadParam(m, iter, &r->path) &&
1136 ReadParam(m, iter, &r->version) && 1134 ReadParam(m, iter, &r->version) &&
1137 ReadParam(m, iter, &r->desc) && 1135 ReadParam(m, iter, &r->desc) &&
1138 ReadParam(m, iter, &r->mime_types); 1136 ReadParam(m, iter, &r->mime_types);
1139 } 1137 }
1140 static void Log(const param_type& p, std::wstring* l) { 1138 static void Log(const param_type& p, std::wstring* l) {
1141 l->append(L"("); 1139 l->append(L"(");
1142 LogParam(p.name, l); 1140 LogParam(p.name, l);
1143 l->append(L", "); 1141 l->append(L", ");
1144 LogParam(p.filename, l);
1145 l->append(L", "); 1142 l->append(L", ");
1146 LogParam(p.path, l); 1143 LogParam(p.path, l);
1147 l->append(L", "); 1144 l->append(L", ");
1148 LogParam(p.version, l); 1145 LogParam(p.version, l);
1149 l->append(L", "); 1146 l->append(L", ");
1150 LogParam(p.desc, l); 1147 LogParam(p.desc, l);
1151 l->append(L", "); 1148 l->append(L", ");
1152 LogParam(p.mime_types, l); 1149 LogParam(p.mime_types, l);
1153 l->append(L")"); 1150 l->append(L")");
1154 } 1151 }
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
1722 ReadParam(m, iter, &p->available_rect); 1719 ReadParam(m, iter, &p->available_rect);
1723 } 1720 }
1724 static void Log(const param_type& p, std::wstring* l) { 1721 static void Log(const param_type& p, std::wstring* l) {
1725 l->append(L"<webkit_glue::ScreenInfo>"); 1722 l->append(L"<webkit_glue::ScreenInfo>");
1726 } 1723 }
1727 }; 1724 };
1728 1725
1729 } // namespace IPC 1726 } // namespace IPC
1730 1727
1731 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 1728 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698