| OLD | NEW |
| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1300 | 1300 |
| 1301 template <> | 1301 template <> |
| 1302 struct ParamTraits<WebPluginInfo> { | 1302 struct ParamTraits<WebPluginInfo> { |
| 1303 typedef WebPluginInfo param_type; | 1303 typedef WebPluginInfo param_type; |
| 1304 static void Write(Message* m, const param_type& p) { | 1304 static void Write(Message* m, const param_type& p) { |
| 1305 WriteParam(m, p.name); | 1305 WriteParam(m, p.name); |
| 1306 WriteParam(m, p.path); | 1306 WriteParam(m, p.path); |
| 1307 WriteParam(m, p.version); | 1307 WriteParam(m, p.version); |
| 1308 WriteParam(m, p.desc); | 1308 WriteParam(m, p.desc); |
| 1309 WriteParam(m, p.mime_types); | 1309 WriteParam(m, p.mime_types); |
| 1310 WriteParam(m, p.enabled); |
| 1310 } | 1311 } |
| 1311 static bool Read(const Message* m, void** iter, param_type* r) { | 1312 static bool Read(const Message* m, void** iter, param_type* r) { |
| 1312 return | 1313 return |
| 1313 ReadParam(m, iter, &r->name) && | 1314 ReadParam(m, iter, &r->name) && |
| 1314 ReadParam(m, iter, &r->path) && | 1315 ReadParam(m, iter, &r->path) && |
| 1315 ReadParam(m, iter, &r->version) && | 1316 ReadParam(m, iter, &r->version) && |
| 1316 ReadParam(m, iter, &r->desc) && | 1317 ReadParam(m, iter, &r->desc) && |
| 1317 ReadParam(m, iter, &r->mime_types); | 1318 ReadParam(m, iter, &r->mime_types) && |
| 1319 ReadParam(m, iter, &r->enabled); |
| 1318 } | 1320 } |
| 1319 static void Log(const param_type& p, std::wstring* l) { | 1321 static void Log(const param_type& p, std::wstring* l) { |
| 1320 l->append(L"("); | 1322 l->append(L"("); |
| 1321 LogParam(p.name, l); | 1323 LogParam(p.name, l); |
| 1322 l->append(L", "); | 1324 l->append(L", "); |
| 1323 l->append(L", "); | 1325 l->append(L", "); |
| 1324 LogParam(p.path, l); | 1326 LogParam(p.path, l); |
| 1325 l->append(L", "); | 1327 l->append(L", "); |
| 1326 LogParam(p.version, l); | 1328 LogParam(p.version, l); |
| 1327 l->append(L", "); | 1329 l->append(L", "); |
| 1328 LogParam(p.desc, l); | 1330 LogParam(p.desc, l); |
| 1329 l->append(L", "); | 1331 l->append(L", "); |
| 1330 LogParam(p.mime_types, l); | 1332 LogParam(p.mime_types, l); |
| 1333 l->append(L", "); |
| 1334 LogParam(p.enabled, l); |
| 1331 l->append(L")"); | 1335 l->append(L")"); |
| 1332 } | 1336 } |
| 1333 }; | 1337 }; |
| 1334 | 1338 |
| 1335 // Traits for webkit_glue::PasswordFormDomManager::FillData. | 1339 // Traits for webkit_glue::PasswordFormDomManager::FillData. |
| 1336 template <> | 1340 template <> |
| 1337 struct ParamTraits<webkit_glue::PasswordFormFillData> { | 1341 struct ParamTraits<webkit_glue::PasswordFormFillData> { |
| 1338 typedef webkit_glue::PasswordFormFillData param_type; | 1342 typedef webkit_glue::PasswordFormFillData param_type; |
| 1339 static void Write(Message* m, const param_type& p) { | 1343 static void Write(Message* m, const param_type& p) { |
| 1340 WriteParam(m, p.basic_data); | 1344 WriteParam(m, p.basic_data); |
| (...skipping 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3304 l->append(L")"); | 3308 l->append(L")"); |
| 3305 } | 3309 } |
| 3306 }; | 3310 }; |
| 3307 | 3311 |
| 3308 } // namespace IPC | 3312 } // namespace IPC |
| 3309 | 3313 |
| 3310 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 3314 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
| 3311 #include "ipc/ipc_message_macros.h" | 3315 #include "ipc/ipc_message_macros.h" |
| 3312 | 3316 |
| 3313 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 3317 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |