Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: net/spdy/hpack/hpack_static_table.h

Issue 2832973003: Split net/spdy into core and chromium subdirectories. (Closed)
Patch Set: Fix some more build rules. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/hpack/hpack_round_trip_test.cc ('k') | net/spdy/hpack/hpack_static_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack/hpack_static_table.h
diff --git a/net/spdy/hpack/hpack_static_table.h b/net/spdy/hpack/hpack_static_table.h
deleted file mode 100644
index 328ad2932f3e9e93dea12515b3176584b76c5288..0000000000000000000000000000000000000000
--- a/net/spdy/hpack/hpack_static_table.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_SPDY_HPACK_HPACK_STATIC_TABLE_H_
-#define NET_SPDY_HPACK_HPACK_STATIC_TABLE_H_
-
-#include <stddef.h>
-
-#include "net/base/net_export.h"
-#include "net/spdy/hpack/hpack_header_table.h"
-
-namespace net {
-
-struct HpackStaticEntry;
-
-// HpackStaticTable provides |static_entries_| and |static_index_| for HPACK
-// encoding and decoding contexts. Once initialized, an instance is read only
-// and may be accessed only through its const interface. Such an instance may
-// be shared accross multiple HPACK contexts.
-class NET_EXPORT_PRIVATE HpackStaticTable {
- public:
- HpackStaticTable();
- ~HpackStaticTable();
-
- // Prepares HpackStaticTable by filling up static_entries_ and static_index_
- // from an array of struct HpackStaticEntry. Must be called exactly once.
- void Initialize(const HpackStaticEntry* static_entry_table,
- size_t static_entry_count);
-
- // Returns whether Initialize() has been called.
- bool IsInitialized() const;
-
- // Accessors.
- const HpackHeaderTable::EntryTable& GetStaticEntries() const {
- return static_entries_;
- }
- const HpackHeaderTable::UnorderedEntrySet& GetStaticIndex() const {
- return static_index_;
- }
- const HpackHeaderTable::NameToEntryMap& GetStaticNameIndex() const {
- return static_name_index_;
- }
-
- // Returns the estimate of dynamically allocated memory in bytes.
- size_t EstimateMemoryUsage() const;
-
- private:
- HpackHeaderTable::EntryTable static_entries_;
- HpackHeaderTable::UnorderedEntrySet static_index_;
- HpackHeaderTable::NameToEntryMap static_name_index_;
-};
-
-} // namespace net
-
-#endif // NET_SPDY_HPACK_HPACK_STATIC_TABLE_H_
« no previous file with comments | « net/spdy/hpack/hpack_round_trip_test.cc ('k') | net/spdy/hpack/hpack_static_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698