| 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> |
| 9 |
| 8 #include "net/spdy/hpack/hpack_header_table.h" | 10 #include "net/spdy/hpack/hpack_header_table.h" |
| 9 | 11 |
| 10 namespace net { | 12 namespace net { |
| 11 | 13 |
| 12 struct HpackStaticEntry; | 14 struct HpackStaticEntry; |
| 13 | 15 |
| 14 // HpackStaticTable provides |static_entries_| and |static_index_| for HPACK | 16 // HpackStaticTable provides |static_entries_| and |static_index_| for HPACK |
| 15 // encoding and decoding contexts. Once initialized, an instance is read only | 17 // encoding and decoding contexts. Once initialized, an instance is read only |
| 16 // and may be accessed only through its const interface. Such an instance may | 18 // and may be accessed only through its const interface. Such an instance may |
| 17 // be shared accross multiple HPACK contexts. | 19 // be shared accross multiple HPACK contexts. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 37 } | 39 } |
| 38 | 40 |
| 39 private: | 41 private: |
| 40 HpackHeaderTable::EntryTable static_entries_; | 42 HpackHeaderTable::EntryTable static_entries_; |
| 41 HpackHeaderTable::OrderedEntrySet static_index_; | 43 HpackHeaderTable::OrderedEntrySet static_index_; |
| 42 }; | 44 }; |
| 43 | 45 |
| 44 } // namespace net | 46 } // namespace net |
| 45 | 47 |
| 46 #endif // NET_SPDY_HPACK_STATIC_TABLE_H_ | 48 #endif // NET_SPDY_HPACK_STATIC_TABLE_H_ |
| OLD | NEW |