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

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: Avoids the "re-encode HPACK as SPDY3" step. 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
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 {
Ryan Hamilton 2016/05/13 22:03:15 Is this class from the internal repository? It loo
dahollings 2016/05/16 22:00:17 This class is not from the internal repository-- w
Ryan Hamilton 2016/05/16 22:08:43 *nod* And since that traffics in BalsaHeaders, it'
+ 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_

Powered by Google App Engine
This is Rietveld 408576698