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 #include "webkit/glue/resource_loader_bridge.h" |
10 | 10 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 } | 131 } |
132 | 132 |
133 void ParamTraits<webkit_base::DataElement>::Log( | 133 void ParamTraits<webkit_base::DataElement>::Log( |
134 const param_type& p, std::string* l) { | 134 const param_type& p, std::string* l) { |
135 l->append("<webkit_base::DataElement>"); | 135 l->append("<webkit_base::DataElement>"); |
136 } | 136 } |
137 | 137 |
138 void ParamTraits<scoped_refptr<webkit_glue::ResourceDevToolsInfo> >::Write( | 138 void ParamTraits<scoped_refptr<webkit_glue::ResourceDevToolsInfo> >::Write( |
139 Message* m, const param_type& p) { | 139 Message* m, const param_type& p) { |
140 WriteParam(m, p.get() != NULL); | 140 WriteParam(m, p.get() != NULL); |
141 if (p.get()) { | 141 if (p) { |
142 WriteParam(m, p->http_status_code); | 142 WriteParam(m, p->http_status_code); |
143 WriteParam(m, p->http_status_text); | 143 WriteParam(m, p->http_status_text); |
144 WriteParam(m, p->request_headers); | 144 WriteParam(m, p->request_headers); |
145 WriteParam(m, p->response_headers); | 145 WriteParam(m, p->response_headers); |
146 WriteParam(m, p->request_headers_text); | 146 WriteParam(m, p->request_headers_text); |
147 WriteParam(m, p->response_headers_text); | 147 WriteParam(m, p->response_headers_text); |
148 } | 148 } |
149 } | 149 } |
150 | 150 |
151 bool ParamTraits<scoped_refptr<webkit_glue::ResourceDevToolsInfo> >::Read( | 151 bool ParamTraits<scoped_refptr<webkit_glue::ResourceDevToolsInfo> >::Read( |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 (*r)->set_identifier(identifier); | 290 (*r)->set_identifier(identifier); |
291 return true; | 291 return true; |
292 } | 292 } |
293 | 293 |
294 void ParamTraits<scoped_refptr<webkit_glue::ResourceRequestBody> >::Log( | 294 void ParamTraits<scoped_refptr<webkit_glue::ResourceRequestBody> >::Log( |
295 const param_type& p, std::string* l) { | 295 const param_type& p, std::string* l) { |
296 l->append("<webkit_glue::ResourceRequestBody>"); | 296 l->append("<webkit_glue::ResourceRequestBody>"); |
297 } | 297 } |
298 | 298 |
299 } // namespace IPC | 299 } // namespace IPC |
OLD | NEW |