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 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1376 | 1376 |
1377 if (p.status() == URLRequestStatus::FAILED) { | 1377 if (p.status() == URLRequestStatus::FAILED) { |
1378 l->append(L", "); | 1378 l->append(L", "); |
1379 LogParam(p.os_error(), l); | 1379 LogParam(p.os_error(), l); |
1380 l->append(L")"); | 1380 l->append(L")"); |
1381 } | 1381 } |
1382 } | 1382 } |
1383 }; | 1383 }; |
1384 | 1384 |
1385 template <> | 1385 template <> |
1386 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders>> { | 1386 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > { |
1387 typedef scoped_refptr<net::HttpResponseHeaders> param_type; | 1387 typedef scoped_refptr<net::HttpResponseHeaders> param_type; |
1388 static void Write(Message* m, const param_type& p) { | 1388 static void Write(Message* m, const param_type& p) { |
1389 WriteParam(m, p.get() != NULL); | 1389 WriteParam(m, p.get() != NULL); |
1390 if (p) { | 1390 if (p) { |
1391 // Do not disclose Set-Cookie headers over IPC. | 1391 // Do not disclose Set-Cookie headers over IPC. |
1392 p->Persist(m, net::HttpResponseHeaders::PERSIST_SANS_COOKIES); | 1392 p->Persist(m, net::HttpResponseHeaders::PERSIST_SANS_COOKIES); |
1393 } | 1393 } |
1394 } | 1394 } |
1395 static bool Read(const Message* m, void** iter, param_type* r) { | 1395 static bool Read(const Message* m, void** iter, param_type* r) { |
1396 bool has_object; | 1396 bool has_object; |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1705 ReadParam(m, iter, &p->available_rect); | 1705 ReadParam(m, iter, &p->available_rect); |
1706 } | 1706 } |
1707 static void Log(const param_type& p, std::wstring* l) { | 1707 static void Log(const param_type& p, std::wstring* l) { |
1708 l->append(L"<webkit_glue::ScreenInfo>"); | 1708 l->append(L"<webkit_glue::ScreenInfo>"); |
1709 } | 1709 } |
1710 }; | 1710 }; |
1711 | 1711 |
1712 } // namespace IPC | 1712 } // namespace IPC |
1713 | 1713 |
1714 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 1714 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |