| 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" | |
| 10 | 9 |
| 11 namespace IPC { | 10 namespace IPC { |
| 12 | 11 |
| 13 void ParamTraits<scoped_refptr<net::HttpResponseHeaders> >::Write( | 12 void ParamTraits<scoped_refptr<net::HttpResponseHeaders> >::Write( |
| 14 Message* m, const param_type& p) { | 13 Message* m, const param_type& p) { |
| 15 WriteParam(m, p.get() != NULL); | 14 WriteParam(m, p.get() != NULL); |
| 16 if (p.get()) { | 15 if (p.get()) { |
| 17 // Do not disclose Set-Cookie headers over IPC. | 16 // Do not disclose Set-Cookie headers over IPC. |
| 18 p->Persist(m, net::HttpResponseHeaders::PERSIST_SANS_COOKIES); | 17 p->Persist(m, net::HttpResponseHeaders::PERSIST_SANS_COOKIES); |
| 19 } | 18 } |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 (*r)->set_identifier(identifier); | 289 (*r)->set_identifier(identifier); |
| 291 return true; | 290 return true; |
| 292 } | 291 } |
| 293 | 292 |
| 294 void ParamTraits<scoped_refptr<webkit_glue::ResourceRequestBody> >::Log( | 293 void ParamTraits<scoped_refptr<webkit_glue::ResourceRequestBody> >::Log( |
| 295 const param_type& p, std::string* l) { | 294 const param_type& p, std::string* l) { |
| 296 l->append("<webkit_glue::ResourceRequestBody>"); | 295 l->append("<webkit_glue::ResourceRequestBody>"); |
| 297 } | 296 } |
| 298 | 297 |
| 299 } // namespace IPC | 298 } // namespace IPC |
| OLD | NEW |