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 #include "net/spdy/hpack/hpack_constants.h" | 5 #include "net/spdy/core/hpack/hpack_constants.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
12 #include "net/spdy/hpack/hpack_huffman_table.h" | 12 #include "net/spdy/core/hpack/hpack_huffman_table.h" |
13 #include "net/spdy/hpack/hpack_static_table.h" | 13 #include "net/spdy/core/hpack/hpack_static_table.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 // SharedHpackHuffmanTable is a Singleton wrapping a HpackHuffmanTable | 19 // SharedHpackHuffmanTable is a Singleton wrapping a HpackHuffmanTable |
20 // instance initialized with |kHpackHuffmanCode|. | 20 // instance initialized with |kHpackHuffmanCode|. |
21 struct SharedHpackHuffmanTable { | 21 struct SharedHpackHuffmanTable { |
22 public: | 22 public: |
23 SharedHpackHuffmanTable() { | 23 SharedHpackHuffmanTable() { |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 | 406 |
407 const HpackHuffmanTable& ObtainHpackHuffmanTable() { | 407 const HpackHuffmanTable& ObtainHpackHuffmanTable() { |
408 return *SharedHpackHuffmanTable::GetInstance()->table; | 408 return *SharedHpackHuffmanTable::GetInstance()->table; |
409 } | 409 } |
410 | 410 |
411 const HpackStaticTable& ObtainHpackStaticTable() { | 411 const HpackStaticTable& ObtainHpackStaticTable() { |
412 return *SharedHpackStaticTable::GetInstance()->table; | 412 return *SharedHpackStaticTable::GetInstance()->table; |
413 } | 413 } |
414 | 414 |
415 } // namespace net | 415 } // namespace net |
OLD | NEW |