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 <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <utility> | 10 #include <utility> |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 SpdyHeaderBlock::ValueProxy::ValueProxy( | 83 SpdyHeaderBlock::ValueProxy::ValueProxy( |
84 SpdyHeaderBlock::MapType* block, | 84 SpdyHeaderBlock::MapType* block, |
85 SpdyHeaderBlock::Storage* storage, | 85 SpdyHeaderBlock::Storage* storage, |
86 SpdyHeaderBlock::MapType::iterator lookup_result, | 86 SpdyHeaderBlock::MapType::iterator lookup_result, |
87 const StringPiece key) | 87 const StringPiece key) |
88 : block_(block), | 88 : block_(block), |
89 storage_(storage), | 89 storage_(storage), |
90 lookup_result_(lookup_result), | 90 lookup_result_(lookup_result), |
91 key_(key), | 91 key_(key), |
92 valid_(true) { | 92 valid_(true) { |
93 DVLOG(1) << "Constructing ValueProxy with key: " << key; | |
94 } | 93 } |
95 | 94 |
96 SpdyHeaderBlock::ValueProxy::ValueProxy(ValueProxy&& other) | 95 SpdyHeaderBlock::ValueProxy::ValueProxy(ValueProxy&& other) |
97 : block_(other.block_), | 96 : block_(other.block_), |
98 storage_(other.storage_), | 97 storage_(other.storage_), |
99 lookup_result_(other.lookup_result_), | 98 lookup_result_(other.lookup_result_), |
100 key_(other.key_), | 99 key_(other.key_), |
101 valid_(true) { | 100 valid_(true) { |
102 other.valid_ = false; | 101 other.valid_ = false; |
103 } | 102 } |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 if (!it.value().GetAsString(&value)) { | 287 if (!it.value().GetAsString(&value)) { |
289 headers->clear(); | 288 headers->clear(); |
290 return false; | 289 return false; |
291 } | 290 } |
292 (*headers)[it.key()] = value; | 291 (*headers)[it.key()] = value; |
293 } | 292 } |
294 return true; | 293 return true; |
295 } | 294 } |
296 | 295 |
297 } // namespace net | 296 } // namespace net |
OLD | NEW |