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 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1312 typedef webkit_glue::ResourceLoaderBridge::ResponseInfo param_type; | 1312 typedef webkit_glue::ResourceLoaderBridge::ResponseInfo param_type; |
1313 static void Write(Message* m, const param_type& p) { | 1313 static void Write(Message* m, const param_type& p) { |
1314 WriteParam(m, p.request_time); | 1314 WriteParam(m, p.request_time); |
1315 WriteParam(m, p.response_time); | 1315 WriteParam(m, p.response_time); |
1316 WriteParam(m, p.headers); | 1316 WriteParam(m, p.headers); |
1317 WriteParam(m, p.mime_type); | 1317 WriteParam(m, p.mime_type); |
1318 WriteParam(m, p.charset); | 1318 WriteParam(m, p.charset); |
1319 WriteParam(m, p.security_info); | 1319 WriteParam(m, p.security_info); |
1320 WriteParam(m, p.content_length); | 1320 WriteParam(m, p.content_length); |
1321 WriteParam(m, p.app_cache_id); | 1321 WriteParam(m, p.app_cache_id); |
1322 WriteParam(m, p.response_data_file); | |
1323 } | 1322 } |
1324 static bool Read(const Message* m, void** iter, param_type* r) { | 1323 static bool Read(const Message* m, void** iter, param_type* r) { |
1325 return | 1324 return |
1326 ReadParam(m, iter, &r->request_time) && | 1325 ReadParam(m, iter, &r->request_time) && |
1327 ReadParam(m, iter, &r->response_time) && | 1326 ReadParam(m, iter, &r->response_time) && |
1328 ReadParam(m, iter, &r->headers) && | 1327 ReadParam(m, iter, &r->headers) && |
1329 ReadParam(m, iter, &r->mime_type) && | 1328 ReadParam(m, iter, &r->mime_type) && |
1330 ReadParam(m, iter, &r->charset) && | 1329 ReadParam(m, iter, &r->charset) && |
1331 ReadParam(m, iter, &r->security_info) && | 1330 ReadParam(m, iter, &r->security_info) && |
1332 ReadParam(m, iter, &r->content_length) && | 1331 ReadParam(m, iter, &r->content_length) && |
1333 ReadParam(m, iter, &r->app_cache_id) && | 1332 ReadParam(m, iter, &r->app_cache_id); |
1334 ReadParam(m, iter, &r->response_data_file); | |
1335 } | 1333 } |
1336 static void Log(const param_type& p, std::wstring* l) { | 1334 static void Log(const param_type& p, std::wstring* l) { |
1337 l->append(L"("); | 1335 l->append(L"("); |
1338 LogParam(p.request_time, l); | 1336 LogParam(p.request_time, l); |
1339 l->append(L", "); | 1337 l->append(L", "); |
1340 LogParam(p.response_time, l); | 1338 LogParam(p.response_time, l); |
1341 l->append(L", "); | 1339 l->append(L", "); |
1342 LogParam(p.headers, l); | 1340 LogParam(p.headers, l); |
1343 l->append(L", "); | 1341 l->append(L", "); |
1344 LogParam(p.mime_type, l); | 1342 LogParam(p.mime_type, l); |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1884 } | 1882 } |
1885 }; | 1883 }; |
1886 | 1884 |
1887 } // namespace IPC | 1885 } // namespace IPC |
1888 | 1886 |
1889 | 1887 |
1890 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 1888 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
1891 #include "chrome/common/ipc_message_macros.h" | 1889 #include "chrome/common/ipc_message_macros.h" |
1892 | 1890 |
1893 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 1891 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |