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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/quic_spdy_compressor.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) 2013 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_QUIC_QUIC_SPDY_COMPRESSOR_H_
6 #define NET_QUIC_QUIC_SPDY_COMPRESSOR_H_
7
8 #include <string>
9
10 #include "net/base/net_export.h"
11 #include "net/quic/quic_protocol.h"
12 #include "net/spdy/spdy_framer.h"
13
14 namespace net {
15
16 // Handles the compression of request/response headers blocks. The
17 // serialized format is:
18 // uint32 - Header ID
19 // uint32 - Compressed header length
20 // ... - Compressed data
21 //
22 class NET_EXPORT_PRIVATE QuicSpdyCompressor {
23 public:
24 QuicSpdyCompressor();
25 ~QuicSpdyCompressor();
26
27 std::string CompressHeaders(const SpdyHeaderBlock& headers);
28
29 private:
30 SpdyFramer spdy_framer_;
31 QuicHeaderId header_sequence_id_;
32
33 DISALLOW_COPY_AND_ASSIGN(QuicSpdyCompressor);
34 };
35
36 } // namespace net
37
38 #endif // NET_QUIC_QUIC_SPDY_COMPRESSOR_H_
OLDNEW
« 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