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

Side by Side Diff: net/spdy/core/hpack/hpack_entry.h

Issue 2839373002: Implement SPDY_EXPORT and SPDY_EXPORT_PRIVATE macros. (Closed)
Patch Set: Rebase: manually resolve trivial merge conflicts. Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « net/spdy/core/hpack/hpack_encoder.h ('k') | net/spdy/core/hpack/hpack_header_table.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_CORE_HPACK_HPACK_ENTRY_H_ 5 #ifndef NET_SPDY_CORE_HPACK_HPACK_ENTRY_H_
6 #define NET_SPDY_CORE_HPACK_HPACK_ENTRY_H_ 6 #define NET_SPDY_CORE_HPACK_HPACK_ENTRY_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "net/base/net_export.h" 11 #include "net/spdy/platform/api/spdy_export.h"
12 #include "net/spdy/platform/api/spdy_string.h" 12 #include "net/spdy/platform/api/spdy_string.h"
13 #include "net/spdy/platform/api/spdy_string_piece.h" 13 #include "net/spdy/platform/api/spdy_string_piece.h"
14 14
15 // All section references below are to 15 // All section references below are to
16 // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-08 16 // http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-08
17 17
18 namespace net { 18 namespace net {
19 19
20 // A structure for an entry in the static table (3.3.1) 20 // A structure for an entry in the static table (3.3.1)
21 // and the header table (3.3.2). 21 // and the header table (3.3.2).
22 class NET_EXPORT_PRIVATE HpackEntry { 22 class SPDY_EXPORT_PRIVATE HpackEntry {
23 public: 23 public:
24 // The constant amount added to name().size() and value().size() to 24 // The constant amount added to name().size() and value().size() to
25 // get the size of an HpackEntry as defined in 5.1. 25 // get the size of an HpackEntry as defined in 5.1.
26 static const size_t kSizeOverhead; 26 static const size_t kSizeOverhead;
27 27
28 // Creates an entry. Preconditions: 28 // Creates an entry. Preconditions:
29 // - |is_static| captures whether this entry is a member of the static 29 // - |is_static| captures whether this entry is a member of the static
30 // or dynamic header table. 30 // or dynamic header table.
31 // - |insertion_index| is this entry's index in the total set of entries ever 31 // - |insertion_index| is this entry's index in the total set of entries ever
32 // inserted into the header table (including static entries). 32 // inserted into the header table (including static entries).
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 EntryType type_; 101 EntryType type_;
102 102
103 // For HpackHeaderTable::DebugVisitorInterface 103 // For HpackHeaderTable::DebugVisitorInterface
104 int64_t time_added_; 104 int64_t time_added_;
105 }; 105 };
106 106
107 } // namespace net 107 } // namespace net
108 108
109 #endif // NET_SPDY_CORE_HPACK_HPACK_ENTRY_H_ 109 #endif // NET_SPDY_CORE_HPACK_HPACK_ENTRY_H_
OLDNEW
« no previous file with comments | « net/spdy/core/hpack/hpack_encoder.h ('k') | net/spdy/core/hpack/hpack_header_table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698