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 "net/tools/quic/spdy_utils.h" | 5 #include "net/tools/quic/spdy_utils.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 } | 319 } |
320 request_headers->SetResponseVersion(version_it->second); | 320 request_headers->SetResponseVersion(version_it->second); |
321 for (BlockIt it = header_block.begin(); it != header_block.end(); ++it) { | 321 for (BlockIt it = header_block.begin(); it != header_block.end(); ++it) { |
322 if (!IsSpecialSpdyHeader(it, request_headers)) { | 322 if (!IsSpecialSpdyHeader(it, request_headers)) { |
323 request_headers->AppendHeader(it->first, it->second); | 323 request_headers->AppendHeader(it->first, it->second); |
324 } | 324 } |
325 } | 325 } |
326 return true; | 326 return true; |
327 } | 327 } |
328 | 328 |
| 329 // static |
| 330 void SpdyUtils::SpdyHeadersToResponseHeaders( |
| 331 const SpdyHeaderBlock& block, |
| 332 BalsaHeaders* headers) { |
| 333 FillBalsaResponseHeaders(block, headers); |
| 334 } |
| 335 |
329 } // namespace tools | 336 } // namespace tools |
330 } // namespace net | 337 } // namespace net |
OLD | NEW |