OLD | NEW |
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 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1330 template <> | 1330 template <> |
1331 struct ParamTraits<ResourceResponseHead> { | 1331 struct ParamTraits<ResourceResponseHead> { |
1332 typedef ResourceResponseHead param_type; | 1332 typedef ResourceResponseHead param_type; |
1333 static void Write(Message* m, const param_type& p) { | 1333 static void Write(Message* m, const param_type& p) { |
1334 ParamTraits<webkit_glue::ResourceLoaderBridge::ResponseInfo>::Write(m, p); | 1334 ParamTraits<webkit_glue::ResourceLoaderBridge::ResponseInfo>::Write(m, p); |
1335 WriteParam(m, p.status); | 1335 WriteParam(m, p.status); |
1336 WriteParam(m, p.filter_policy); | 1336 WriteParam(m, p.filter_policy); |
1337 } | 1337 } |
1338 static bool Read(const Message* m, void** iter, param_type* r) { | 1338 static bool Read(const Message* m, void** iter, param_type* r) { |
1339 return | 1339 return |
1340 ParamTraits<webkit_glue::ResourceLoaderBridge::ResponseInfo>::Read(m, iter
, r) && | 1340 ParamTraits<webkit_glue::ResourceLoaderBridge::ResponseInfo>::Read(m, |
| 1341 iter, |
| 1342 r) && |
1341 ReadParam(m, iter, &r->status) && | 1343 ReadParam(m, iter, &r->status) && |
1342 ReadParam(m, iter, &r->filter_policy); | 1344 ReadParam(m, iter, &r->filter_policy); |
1343 } | 1345 } |
1344 static void Log(const param_type& p, std::wstring* l) { | 1346 static void Log(const param_type& p, std::wstring* l) { |
1345 // log more? | 1347 // log more? |
1346 ParamTraits<webkit_glue::ResourceLoaderBridge::ResponseInfo>::Log(p, l); | 1348 ParamTraits<webkit_glue::ResourceLoaderBridge::ResponseInfo>::Log(p, l); |
1347 } | 1349 } |
1348 }; | 1350 }; |
1349 | 1351 |
1350 template <> | 1352 template <> |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1747 }; | 1749 }; |
1748 | 1750 |
1749 | 1751 |
1750 } // namespace IPC | 1752 } // namespace IPC |
1751 | 1753 |
1752 | 1754 |
1753 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 1755 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
1754 #include "chrome/common/ipc_message_macros.h" | 1756 #include "chrome/common/ipc_message_macros.h" |
1755 | 1757 |
1756 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 1758 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |