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

Issue 1947263004: Introduces a new MHTML generation parameter specifying different behvaior for cache-control headers. (Closed)

Created:
4 years, 7 months ago by dewittj
Modified:
4 years, 7 months ago
CC:
dcheng, android-webview-reviews_chromium.org, asanka, blink-reviews, blink-reviews-api_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dewittj+watch_chromium.org, dglazkov+blink, dimich+watch_chromium.org, extensions-reviews_chromium.org, fgorski+watch_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-blink_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, petewil+watch_chromium.org, romax+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduces a new MHTML generation parameter specifying different behvaior for cache-control headers. BUG=609566 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/6dc5747a6c25cc8ea1d034503e9a33bcf5dd0009 Cr-Commit-Position: refs/heads/master@{#394013}

Patch Set 1 : #

Patch Set 2 : Work on compile. #

Total comments: 37

Patch Set 3 : Address Łukasz comments. #

Total comments: 2

Patch Set 4 : Now with const cache-control accessors. #

Total comments: 4

Patch Set 5 : Address nick@ comments. #

Patch Set 6 : Rebase onto origin/master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -56 lines) Patch
M android_webview/native/aw_contents.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc View 1 2 3 4 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/page_capture/page_capture_api.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/download/mhtml_generation_browsertest.cc View 1 2 3 4 5 chunks +55 lines, -9 lines 0 comments Download
M content/browser/download/mhtml_generation_manager.h View 1 2 3 4 4 chunks +3 lines, -4 lines 0 comments Download
M content/browser/download/mhtml_generation_manager.cc View 1 2 3 4 7 chunks +15 lines, -13 lines 0 comments Download
M content/browser/download/save_package.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M content/child/assert_matching_enums.cc View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
A content/public/common/mhtml_generation_params.h View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
A + content/public/common/mhtml_generation_params.cc View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 2 chunks +7 lines, -3 lines 0 comments Download
A content/test/data/nostore.html View 1 chunk +4 lines, -0 lines 0 comments Download
A content/test/data/nostore.html.mock-http-headers View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameSerializer.cpp View 1 2 3 2 chunks +19 lines, -4 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameSerializer.h View 1 2 3 chunks +6 lines, -3 lines 0 comments Download
A third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h View 1 2 1 chunk +24 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 53 (31 generated)
dewittj
łukasza: Here is a first pass at making the cache control filter work on the ...
4 years, 7 months ago (2016-05-12 00:47:43 UTC) #14
dewittj
łukasza: Here is a first pass at making the cache control filter work on the ...
4 years, 7 months ago (2016-05-12 00:47:43 UTC) #15
dewittj
+fgorski - would you mind reading this as a sanity check?
4 years, 7 months ago (2016-05-12 15:53:18 UTC) #17
Łukasz Anforowicz
Overall shape / direction looks good. I’ve left some comments, but nothing major. This CL ...
4 years, 7 months ago (2016-05-12 18:56:49 UTC) #22
dewittj
https://codereview.chromium.org/1947263004/diff/250001/content/browser/download/mhtml_generation_browsertest.cc File content/browser/download/mhtml_generation_browsertest.cc (right): https://codereview.chromium.org/1947263004/diff/250001/content/browser/download/mhtml_generation_browsertest.cc#newcode164 content/browser/download/mhtml_generation_browsertest.cc:164: // First, generate MHTML without specifying the new policy. ...
4 years, 7 months ago (2016-05-12 22:58:02 UTC) #23
Łukasz Anforowicz
lgtm. I hope that Blink owners can suggest how to improve or avoid header parsing. ...
4 years, 7 months ago (2016-05-12 23:56:27 UTC) #24
dewittj
Hi everyone, PTAL. michaelbai: android_webview/native/aw_contents.cc nick: content/browser/download/mhtml_generation_browsertest.cc content/browser/download/mhtml_generation_manager.cc content/browser/download/mhtml_generation_manager.h content/browser/download/save_package.cc content/browser/web_contents/web_contents_impl.cc content/browser/web_contents/web_contents_impl.h content/child/assert_matching_enums.cc content/public/browser/web_contents.h content/public/common/mhtml_generation.cc ...
4 years, 7 months ago (2016-05-13 16:08:21 UTC) #31
Devlin
extensions lgtm https://codereview.chromium.org/1947263004/diff/270001/content/public/common/mhtml_generation.h File content/public/common/mhtml_generation.h (right): https://codereview.chromium.org/1947263004/diff/270001/content/public/common/mhtml_generation.h#newcode45 content/public/common/mhtml_generation.h:45: #endif // CONTENT_PUBLIC_COMMON_MHTML_GENERATION__ nit: this should be ...
4 years, 7 months ago (2016-05-13 16:14:28 UTC) #32
dcheng
https://codereview.chromium.org/1947263004/diff/250001/third_party/WebKit/Source/web/WebFrameSerializer.cpp File third_party/WebKit/Source/web/WebFrameSerializer.cpp (right): https://codereview.chromium.org/1947263004/diff/250001/third_party/WebKit/Source/web/WebFrameSerializer.cpp#newcode149 third_party/WebKit/Source/web/WebFrameSerializer.cpp:149: response.httpHeaderField(pragmaHeader)).containsNoStore; On 2016/05/12 at 23:56:27, Łukasz Anforowicz wrote: > ...
4 years, 7 months ago (2016-05-13 17:48:34 UTC) #34
michaelbai
android_webview LGTM
4 years, 7 months ago (2016-05-13 17:51:29 UTC) #35
hiroshige
https://codereview.chromium.org/1947263004/diff/250001/third_party/WebKit/Source/web/WebFrameSerializer.cpp File third_party/WebKit/Source/web/WebFrameSerializer.cpp (right): https://codereview.chromium.org/1947263004/diff/250001/third_party/WebKit/Source/web/WebFrameSerializer.cpp#newcode149 third_party/WebKit/Source/web/WebFrameSerializer.cpp:149: response.httpHeaderField(pragmaHeader)).containsNoStore; On 2016/05/13 17:48:33, dcheng wrote: > On 2016/05/12 ...
4 years, 7 months ago (2016-05-13 18:01:52 UTC) #36
dewittj
Thanks for the advice! I made the cache control accessors const over in https://codereview.chromium.org/1980673002/ https://codereview.chromium.org/1947263004/diff/270001/content/public/common/mhtml_generation.h ...
4 years, 7 months ago (2016-05-13 19:43:48 UTC) #37
ncarter (slow)
https://codereview.chromium.org/1947263004/diff/290001/content/browser/download/mhtml_generation_manager.cc File content/browser/download/mhtml_generation_manager.cc (right): https://codereview.chromium.org/1947263004/diff/290001/content/browser/download/mhtml_generation_manager.cc#newcode92 content/browser/download/mhtml_generation_manager.cc:92: // Whether to use binary encoding while generating MHTML. ...
4 years, 7 months ago (2016-05-13 20:06:31 UTC) #38
dewittj
https://codereview.chromium.org/1947263004/diff/290001/content/browser/download/mhtml_generation_manager.cc File content/browser/download/mhtml_generation_manager.cc (right): https://codereview.chromium.org/1947263004/diff/290001/content/browser/download/mhtml_generation_manager.cc#newcode92 content/browser/download/mhtml_generation_manager.cc:92: // Whether to use binary encoding while generating MHTML. ...
4 years, 7 months ago (2016-05-13 20:33:13 UTC) #39
ncarter (slow)
lgtm
4 years, 7 months ago (2016-05-13 21:15:49 UTC) #40
dewittj
dcheng: ping?
4 years, 7 months ago (2016-05-16 16:20:18 UTC) #41
dcheng
It feels weird to have generateMHTMLHeader doing the policy check. At the same time, I ...
4 years, 7 months ago (2016-05-16 17:36:14 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1947263004/330001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1947263004/330001
4 years, 7 months ago (2016-05-16 17:46:04 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/222535)
4 years, 7 months ago (2016-05-16 23:46:22 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1947263004/330001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1947263004/330001
4 years, 7 months ago (2016-05-16 23:48:52 UTC) #49
commit-bot: I haz the power
Committed patchset #6 (id:330001)
4 years, 7 months ago (2016-05-17 01:48:59 UTC) #51
commit-bot: I haz the power
4 years, 7 months ago (2016-05-17 01:50:22 UTC) #53
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6dc5747a6c25cc8ea1d034503e9a33bcf5dd0009
Cr-Commit-Position: refs/heads/master@{#394013}

Powered by Google App Engine
This is Rietveld 408576698