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

Side by Side Diff: net/spdy/header_coalescer.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 unified diff | Download patch
« no previous file with comments | « net/spdy/fuzzing/hpack_fuzz_util_test.cc ('k') | net/spdy/header_coalescer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_SPDY_HEADER_COALESCER_H_
6 #define NET_SPDY_HEADER_COALESCER_H_
7
8 #include "net/base/net_export.h"
9 #include "net/spdy/platform/api/spdy_string_piece.h"
10 #include "net/spdy/spdy_header_block.h"
11 #include "net/spdy/spdy_headers_handler_interface.h"
12
13 namespace net {
14
15 class NET_EXPORT_PRIVATE HeaderCoalescer : public SpdyHeadersHandlerInterface {
16 public:
17 HeaderCoalescer() {}
18
19 void OnHeaderBlockStart() override {}
20
21 void OnHeader(SpdyStringPiece key, SpdyStringPiece value) override;
22
23 void OnHeaderBlockEnd(size_t uncompressed_header_bytes) override {}
24 void OnHeaderBlockEnd(size_t uncompressed_header_bytes,
25 size_t compressed_header_bytes) override {}
26
27 SpdyHeaderBlock release_headers();
28 bool error_seen() const { return error_seen_; }
29
30 // Returns the estimate of dynamically allocated memory in bytes.
31 size_t EstimateMemoryUsage() const;
32
33 private:
34 SpdyHeaderBlock headers_;
35 bool headers_valid_ = true;
36 size_t header_list_size_ = 0;
37 bool error_seen_ = false;
38 bool regular_header_seen_ = false;
39 };
40
41 } // namespace net
42
43 #endif // NET_SPDY_HEADER_COALESCER_H_
OLDNEW
« no previous file with comments | « net/spdy/fuzzing/hpack_fuzz_util_test.cc ('k') | net/spdy/header_coalescer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698