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/quic/quic_spdy_compressor.h

Issue 14651009: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix integer constant is too large for 'unsigned long' type Created 7 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/quic/quic_session_test.cc ('k') | net/quic/quic_spdy_compressor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_spdy_compressor.h
diff --git a/net/quic/quic_spdy_compressor.h b/net/quic/quic_spdy_compressor.h
new file mode 100644
index 0000000000000000000000000000000000000000..c88c47eae7eedcf996510d38d7e77dc4e4ff0135
--- /dev/null
+++ b/net/quic/quic_spdy_compressor.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2013 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_QUIC_QUIC_SPDY_COMPRESSOR_H_
+#define NET_QUIC_QUIC_SPDY_COMPRESSOR_H_
+
+#include <string>
+
+#include "net/base/net_export.h"
+#include "net/quic/quic_protocol.h"
+#include "net/spdy/spdy_framer.h"
+
+namespace net {
+
+// Handles the compression of request/response headers blocks. The
+// serialized format is:
+// uint32 - Header ID
+// uint32 - Compressed header length
+// ... - Compressed data
+//
+class NET_EXPORT_PRIVATE QuicSpdyCompressor {
+ public:
+ QuicSpdyCompressor();
+ ~QuicSpdyCompressor();
+
+ std::string CompressHeaders(const SpdyHeaderBlock& headers);
+
+ private:
+ SpdyFramer spdy_framer_;
+ QuicHeaderId header_sequence_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(QuicSpdyCompressor);
+};
+
+} // namespace net
+
+#endif // NET_QUIC_QUIC_SPDY_COMPRESSOR_H_
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/quic_spdy_compressor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698