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

Issue 2368433002: Add net::SdchSourceStream and net::SdchPolicyDelegate (Closed)

Created:
4 years, 3 months ago by xunjieli
Modified:
4 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add net::SdchSourceStream and net::SdchPolicyDelegate This CL adds a SdchSourceStream which implements FilterSourceStream to do sdch decoding. This CL additionally adds a SdchPolicyDelegate which will be the glue for URLRequestHttpJob and SdchSourceStream. This is a part of the effort to convert net::Filter into a pull-based interface. See the linked bug for more details. BUG=474859 Committed: https://crrev.com/ab5a1f3c40b48b2a0498e6469f9f8d676a728994 Cr-Commit-Position: refs/heads/master@{#426803}

Patch Set 1 : Base CL 1662763002 #

Patch Set 2 : synced to 89ff2d42ad349d0b70d3e73787a069245e131d48 #

Patch Set 3 : tidy up tests #

Total comments: 37

Patch Set 4 : Address Comments #

Patch Set 5 : fix meta refresh #

Total comments: 48

Patch Set 6 : Address Comments #

Patch Set 7 : Rebased to fix compile error #

Total comments: 3

Patch Set 8 : Address Randy comments to add delegate test and UMA #

Patch Set 9 : Make SdchPolicyDelegate owned by SdchSourceStream #

Total comments: 5

Patch Set 10 : fix a unit test (synced to 1f4ebc806dbf7110dd999ff20e1dfd279685f336) #

Patch Set 11 : Make URLRequestHttpJob call URLRequestJob::DestroySourceStream() #

Patch Set 12 : fix compile error #

Total comments: 42

Patch Set 13 : Address Randy's comments #

Total comments: 4

Patch Set 14 : address comments #

Patch Set 15 : Fix histograms #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1834 lines, -3 lines) Patch
M net/base/sdch_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
M net/base/sdch_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +9 lines, -0 lines 0 comments Download
M net/filter/filter_source_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
A net/filter/sdch_policy_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +102 lines, -0 lines 0 comments Download
A net/filter/sdch_policy_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +453 lines, -0 lines 0 comments Download
A net/filter/sdch_policy_delegate_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +344 lines, -0 lines 0 comments Download
A net/filter/sdch_source_stream.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +147 lines, -0 lines 0 comments Download
A net/filter/sdch_source_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +192 lines, -0 lines 0 comments Download
A net/filter/sdch_source_stream_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +546 lines, -0 lines 0 comments Download
M net/filter/source_stream_type_list.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -1 line 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -0 lines 0 comments Download
M net/url_request/url_request_http_job.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 103 (76 generated)
xunjieli
Hi Randy, I am sending this out while the Gzip one is still in review. ...
4 years, 3 months ago (2016-09-23 19:17:55 UTC) #9
Randy Smith (Not in Mondays)
First set of comments. Mostly nits and suggestions; I don't think I found any bugs, ...
4 years, 2 months ago (2016-09-27 20:09:14 UTC) #17
xunjieli
Thanks for the review! PTAL. https://codereview.chromium.org/2368433002/diff/80001/net/filter/sdch_policy_delegate.cc File net/filter/sdch_policy_delegate.cc (right): https://codereview.chromium.org/2368433002/diff/80001/net/filter/sdch_policy_delegate.cc#newcode54 net/filter/sdch_policy_delegate.cc:54: // needs to issue ...
4 years, 2 months ago (2016-09-30 15:32:18 UTC) #19
Randy Smith (Not in Mondays)
Sorry about taking so long on this. I think we're getting pretty close, though; 1-2 ...
4 years, 2 months ago (2016-10-04 20:06:30 UTC) #28
xunjieli
Thanks a lot for the review! PTAL. https://codereview.chromium.org/2368433002/diff/140001/net/filter/sdch_policy_delegate.cc File net/filter/sdch_policy_delegate.cc (right): https://codereview.chromium.org/2368433002/diff/140001/net/filter/sdch_policy_delegate.cc#newcode22 net/filter/sdch_policy_delegate.cc:22: SdchPolicyDelegate::SdchPolicyDelegate(std::unique_ptr<Context> context) ...
4 years, 2 months ago (2016-10-05 13:44:57 UTC) #30
Randy Smith (Not in Mondays)
Helen, one big issue I noticed (sorry for not noticing it earlier) is the lack ...
4 years, 2 months ago (2016-10-07 18:46:26 UTC) #39
xunjieli
Thanks for the reviews! I didn't realize the missing UMAs. I agree it's very important ...
4 years, 2 months ago (2016-10-10 19:31:28 UTC) #43
xunjieli
Hi Randy, thanks for the suggestion to change ownership of SdchPolicyDelegate. There's only one slight ...
4 years, 2 months ago (2016-10-12 13:27:12 UTC) #46
Randy Smith (Not in Mondays)
https://codereview.chromium.org/2368433002/diff/260001/net/filter/sdch_policy_delegate.cc File net/filter/sdch_policy_delegate.cc (right): https://codereview.chromium.org/2368433002/diff/260001/net/filter/sdch_policy_delegate.cc#newcode295 net/filter/sdch_policy_delegate.cc:295: // TODO(xunjieli): Do we need to call URLRequestHttpJob::RecordPacketStats On ...
4 years, 2 months ago (2016-10-12 20:41:44 UTC) #55
Randy Smith (Not in Mondays)
https://codereview.chromium.org/2368433002/diff/260001/net/filter/sdch_policy_delegate.cc File net/filter/sdch_policy_delegate.cc (right): https://codereview.chromium.org/2368433002/diff/260001/net/filter/sdch_policy_delegate.cc#newcode295 net/filter/sdch_policy_delegate.cc:295: // TODO(xunjieli): Do we need to call URLRequestHttpJob::RecordPacketStats On ...
4 years, 2 months ago (2016-10-12 20:42:18 UTC) #56
mmenke
On 2016/10/12 20:42:18, Randy Smith - Not in Mondays wrote: > https://codereview.chromium.org/2368433002/diff/260001/net/filter/sdch_policy_delegate.cc > File net/filter/sdch_policy_delegate.cc ...
4 years, 2 months ago (2016-10-12 20:43:55 UTC) #57
xunjieli
https://codereview.chromium.org/2368433002/diff/260001/net/filter/sdch_policy_delegate.cc File net/filter/sdch_policy_delegate.cc (right): https://codereview.chromium.org/2368433002/diff/260001/net/filter/sdch_policy_delegate.cc#newcode295 net/filter/sdch_policy_delegate.cc:295: // TODO(xunjieli): Do we need to call URLRequestHttpJob::RecordPacketStats On ...
4 years, 2 months ago (2016-10-12 21:04:33 UTC) #58
Randy Smith (Not in Mondays)
On 2016/10/12 21:04:33, xunjieli wrote: > https://codereview.chromium.org/2368433002/diff/260001/net/filter/sdch_policy_delegate.cc > File net/filter/sdch_policy_delegate.cc (right): > > https://codereview.chromium.org/2368433002/diff/260001/net/filter/sdch_policy_delegate.cc#newcode295 > ...
4 years, 2 months ago (2016-10-13 15:25:14 UTC) #59
xunjieli
SGTM. I will port the logic. will update this thread once that is ready. On ...
4 years, 2 months ago (2016-10-13 15:30:28 UTC) #60
xunjieli
Thanks for the review! PTAL at #PS11. https://codereview.chromium.org/2368433002/diff/260001/net/filter/sdch_policy_delegate.cc File net/filter/sdch_policy_delegate.cc (right): https://codereview.chromium.org/2368433002/diff/260001/net/filter/sdch_policy_delegate.cc#newcode295 net/filter/sdch_policy_delegate.cc:295: // TODO(xunjieli): ...
4 years, 2 months ago (2016-10-13 17:46:37 UTC) #61
Randy Smith (Not in Mondays)
Not surprisingly, a major textual change leads to more comments. Sorry :-J. These are mostly ...
4 years, 2 months ago (2016-10-13 22:05:26 UTC) #70
xunjieli
Thanks for the review! I have addressed all except the one about eliminating SdchPolicyDelegate::OnStreamDestroyed(). PTAL. ...
4 years, 2 months ago (2016-10-14 18:23:35 UTC) #78
Randy Smith (Not in Mondays)
LGTM. Thanks for your patience! https://codereview.chromium.org/2368433002/diff/320001/net/filter/sdch_policy_delegate.cc File net/filter/sdch_policy_delegate.cc (right): https://codereview.chromium.org/2368433002/diff/320001/net/filter/sdch_policy_delegate.cc#newcode272 net/filter/sdch_policy_delegate.cc:272: void SdchPolicyDelegate::OnStreamDestroyed( On 2016/10/14 ...
4 years, 2 months ago (2016-10-19 19:49:42 UTC) #81
xunjieli
Thanks for the review! I should thank YOU for your patience and for bearing with ...
4 years, 2 months ago (2016-10-20 00:09:14 UTC) #82
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2368433002/370001
4 years, 2 months ago (2016-10-20 00:09:58 UTC) #85
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/91108)
4 years, 2 months ago (2016-10-20 00:30:03 UTC) #87
xunjieli
jwd@: Please review changes in tools/metrics/histograms/histograms.xml Thanks!
4 years, 2 months ago (2016-10-20 01:52:59 UTC) #91
xunjieli
jwd@: A friendly ping? Could you take a look at tools/metrics/histograms/histograms.xml? Thanks!
4 years, 2 months ago (2016-10-21 11:38:27 UTC) #96
jwd
lgtm
4 years, 2 months ago (2016-10-21 14:28:32 UTC) #97
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2368433002/430001
4 years, 2 months ago (2016-10-21 14:53:32 UTC) #100
commit-bot: I haz the power
Committed patchset #15 (id:430001)
4 years, 2 months ago (2016-10-21 16:03:29 UTC) #101
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 16:35:00 UTC) #103
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/ab5a1f3c40b48b2a0498e6469f9f8d676a728994
Cr-Commit-Position: refs/heads/master@{#426803}

Powered by Google App Engine
This is Rietveld 408576698