| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/common/resource_messages.h" | 5 #include "content/common/resource_messages.h" |
| 6 | 6 |
| 7 #include "net/base/load_timing_info.h" | 7 #include "net/base/load_timing_info.h" |
| 8 #include "net/http/http_response_headers.h" | 8 #include "net/http/http_response_headers.h" |
| 9 #include "webkit/glue/resource_loader_bridge.h" |
| 9 | 10 |
| 10 namespace IPC { | 11 namespace IPC { |
| 11 | 12 |
| 12 void ParamTraits<scoped_refptr<net::HttpResponseHeaders> >::Write( | 13 void ParamTraits<scoped_refptr<net::HttpResponseHeaders> >::Write( |
| 13 Message* m, const param_type& p) { | 14 Message* m, const param_type& p) { |
| 14 WriteParam(m, p.get() != NULL); | 15 WriteParam(m, p.get() != NULL); |
| 15 if (p.get()) { | 16 if (p.get()) { |
| 16 // Do not disclose Set-Cookie headers over IPC. | 17 // Do not disclose Set-Cookie headers over IPC. |
| 17 p->Persist(m, net::HttpResponseHeaders::PERSIST_SANS_COOKIES); | 18 p->Persist(m, net::HttpResponseHeaders::PERSIST_SANS_COOKIES); |
| 18 } | 19 } |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 (*r)->set_identifier(identifier); | 290 (*r)->set_identifier(identifier); |
| 290 return true; | 291 return true; |
| 291 } | 292 } |
| 292 | 293 |
| 293 void ParamTraits<scoped_refptr<webkit_glue::ResourceRequestBody> >::Log( | 294 void ParamTraits<scoped_refptr<webkit_glue::ResourceRequestBody> >::Log( |
| 294 const param_type& p, std::string* l) { | 295 const param_type& p, std::string* l) { |
| 295 l->append("<webkit_glue::ResourceRequestBody>"); | 296 l->append("<webkit_glue::ResourceRequestBody>"); |
| 296 } | 297 } |
| 297 | 298 |
| 298 } // namespace IPC | 299 } // namespace IPC |
| OLD | NEW |