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

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

Issue 2967007: Disable outdated plugins, block non-sandboxed plugins. (Closed)
Patch Set: '' Created 10 years, 4 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
« no previous file with comments | « chrome/common/plugin_group.h ('k') | chrome/common/render_messages_internal.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) 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 #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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 1293
1294 template <> 1294 template <>
1295 struct ParamTraits<WebPluginInfo> { 1295 struct ParamTraits<WebPluginInfo> {
1296 typedef WebPluginInfo param_type; 1296 typedef WebPluginInfo param_type;
1297 static void Write(Message* m, const param_type& p) { 1297 static void Write(Message* m, const param_type& p) {
1298 WriteParam(m, p.name); 1298 WriteParam(m, p.name);
1299 WriteParam(m, p.path); 1299 WriteParam(m, p.path);
1300 WriteParam(m, p.version); 1300 WriteParam(m, p.version);
1301 WriteParam(m, p.desc); 1301 WriteParam(m, p.desc);
1302 WriteParam(m, p.mime_types); 1302 WriteParam(m, p.mime_types);
1303 WriteParam(m, p.enabled);
1303 } 1304 }
1304 static bool Read(const Message* m, void** iter, param_type* r) { 1305 static bool Read(const Message* m, void** iter, param_type* r) {
1305 return 1306 return
1306 ReadParam(m, iter, &r->name) && 1307 ReadParam(m, iter, &r->name) &&
1307 ReadParam(m, iter, &r->path) && 1308 ReadParam(m, iter, &r->path) &&
1308 ReadParam(m, iter, &r->version) && 1309 ReadParam(m, iter, &r->version) &&
1309 ReadParam(m, iter, &r->desc) && 1310 ReadParam(m, iter, &r->desc) &&
1310 ReadParam(m, iter, &r->mime_types); 1311 ReadParam(m, iter, &r->mime_types) &&
1312 ReadParam(m, iter, &r->enabled);
1311 } 1313 }
1312 static void Log(const param_type& p, std::wstring* l) { 1314 static void Log(const param_type& p, std::wstring* l) {
1313 l->append(L"("); 1315 l->append(L"(");
1314 LogParam(p.name, l); 1316 LogParam(p.name, l);
1315 l->append(L", "); 1317 l->append(L", ");
1316 l->append(L", "); 1318 l->append(L", ");
1317 LogParam(p.path, l); 1319 LogParam(p.path, l);
1318 l->append(L", "); 1320 l->append(L", ");
1319 LogParam(p.version, l); 1321 LogParam(p.version, l);
1320 l->append(L", "); 1322 l->append(L", ");
1321 LogParam(p.desc, l); 1323 LogParam(p.desc, l);
1322 l->append(L", "); 1324 l->append(L", ");
1323 LogParam(p.mime_types, l); 1325 LogParam(p.mime_types, l);
1326 l->append(L", ");
1327 LogParam(p.enabled, l);
1324 l->append(L")"); 1328 l->append(L")");
1325 } 1329 }
1326 }; 1330 };
1327 1331
1328 // Traits for webkit_glue::PasswordFormDomManager::FillData. 1332 // Traits for webkit_glue::PasswordFormDomManager::FillData.
1329 template <> 1333 template <>
1330 struct ParamTraits<webkit_glue::PasswordFormFillData> { 1334 struct ParamTraits<webkit_glue::PasswordFormFillData> {
1331 typedef webkit_glue::PasswordFormFillData param_type; 1335 typedef webkit_glue::PasswordFormFillData param_type;
1332 static void Write(Message* m, const param_type& p) { 1336 static void Write(Message* m, const param_type& p) {
1333 WriteParam(m, p.basic_data); 1337 WriteParam(m, p.basic_data);
(...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after
3192 l->append(L")"); 3196 l->append(L")");
3193 } 3197 }
3194 }; 3198 };
3195 3199
3196 } // namespace IPC 3200 } // namespace IPC
3197 3201
3198 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" 3202 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h"
3199 #include "ipc/ipc_message_macros.h" 3203 #include "ipc/ipc_message_macros.h"
3200 3204
3201 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 3205 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW
« no previous file with comments | « chrome/common/plugin_group.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698