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

Issue 1867493003: remove FetchContext::getCachePolicy() (Closed)

Created:
4 years, 8 months ago by Takashi Toyoshima
Modified:
3 years, 9 months ago
Reviewers:
kinuko, Nate Chapin, yhirano
CC:
chromium-reviews, nasko+codewatch_chromium.org, dcheng, apavlov+blink_chromium.org, kinuko+watch, cbentzel+watch_chromium.org, jam, dglazkov+blink, caseq+blink_chromium.org, darin-cc_chromium.org, gavinp+loader_chromium.org, devtools-reviews_chromium.org, loading-reviews_chromium.org, blink-reviews-api_chromium.org, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, Yoav Weiss, lushnikov+blink_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, Nate Chapin, tyoshino+watch_chromium.org, mlamouri+watch-blink_chromium.org, pfeldman+blink_chromium.org, mkwst+moarreviews-renderer_chromium.org, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

remove FetchContext::getCachePolicy() CachePolicy represents per-frame memory cache policy, and used to determine WebCachePolicy for resourceRequestCachePolicy in FrameFetchContext. Since the last caller of getCachePolicy() is only in FrameFetchContext, remove the virtual method completely, and replace it with some anonymous functions. BUG=602900 Review-Url: https://codereview.chromium.org/1867493003 Cr-Commit-Position: refs/heads/master@{#458708} Committed: https://chromium.googlesource.com/chromium/src/+/fa78cf3a4331be2113c320020e10d1223127c125

Patch Set 1 #

Patch Set 2 : diff from 1858533002 #

Patch Set 3 : again #

Patch Set 4 : update #

Patch Set 5 : . #

Patch Set 6 : try #

Patch Set 7 : build fix #

Patch Set 8 : rebase #

Patch Set 9 : rebase #

Patch Set 10 : plan b #

Patch Set 11 : plan c #

Patch Set 12 : remove intentional behavior changes from this CL #

Patch Set 13 : one more #

Patch Set 14 : move determineFrameWCP outof class #

Total comments: 10

Patch Set 15 : review #33 #

Total comments: 8

Patch Set 16 : review #35 #

Patch Set 17 : review #43 #

Patch Set 18 : git merge master #

Total comments: 6

Patch Set 19 : review #45 #

Total comments: 2

Patch Set 20 : review #51 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -141 lines) Patch
M third_party/WebKit/Source/core/loader/FrameFetchContext.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +117 lines, -94 lines 0 comments Download
D third_party/WebKit/Source/platform/loader/fetch/CachePolicy.h View 1 2 1 chunk +0 lines, -40 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/FetchContext.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/FetchContext.cpp View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 58 (38 generated)
Takashi Toyoshima
Nate: this change will follow https://codereview.chromium.org/1858533002
4 years, 8 months ago (2016-04-06 10:34:18 UTC) #3
Nate Chapin
It's a bit confusing to have the same enum mean different things in different contexts. ...
4 years, 8 months ago (2016-04-07 21:15:09 UTC) #4
Takashi Toyoshima
PTAL patch set 14
3 years, 9 months ago (2017-03-07 05:49:34 UTC) #30
Nate Chapin
Awesome! Is there any reason to consider unwinding the dependency on the parent frame first ...
3 years, 9 months ago (2017-03-09 20:02:47 UTC) #33
Takashi Toyoshima
In this CL, I'm trying to exclude logical changes as much as possible, and I ...
3 years, 9 months ago (2017-03-13 11:54:30 UTC) #34
yhirano
description: s/anonymous functions/functions in an unnamed namespace/ https://codereview.chromium.org/1867493003/diff/280001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (left): https://codereview.chromium.org/1867493003/diff/280001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#oldcode392 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:392: if (m_documentLoader->getRequest().httpMethod() ...
3 years, 9 months ago (2017-03-14 08:34:36 UTC) #35
kinuko
I like this change. Would it be possible to have some unit tests for this?
3 years, 9 months ago (2017-03-14 11:38:18 UTC) #37
Takashi Toyoshima
https://codereview.chromium.org/1867493003/diff/280001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (left): https://codereview.chromium.org/1867493003/diff/280001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#oldcode392 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:392: if (m_documentLoader->getRequest().httpMethod() == "POST") { We do not need ...
3 years, 9 months ago (2017-03-15 03:13:51 UTC) #40
Takashi Toyoshima
kinuko: We already had some unit tests in FrameFetchContextTest.MainResource and WebFrameTest. Also some browser tests ...
3 years, 9 months ago (2017-03-15 03:31:19 UTC) #41
kinuko
On 2017/03/15 03:31:19, Takashi Toyoshima wrote: > kinuko: We already had some unit tests in ...
3 years, 9 months ago (2017-03-15 03:56:14 UTC) #42
yhirano
https://codereview.chromium.org/1867493003/diff/280001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/1867493003/diff/280001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode234 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:234: case FrameLoadTypeInitialHistoryLoad: On 2017/03/15 03:13:51, Takashi Toyoshima wrote: > ...
3 years, 9 months ago (2017-03-15 05:26:20 UTC) #43
Takashi Toyoshima
https://codereview.chromium.org/1867493003/diff/280001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/1867493003/diff/280001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode234 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:234: case FrameLoadTypeInitialHistoryLoad: On 2017/03/15 05:26:20, yhirano wrote: > On ...
3 years, 9 months ago (2017-03-15 08:27:23 UTC) #44
yhirano
https://codereview.chromium.org/1867493003/diff/340001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/1867493003/diff/340001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode235 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:235: case FrameLoadTypeInitialInChildFrame: (resourceType == kIsMainResource && (requestType == kIsConditional ...
3 years, 9 months ago (2017-03-17 12:55:51 UTC) #45
Takashi Toyoshima
new patch set was uploaded, but let me see if bots are happy with this. ...
3 years, 9 months ago (2017-03-22 07:15:20 UTC) #46
yhirano
lgtm
3 years, 9 months ago (2017-03-22 07:17:31 UTC) #49
kinuko
https://codereview.chromium.org/1867493003/diff/360001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): https://codereview.chromium.org/1867493003/diff/360001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode245 third_party/WebKit/Source/core/loader/FrameFetchContext.cpp:245: // keep legacy logic as is for a while. ...
3 years, 9 months ago (2017-03-22 08:09:44 UTC) #50
kinuko
On 2017/03/22 08:09:44, kinuko wrote: > https://codereview.chromium.org/1867493003/diff/360001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp > File third_party/WebKit/Source/core/loader/FrameFetchContext.cpp (right): > > https://codereview.chromium.org/1867493003/diff/360001/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp#newcode245 > ...
3 years, 9 months ago (2017-03-22 08:10:02 UTC) #51
Takashi Toyoshima
I will submit the last patch set. Nate, I think you agreed the direction of ...
3 years, 9 months ago (2017-03-22 08:52:26 UTC) #52
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/1867493003/380001
3 years, 9 months ago (2017-03-22 08:53:21 UTC) #55
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 10:30:39 UTC) #58
Message was sent while issue was closed.
Committed patchset #20 (id:380001) as
https://chromium.googlesource.com/chromium/src/+/fa78cf3a4331be2113c320020e10...

Powered by Google App Engine
This is Rietveld 408576698