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/spdy/spdy_header_block.h" | 5 #include "net/spdy/spdy_header_block.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <ios> | 8 #include <ios> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" |
13 #include "base/values.h" | 14 #include "base/values.h" |
14 #include "net/http/http_log_util.h" | 15 #include "net/http/http_log_util.h" |
15 | 16 |
16 using base::StringPiece; | 17 using base::StringPiece; |
17 using std::dec; | 18 using std::dec; |
18 using std::hex; | 19 using std::hex; |
19 using std::max; | 20 using std::max; |
20 using std::min; | 21 using std::min; |
21 using std::string; | 22 using std::string; |
22 | 23 |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 if (!it.value().GetAsString(&value)) { | 261 if (!it.value().GetAsString(&value)) { |
261 headers->clear(); | 262 headers->clear(); |
262 return false; | 263 return false; |
263 } | 264 } |
264 (*headers)[it.key()] = value; | 265 (*headers)[it.key()] = value; |
265 } | 266 } |
266 return true; | 267 return true; |
267 } | 268 } |
268 | 269 |
269 } // namespace net | 270 } // namespace net |
OLD | NEW |