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

Issue 1767653002: Implement content_decoder_tool.cc to decode offline any resources. (Closed)

Created:
4 years, 9 months ago by gabadie
Modified:
4 years, 9 months ago
Reviewers:
pasko, gavinp
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement content_decoder_tool.cc to decode offline any resources. Sandwich is going to use the HTMLPreloadScanner to get all the resources to prefetch instead of using the Clovis' dependency graph. However resources in the chrome HTTP cache or in the WPR archive are stored as transport layer content, implying that they might be stored using a compression algorithm, according to the Content-Encoding response header. This tools enable us to decode any resources using the same very code path used in chrome, implying that we will be able to uncompressed absolutely all resources that chrome can and is advertising in its Accept-Encoding request header. BUG=582080 Committed: https://crrev.com/4dc1dc6668a87620574dd43392046c3691914da2 Cr-Commit-Position: refs/heads/master@{#382599}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Addresses pasko's comments. #

Total comments: 1

Patch Set 3 : Addressing comments I have miss in the previous revision. #

Total comments: 6

Patch Set 4 : Addresses gavinp's nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -0 lines) Patch
M net/net.gyp View 1 1 chunk +12 lines, -0 lines 0 comments Download
A net/tools/content_decoder_tool/content_decoder_tool.cc View 1 2 3 1 chunk +91 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
gabadie
PTAL.
4 years, 9 months ago (2016-03-04 15:34:18 UTC) #2
pasko
top-level comment: good catch! we'd indeed need to decompress to run HTMLPreloadScanner. What is the ...
4 years, 9 months ago (2016-03-04 16:46:31 UTC) #3
gabadie
On 2016/03/04 16:46:31, pasko wrote: > top-level comment: good catch! we'd indeed need to decompress ...
4 years, 9 months ago (2016-03-04 17:36:05 UTC) #4
pasko
I will follow up with review shortly. This is just following the discussion that is ...
4 years, 9 months ago (2016-03-16 10:27:35 UTC) #7
pasko
overall looks good, thanks!! I have only some variable naming and documentation-related suggestions. https://codereview.chromium.org/1767653002/diff/1/net/tools/contentdecodertool/contentdecodertool.cc File ...
4 years, 9 months ago (2016-03-16 12:05:54 UTC) #8
gabadie
Thanks Egor for your review. I have addressed all your comments, including renaming the tool ...
4 years, 9 months ago (2016-03-16 18:09:17 UTC) #11
pasko
lgtm with a small change thank you! https://codereview.chromium.org/1767653002/diff/1/net/tools/contentdecodertool/contentdecodertool.cc File net/tools/contentdecodertool/contentdecodertool.cc (right): https://codereview.chromium.org/1767653002/diff/1/net/tools/contentdecodertool/contentdecodertool.cc#newcode18 net/tools/contentdecodertool/contentdecodertool.cc:18: std::cout << ...
4 years, 9 months ago (2016-03-16 18:30:59 UTC) #12
gabadie
So sorry, I have completely missed these comments. I have just uploaded a new CL ...
4 years, 9 months ago (2016-03-17 18:13:17 UTC) #13
pasko
still lgtm
4 years, 9 months ago (2016-03-17 19:41:13 UTC) #14
gavinp
lgtm. https://codereview.chromium.org/1767653002/diff/40001/net/tools/content_decoder_tool/content_decoder_tool.cc File net/tools/content_decoder_tool/content_decoder_tool.cc (right): https://codereview.chromium.org/1767653002/diff/40001/net/tools/content_decoder_tool/content_decoder_tool.cc#newcode23 net/tools/content_decoder_tool/content_decoder_tool.cc:23: << "Content-Encoding HTTP response header's value splitted by ...
4 years, 9 months ago (2016-03-22 14:56:59 UTC) #15
gabadie
Thanks Gavin! I have addressed your nits in the newly uploaded revision. Landing. https://codereview.chromium.org/1767653002/diff/40001/net/tools/content_decoder_tool/content_decoder_tool.cc File ...
4 years, 9 months ago (2016-03-22 16:20:43 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767653002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767653002/60001
4 years, 9 months ago (2016-03-22 16:21:04 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-22 17:39:26 UTC) #21
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/4dc1dc6668a87620574dd43392046c3691914da2 Cr-Commit-Position: refs/heads/master@{#382599}
4 years, 9 months ago (2016-03-22 17:40:55 UTC) #23
dgozman
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/1827483002/ by dgozman@chromium.org. ...
4 years, 9 months ago (2016-03-22 17:56:35 UTC) #24
Nico
On 2016/03/22 17:56:35, dgozman wrote: > A revert of this CL (patchset #4 id:60001) has ...
4 years, 9 months ago (2016-03-24 13:48:03 UTC) #25
Nico
On 2016/03/24 13:48:03, Nico (away until Mon Mar 27) wrote: > On 2016/03/22 17:56:35, dgozman ...
4 years, 9 months ago (2016-03-24 13:50:26 UTC) #26
hans
On 2016/03/24 13:50:26, Nico (away until Mon Mar 27) wrote: > On 2016/03/24 13:48:03, Nico ...
4 years, 9 months ago (2016-03-24 23:49:55 UTC) #27
gabadie
4 years, 9 months ago (2016-03-25 16:17:38 UTC) #28
Message was sent while issue was closed.
On 2016/03/24 13:50:26, Nico (away until Mon Mar 27) wrote:
> On 2016/03/24 13:48:03, Nico (away until Mon Mar 27) wrote:
> > On 2016/03/22 17:56:35, dgozman wrote:
> > > A revert of this CL (patchset #4 id:60001) has been created in
> > > https://codereview.chromium.org/1827483002/ by
mailto:dgozman@chromium.org.
> > > 
> > > The reason for reverting is: Broke iOS build:
> > >
https://build.chromium.org/p/chromium.mac/builders/iOS_Device/builds/44002.
> > 
> > Don't you have to add this to a gn file too?
> 
> Also I believe this doesn't build, see
> https://llvm.org/bugs/show_bug.cgi?id=27051
> 
> Consider reverting, and then reland once you have did .gn changes and have
green
> try bots with that.

I have just made https://codereview.chromium.org/1838443002/

Powered by Google App Engine
This is Rietveld 408576698