OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_HPACK_STATIC_TABLE_H_ | 5 #ifndef NET_SPDY_HPACK_STATIC_TABLE_H_ |
6 #define NET_SPDY_HPACK_STATIC_TABLE_H_ | 6 #define NET_SPDY_HPACK_STATIC_TABLE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
| 10 #include "net/base/net_export.h" |
10 #include "net/spdy/hpack/hpack_header_table.h" | 11 #include "net/spdy/hpack/hpack_header_table.h" |
11 | 12 |
12 namespace net { | 13 namespace net { |
13 | 14 |
14 struct HpackStaticEntry; | 15 struct HpackStaticEntry; |
15 | 16 |
16 // HpackStaticTable provides |static_entries_| and |static_index_| for HPACK | 17 // HpackStaticTable provides |static_entries_| and |static_index_| for HPACK |
17 // encoding and decoding contexts. Once initialized, an instance is read only | 18 // encoding and decoding contexts. Once initialized, an instance is read only |
18 // and may be accessed only through its const interface. Such an instance may | 19 // and may be accessed only through its const interface. Such an instance may |
19 // be shared accross multiple HPACK contexts. | 20 // be shared accross multiple HPACK contexts. |
(...skipping 23 matching lines...) Expand all Loading... |
43 | 44 |
44 private: | 45 private: |
45 HpackHeaderTable::EntryTable static_entries_; | 46 HpackHeaderTable::EntryTable static_entries_; |
46 HpackHeaderTable::UnorderedEntrySet static_index_; | 47 HpackHeaderTable::UnorderedEntrySet static_index_; |
47 HpackHeaderTable::NameToEntryMap static_name_index_; | 48 HpackHeaderTable::NameToEntryMap static_name_index_; |
48 }; | 49 }; |
49 | 50 |
50 } // namespace net | 51 } // namespace net |
51 | 52 |
52 #endif // NET_SPDY_HPACK_STATIC_TABLE_H_ | 53 #endif // NET_SPDY_HPACK_STATIC_TABLE_H_ |
OLD | NEW |