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 #ifndef NET_SPDY_SPDY_HEADER_BLOCK_H_ | 5 #ifndef NET_SPDY_SPDY_HEADER_BLOCK_H_ |
6 #define NET_SPDY_SPDY_HEADER_BLOCK_H_ | 6 #define NET_SPDY_SPDY_HEADER_BLOCK_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
11 #include <map> | 11 #include <map> |
12 #include <memory> | 12 #include <memory> |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/strings/string_piece.h" | 16 #include "base/strings/string_piece.h" |
17 #include "net/base/linked_hash_map.h" | 17 #include "net/base/linked_hash_map.h" |
18 #include "net/base/net_export.h" | 18 #include "net/base/net_export.h" |
19 #include "net/log/net_log.h" | 19 #include "net/log/net_log.h" |
20 | 20 |
| 21 namespace base { |
| 22 class Value; |
| 23 } |
| 24 |
21 namespace net { | 25 namespace net { |
22 | 26 |
23 // Allows arg-dependent lookup to work for logging's operator<<. | 27 // Allows arg-dependent lookup to work for logging's operator<<. |
24 using ::operator<<; | 28 using ::operator<<; |
25 | 29 |
| 30 class NetLogCaptureMode; |
| 31 |
26 namespace test { | 32 namespace test { |
27 class StringPieceProxyPeer; | 33 class StringPieceProxyPeer; |
28 } | 34 } |
29 | 35 |
30 // This class provides a key-value map that can be used to store SPDY header | 36 // This class provides a key-value map that can be used to store SPDY header |
31 // names and values. This data structure preserves insertion order. | 37 // names and values. This data structure preserves insertion order. |
32 // | 38 // |
33 // Under the hood, this data structure uses large, contiguous blocks of memory | 39 // Under the hood, this data structure uses large, contiguous blocks of memory |
34 // to store names and values. Lookups may be performed with StringPiece keys, | 40 // to store names and values. Lookups may be performed with StringPiece keys, |
35 // and values are returned as StringPieces (via StringPieceProxy, below). | 41 // and values are returned as StringPieces (via StringPieceProxy, below). |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // to |headers|. |event_param| must have been created by | 178 // to |headers|. |event_param| must have been created by |
173 // SpdyHeaderBlockNetLogCallback. On failure, returns false and clears | 179 // SpdyHeaderBlockNetLogCallback. On failure, returns false and clears |
174 // |headers|. | 180 // |headers|. |
175 NET_EXPORT bool SpdyHeaderBlockFromNetLogParam( | 181 NET_EXPORT bool SpdyHeaderBlockFromNetLogParam( |
176 const base::Value* event_param, | 182 const base::Value* event_param, |
177 SpdyHeaderBlock* headers); | 183 SpdyHeaderBlock* headers); |
178 | 184 |
179 } // namespace net | 185 } // namespace net |
180 | 186 |
181 #endif // NET_SPDY_SPDY_HEADER_BLOCK_H_ | 187 #endif // NET_SPDY_SPDY_HEADER_BLOCK_H_ |
OLD | NEW |