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

Issue 1825263003: Blimp: add packet-level DEFLATE compression using zlib. (Closed)

Created:
4 years, 9 months ago by Kevin M
Modified:
4 years, 8 months ago
Reviewers:
agl, maniscalco, Wez
CC:
chromium-reviews, cbentzel+watch_chromium.org, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Blimp: add packet-level DEFLATE compression using zlib. Compresses the packets in the stream as length-prefixed DEFLATE blocks. Blocks are transmitted in a single, long-lived stream with a compression window that is retained across consecutive compression calls. * Create new classes: CompressedPacketReader and CompressedPacketWriter. * Integrate CompressedPacketReader/CompressedPacketWriter into application. * Make PacketReader resize its input GrowableIOBuffer as needed. * Add third_party/zlib DEP. R=wez@chromium.org,agl@chromium.org BUG=597145 Committed: https://crrev.com/38ad3ca2674316ec799b678a69fe3a7bfd5f0edf Cr-Commit-Position: refs/heads/master@{#384029}

Patch Set 1 #

Patch Set 2 : S'more comments about flushing blocks #

Patch Set 3 : Add zlib GN dep. #

Patch Set 4 : Move passing size as rv into separate CL. #

Patch Set 5 : Integrated CompressedPacketReader/Writer into application #

Total comments: 4

Patch Set 6 : Init ALL the zstream! #

Patch Set 7 : ditto for the reader #

Patch Set 8 : Return net::Error values for Compress()/Decompress() #

Total comments: 29

Patch Set 9 : wez feedback #

Patch Set 10 : wez feedback. #

Total comments: 39

Patch Set 11 : Wez feedback. #

Total comments: 3

Patch Set 12 : wez feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+596 lines, -33 lines) Patch
M blimp/net/BUILD.gn View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M blimp/net/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A blimp/net/compressed_packet_reader.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +64 lines, -0 lines 0 comments Download
A blimp/net/compressed_packet_reader.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +98 lines, -0 lines 0 comments Download
A blimp/net/compressed_packet_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +216 lines, -0 lines 0 comments Download
A blimp/net/compressed_packet_writer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +55 lines, -0 lines 0 comments Download
A blimp/net/compressed_packet_writer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +115 lines, -0 lines 0 comments Download
M blimp/net/stream_packet_reader.cc View 1 2 3 4 2 chunks +7 lines, -3 lines 0 comments Download
M blimp/net/stream_packet_reader_unittest.cc View 1 2 3 4 8 chunks +18 lines, -22 lines 0 comments Download
M blimp/net/stream_socket_connection.cc View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
M blimp/net/test_common.h View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M blimp/net/test_common.cc View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
Kevin M
4 years, 9 months ago (2016-03-23 01:23:45 UTC) #1
agl
LGTM for deps addition. (I'm on vacation so haven't looked in more detail, but I ...
4 years, 9 months ago (2016-03-23 05:21:10 UTC) #2
Kevin M
Moved PacketReader return value change to 1831833003.
4 years, 9 months ago (2016-03-24 17:59:23 UTC) #4
maniscalco
(drive-by question) https://codereview.chromium.org/1825263003/diff/80001/blimp/net/compressed_packet_writer.cc File blimp/net/compressed_packet_writer.cc (right): https://codereview.chromium.org/1825263003/diff/80001/blimp/net/compressed_packet_writer.cc#newcode35 blimp/net/compressed_packet_writer.cc:35: zlib_stream_.zalloc = 0; Is there a reason ...
4 years, 9 months ago (2016-03-25 22:23:17 UTC) #7
Kevin M
https://codereview.chromium.org/1825263003/diff/80001/blimp/net/compressed_packet_writer.cc File blimp/net/compressed_packet_writer.cc (right): https://codereview.chromium.org/1825263003/diff/80001/blimp/net/compressed_packet_writer.cc#newcode35 blimp/net/compressed_packet_writer.cc:35: zlib_stream_.zalloc = 0; On 2016/03/25 22:23:17, maniscalco wrote: > ...
4 years, 9 months ago (2016-03-25 22:51:41 UTC) #8
maniscalco
https://codereview.chromium.org/1825263003/diff/80001/blimp/net/compressed_packet_writer.cc File blimp/net/compressed_packet_writer.cc (right): https://codereview.chromium.org/1825263003/diff/80001/blimp/net/compressed_packet_writer.cc#newcode35 blimp/net/compressed_packet_writer.cc:35: zlib_stream_.zalloc = 0; On 2016/03/25 22:51:41, Kevin M wrote: ...
4 years, 9 months ago (2016-03-25 23:00:08 UTC) #9
Kevin M
https://codereview.chromium.org/1825263003/diff/80001/blimp/net/compressed_packet_writer.cc File blimp/net/compressed_packet_writer.cc (right): https://codereview.chromium.org/1825263003/diff/80001/blimp/net/compressed_packet_writer.cc#newcode35 blimp/net/compressed_packet_writer.cc:35: zlib_stream_.zalloc = 0; On 2016/03/25 23:00:08, maniscalco wrote: > ...
4 years, 9 months ago (2016-03-25 23:37:20 UTC) #10
Wez
Some initial comments on the reader side. https://codereview.chromium.org/1825263003/diff/140001/blimp/net/compressed_packet_reader.cc File blimp/net/compressed_packet_reader.cc (right): https://codereview.chromium.org/1825263003/diff/140001/blimp/net/compressed_packet_reader.cc#newcode31 blimp/net/compressed_packet_reader.cc:31: int err ...
4 years, 8 months ago (2016-03-29 00:45:40 UTC) #11
Kevin M
https://codereview.chromium.org/1825263003/diff/140001/blimp/net/compressed_packet_reader.cc File blimp/net/compressed_packet_reader.cc (right): https://codereview.chromium.org/1825263003/diff/140001/blimp/net/compressed_packet_reader.cc#newcode31 blimp/net/compressed_packet_reader.cc:31: int err = inflateInit2(&zlib_stream_, -MAX_WBITS); On 2016/03/29 00:45:39, Wez ...
4 years, 8 months ago (2016-03-29 01:25:55 UTC) #12
Kevin M
https://codereview.chromium.org/1825263003/diff/140001/blimp/net/compressed_packet_reader.cc File blimp/net/compressed_packet_reader.cc (right): https://codereview.chromium.org/1825263003/diff/140001/blimp/net/compressed_packet_reader.cc#newcode95 blimp/net/compressed_packet_reader.cc:95: if (zlib_stream_.avail_in > 0) { Done. Removed the payload ...
4 years, 8 months ago (2016-03-29 20:36:24 UTC) #13
Wez
https://codereview.chromium.org/1825263003/diff/180001/blimp/net/compressed_packet_reader.cc File blimp/net/compressed_packet_reader.cc (right): https://codereview.chromium.org/1825263003/diff/180001/blimp/net/compressed_packet_reader.cc#newcode81 blimp/net/compressed_packet_reader.cc:81: decompressed->RemainingCapacity() - zlib_stream_.avail_out; Maybe DCHECK that RemainingCapacity() > zlib_stream_.avail_out ...
4 years, 8 months ago (2016-03-29 21:38:38 UTC) #14
Kevin M
https://codereview.chromium.org/1825263003/diff/180001/blimp/net/compressed_packet_reader.cc File blimp/net/compressed_packet_reader.cc (right): https://codereview.chromium.org/1825263003/diff/180001/blimp/net/compressed_packet_reader.cc#newcode81 blimp/net/compressed_packet_reader.cc:81: decompressed->RemainingCapacity() - zlib_stream_.avail_out; On 2016/03/29 21:38:37, Wez wrote: > ...
4 years, 8 months ago (2016-03-29 23:48:24 UTC) #15
Wez
lgtm https://codereview.chromium.org/1825263003/diff/180001/blimp/net/compressed_packet_reader.h File blimp/net/compressed_packet_reader.h (right): https://codereview.chromium.org/1825263003/diff/180001/blimp/net/compressed_packet_reader.h#newcode54 blimp/net/compressed_packet_reader.h:54: z_stream zlib_stream_{}; On 2016/03/29 23:48:23, Kevin M wrote: ...
4 years, 8 months ago (2016-03-29 23:59:15 UTC) #16
Kevin M
Will land CL when I can verify these latest changes e2e on a client device. ...
4 years, 8 months ago (2016-03-30 00:26:33 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1825263003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1825263003/220001
4 years, 8 months ago (2016-03-30 17:39:23 UTC) #20
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 8 months ago (2016-03-30 18:30:21 UTC) #22
commit-bot: I haz the power
4 years, 8 months ago (2016-03-30 18:31:51 UTC) #24
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/38ad3ca2674316ec799b678a69fe3a7bfd5f0edf
Cr-Commit-Position: refs/heads/master@{#384029}

Powered by Google App Engine
This is Rietveld 408576698