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

Unified Diff: net/spdy/header_coalescer.h

Issue 1961573002: Avoids the "re-encode HPACK as SPDY3" step. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update new test Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/buffered_spdy_framer_unittest.cc ('k') | net/spdy/header_coalescer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/header_coalescer.h
diff --git a/net/spdy/header_coalescer.h b/net/spdy/header_coalescer.h
new file mode 100644
index 0000000000000000000000000000000000000000..e699622517d09d70ae8c474de6f0c07e60bc29d4
--- /dev/null
+++ b/net/spdy/header_coalescer.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2016 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_HEADER_COALESCER_H_
+#define NET_SPDY_HEADER_COALESCER_H_
+
+#include "net/base/net_export.h"
+#include "net/spdy/spdy_header_block.h"
+#include "net/spdy/spdy_headers_handler_interface.h"
+
+namespace net {
+
+class NET_EXPORT_PRIVATE HeaderCoalescer : public SpdyHeadersHandlerInterface {
+ public:
+ HeaderCoalescer() {}
+
+ void OnHeaderBlockStart() override {}
+
+ void OnHeader(base::StringPiece key, base::StringPiece value) override;
+
+ void OnHeaderBlockEnd(size_t uncompressed_header_bytes) override {}
+
+ const SpdyHeaderBlock& headers() const { return headers_; }
+ bool error_seen() const { return error_seen_; }
+
+ private:
+ SpdyHeaderBlock headers_;
+ bool error_seen_ = false;
+};
+
+} // namespace net
+
+#endif // NET_SPDY_HEADER_COALESCER_H_
« no previous file with comments | « net/spdy/buffered_spdy_framer_unittest.cc ('k') | net/spdy/header_coalescer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698