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

Issue 1843663005: Change bool ignoreCache to WebFrameLoadType (Closed)

Created:
4 years, 8 months ago by Takashi Toyoshima
Modified:
4 years, 8 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dcheng, dglazkov+blink, loading-reviews_chromium.org, mlamouri+watch-blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change bool ignoreCache to WebFrameLoadType Blink provided cache control flags, IgnoringCacheData and BypassingCache. This is confusing, but when ignoreCache is true, IgnoringCacheData isn't used, but BypassingCache is used. In a previous change, IgnoringCacheData is renamed to ValidatingCacheData. This patch also changes bool ignoreCache to use WebFrameLoadType becase enum is more readable than bool, and the WebFrameLoadType has been already used in RemoteFrameClient::reload(). In this change, I do not touch Inspector related code but separately start discussion with Inspector team. BUG=599364 Committed: https://crrev.com/fe0fa1ace83ae2bc6170ac740d4dfa52460dfeab Cr-Commit-Position: refs/heads/master@{#384860}

Patch Set 1 #

Patch Set 2 : enum version #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -57 lines) Patch
M chrome/renderer/net/net_error_helper.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 4 chunks +9 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameTypes.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/History.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Location.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoadRequest.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/loader/NavigationScheduler.cpp View 1 2 5 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/plugins/DOMPluginArray.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/AssertMatchingEnums.cpp View 1 3 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/RemoteFrameClientImpl.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
A third_party/WebKit/public/web/WebClientRedirectPolicy.h View 1 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrame.h View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/public/web/WebRemoteFrameClient.h View 1 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
Takashi Toyoshima
Can you review this too?
4 years, 8 months ago (2016-03-31 09:38:31 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843663005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843663005/1
4 years, 8 months ago (2016-03-31 09:41:14 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-31 10:56:40 UTC) #6
jochen (gone - plz use gerrit)
if you touch those anyways, can we replace the bool with an enum please?
4 years, 8 months ago (2016-03-31 15:28:20 UTC) #8
Takashi Toyoshima
Agreed. I'm rewriting this change to reuse WebFrameLoadType to specify reload type because RemoteFrameClientImpl already ...
4 years, 8 months ago (2016-04-01 06:37:24 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843663005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843663005/20001
4 years, 8 months ago (2016-04-01 10:26:54 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-01 11:45:22 UTC) #14
Takashi Toyoshima
PTAL
4 years, 8 months ago (2016-04-01 11:46:44 UTC) #15
jochen (gone - plz use gerrit)
lgtm
4 years, 8 months ago (2016-04-03 11:18:33 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843663005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843663005/20001
4 years, 8 months ago (2016-04-04 03:26:46 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/13107) ios_rel_device_gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-04-04 03:28:58 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843663005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843663005/40001
4 years, 8 months ago (2016-04-04 06:06:23 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-04 07:17:43 UTC) #25
commit-bot: I haz the power
4 years, 8 months ago (2016-04-04 07:19:03 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fe0fa1ace83ae2bc6170ac740d4dfa52460dfeab
Cr-Commit-Position: refs/heads/master@{#384860}

Powered by Google App Engine
This is Rietveld 408576698