| 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_util.h" | |
| 11 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 12 #include "base/strings/string_piece.h" | 11 #include "base/strings/string_piece.h" |
| 13 #include "googleurl/src/gurl.h" | 12 #include "base/strings/string_util.h" |
| 14 #include "net/spdy/spdy_frame_builder.h" | 13 #include "net/spdy/spdy_frame_builder.h" |
| 15 #include "net/spdy/spdy_framer.h" | 14 #include "net/spdy/spdy_framer.h" |
| 16 #include "net/spdy/spdy_protocol.h" | 15 #include "net/spdy/spdy_protocol.h" |
| 17 #include "net/tools/flip_server/balsa_headers.h" | 16 #include "net/tools/flip_server/balsa_headers.h" |
| 17 #include "url/gurl.h" |
| 18 | 18 |
| 19 using base::StringPiece; | 19 using base::StringPiece; |
| 20 using std::pair; | 20 using std::pair; |
| 21 using std::string; | 21 using std::string; |
| 22 | 22 |
| 23 namespace net { | 23 namespace net { |
| 24 namespace tools { | 24 namespace tools { |
| 25 | 25 |
| 26 const char* const kV3Host = ":host"; | 26 const char* const kV3Host = ":host"; |
| 27 const char* const kV3Path = ":path"; | 27 const char* const kV3Path = ":path"; |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 for (BlockIt it = header_block.begin(); it != header_block.end(); ++it) { | 257 for (BlockIt it = header_block.begin(); it != header_block.end(); ++it) { |
| 258 if (!IsSpecialSpdyHeader(it, request_headers)) { | 258 if (!IsSpecialSpdyHeader(it, request_headers)) { |
| 259 request_headers->AppendHeader(it->first, it->second); | 259 request_headers->AppendHeader(it->first, it->second); |
| 260 } | 260 } |
| 261 } | 261 } |
| 262 return true; | 262 return true; |
| 263 } | 263 } |
| 264 | 264 |
| 265 } // namespace tools | 265 } // namespace tools |
| 266 } // namespace net | 266 } // namespace net |
| OLD | NEW |