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

Issue 1858533002: Introduce WebCachePolicy to merge cache policy enums (Closed)

Created:
4 years, 8 months ago by Takashi Toyoshima
Modified:
4 years, 8 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dcheng, dglazkov+blink, jam, kinuko+watch, loading-reviews_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-blink_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce WebCachePolicy to merge cache policy enums - Replace blink::WebURLRequest::CachePolicy with blink::WebCachePolicy - Merge blink::ResourceRequestCachePolicy to blink::WebCachePolicy - Remove unnecessary cast between them - Replace CachePolicy* with CachePolicy in RenderFrameImpl BUG=599364 Committed: https://crrev.com/f3f7f688d56f5c9cf0be4c77c7052cec0419897f Cr-Commit-Position: refs/heads/master@{#386016}

Patch Set 1 #

Patch Set 2 : merge ResourceRequestCachePolicy #

Patch Set 3 : self review, minor fixes #

Total comments: 8

Patch Set 4 : comment indent fix #

Patch Set 5 : rebase #

Patch Set 6 : hiroshige review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -194 lines) Patch
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 10 chunks +12 lines, -9 lines 0 comments Download
M chrome/renderer/net/net_error_helper.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/child/web_url_request_util.cc View 1 2 3 4 2 chunks +7 lines, -5 lines 0 comments Download
M content/public/renderer/resource_fetcher.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/fetchers/multi_resolution_image_resource_fetcher.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/fetchers/resource_fetcher_impl.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/fetchers/resource_fetcher_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/history_controller.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/history_controller.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/image_downloader/image_downloader_impl.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/internal_document_state_data.h View 3 chunks +6 lines, -6 lines 0 comments Download
M content/renderer/internal_document_state_data.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 9 chunks +14 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/FetchContext.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/FetchContext.cpp View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.cpp View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorResourceAgent.cpp View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 3 chunks +24 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 2 3 4 2 chunks +10 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/loader/ImageLoader.cpp View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/NavigationScheduler.cpp View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/exported/WebURLRequest.cpp View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceRequest.h View 1 2 3 4 4 chunks +5 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceRequest.cpp View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceRequestTest.cpp View 1 4 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 3 chunks +4 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 14 chunks +16 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 2 chunks +5 lines, -10 lines 0 comments Download
A third_party/WebKit/public/platform/WebCachePolicy.h View 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebURLRequest.h View 1 2 3 4 2 chunks +3 lines, -12 lines 0 comments Download
M third_party/WebKit/public/web/WebFrame.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 3 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 30 (13 generated)
Takashi Toyoshima
Can you take a look? Actually, I want to merge one more enum, core/fetch/CachePolicy.h, but ...
4 years, 8 months ago (2016-04-04 08:02:00 UTC) #5
dcheng
+clamy, since there's a comment about removing these methods once RenderFrame only calls load(). https://codereview.chromium.org/1858533002/diff/40001/third_party/WebKit/public/web/WebFrame.h ...
4 years, 8 months ago (2016-04-04 08:17:11 UTC) #7
Takashi Toyoshima
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/public/web/WebLocalFrame.h&l=100 > // TODO(clamy): Remove the reload, reloadWithOverrideURL, loadHistoryItem > // loadRequest functions in WebFrame ...
4 years, 8 months ago (2016-04-04 11:15:34 UTC) #8
clamy
https://codereview.chromium.org/1858533002/diff/40001/third_party/WebKit/public/web/WebFrame.h File third_party/WebKit/public/web/WebFrame.h (right): https://codereview.chromium.org/1858533002/diff/40001/third_party/WebKit/public/web/WebFrame.h#newcode356 third_party/WebKit/public/web/WebFrame.h:356: WebCachePolicy = WebCachePolicy::UseProtocolCachePolicy) On 2016/04/04 08:17:10, dcheng wrote: > ...
4 years, 8 months ago (2016-04-04 12:51:06 UTC) #9
Takashi Toyoshima
Thanks clamy. I can make a separate CL to remove it. Nate: I will address ...
4 years, 8 months ago (2016-04-05 06:13:23 UTC) #10
Takashi Toyoshima
+hiroshige Nate seems to be besy for having many review requests, so can you take ...
4 years, 8 months ago (2016-04-07 03:21:48 UTC) #12
jochen (gone - plz use gerrit)
lgtm
4 years, 8 months ago (2016-04-07 03:35:51 UTC) #13
hiroshige
https://codereview.chromium.org/1858533002/diff/40001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (left): https://codereview.chromium.org/1858533002/diff/40001/chrome/renderer/chrome_content_renderer_client.cc#oldcode1148 chrome/renderer/chrome_content_renderer_client.cc:1148: // Check whether the request should be allowed. If ...
4 years, 8 months ago (2016-04-07 06:30:32 UTC) #14
Nate Chapin
lgtm
4 years, 8 months ago (2016-04-07 20:47:13 UTC) #15
Takashi Toyoshima
https://codereview.chromium.org/1858533002/diff/40001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (left): https://codereview.chromium.org/1858533002/diff/40001/chrome/renderer/chrome_content_renderer_client.cc#oldcode1148 chrome/renderer/chrome_content_renderer_client.cc:1148: // Check whether the request should be allowed. If ...
4 years, 8 months ago (2016-04-08 04:41:48 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1858533002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1858533002/80001
4 years, 8 months ago (2016-04-08 04:42:28 UTC) #19
hiroshige
https://codereview.chromium.org/1858533002/diff/40001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1858533002/diff/40001/content/renderer/render_frame_impl.cc#newcode5580 content/renderer/render_frame_impl.cc:5580: WebCachePolicy cache_policy) { On 2016/04/08 04:41:48, toyoshim wrote: > ...
4 years, 8 months ago (2016-04-08 05:50:40 UTC) #20
Takashi Toyoshima
https://codereview.chromium.org/1858533002/diff/40001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1858533002/diff/40001/content/renderer/render_frame_impl.cc#newcode5580 content/renderer/render_frame_impl.cc:5580: WebCachePolicy cache_policy) { Oops, I see. You are right. ...
4 years, 8 months ago (2016-04-08 06:12:08 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1858533002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1858533002/100001
4 years, 8 months ago (2016-04-08 06:25:12 UTC) #25
hiroshige
lgtm
4 years, 8 months ago (2016-04-08 07:44:56 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-08 07:48:06 UTC) #28
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 07:49:49 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f3f7f688d56f5c9cf0be4c77c7052cec0419897f
Cr-Commit-Position: refs/heads/master@{#386016}

Powered by Google App Engine
This is Rietveld 408576698