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

Unified Diff: net/spdy/http2_frame_decoder_adapter.h

Issue 2558243002: Add Http2FrameDecoderAdapter. (Closed)
Patch Set: Created 4 years 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/net.gypi ('k') | net/spdy/http2_frame_decoder_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/http2_frame_decoder_adapter.h
diff --git a/net/spdy/http2_frame_decoder_adapter.h b/net/spdy/http2_frame_decoder_adapter.h
new file mode 100644
index 0000000000000000000000000000000000000000..bd1e19be92da3a53fad8f63f57293adf3116a750
--- /dev/null
+++ b/net/spdy/http2_frame_decoder_adapter.h
@@ -0,0 +1,24 @@
+// Copyright 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_HTTP2_FRAME_DECODER_ADAPTER_H_
+#define NET_SPDY_HTTP2_FRAME_DECODER_ADAPTER_H_
+
+// Provides a SpdyFramerDecoderAdapter that uses Http2FrameDecoder for decoding
+// HTTP/2 frames. The adapter does not directly decode HPACK, but instead calls
+// SpdyFramer::GetHpackDecoderForAdapter() to get the decoder to be used.
+
+#include <memory>
+
+#include "net/spdy/spdy_framer.h"
+#include "net/spdy/spdy_framer_decoder_adapter.h"
+
+namespace net {
+
+std::unique_ptr<SpdyFramerDecoderAdapter> CreateHttp2FrameDecoderAdapter(
+ SpdyFramer* outer_framer);
+
+} // namespace net
+
+#endif // NET_SPDY_HTTP2_FRAME_DECODER_ADAPTER_H_
« no previous file with comments | « net/net.gypi ('k') | net/spdy/http2_frame_decoder_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698