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

Issue 1156473002: Refactor FrameLoader loading interface (Closed)

Created:
5 years, 7 months ago by clamy
Modified:
5 years, 6 months ago
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, dcheng, devtools-reviews_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, Nate Chapin, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, mlamouri+watch-blink_chromium.org, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org, tyoshino+watch_chromium.org, yurys+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Refactor FrameLoader loading interface This CLs removes the reload and loadHistoryItem functions of FrameLoader in favor of a unified load function. It also updates the public interface of WebFrame to generate WebURLRequests for history navigations and reloads. The end goal is to be able to only have a single function for loading in WebFrame as well. BUG=490713 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196753

Patch Set 1 #

Patch Set 2 : With unittests #

Patch Set 3 : Rebase + cleanup #

Patch Set 4 : Rebase + compile errors #

Patch Set 5 : Fixed issue with inital history navigation in child frames #

Total comments: 27

Patch Set 6 : Rebase #

Patch Set 7 : Addressed comments #

Total comments: 18

Patch Set 8 : Rebase #

Patch Set 9 : Addressed comments #

Total comments: 8

Patch Set 10 : Rebase #

Patch Set 11 : Addressed Nate's comments #

Total comments: 1

Patch Set 12 : Rebase #

Patch Set 13 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+327 lines, -151 lines) Patch
M Source/core/frame/Frame.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/frame/FrameTypes.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -5 lines 0 comments Download
M Source/core/frame/History.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/LocalFrame.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +12 lines, -5 lines 0 comments Download
M Source/core/frame/Location.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/RemoteFrame.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/RemoteFrame.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/frame/RemoteFrameClient.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/inspector/InspectorPageAgent.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorResourceContentLoader.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/loader/FrameLoader.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +22 lines, -17 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +104 lines, -77 lines 0 comments Download
M Source/core/loader/NavigationScheduler.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -1 line 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/plugins/DOMPluginArray.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M Source/web/AssertMatchingEnums.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -0 lines 0 comments Download
M Source/web/RemoteFrameClientImpl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M Source/web/RemoteFrameClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M Source/web/WebLocalFrameImpl.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +67 lines, -23 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +11 lines, -2 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -1 line 0 comments Download
M Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +20 lines, -5 lines 0 comments Download
A public/web/WebFrameLoadType.h View 1 2 3 4 5 6 7 8 1 chunk +28 lines, -0 lines 0 comments Download
M public/web/WebLocalFrame.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (9 generated)
clamy
@avi, creis, japhet: PTAL. This follows the design doc I sent you a few weeks ...
5 years, 6 months ago (2015-05-27 14:44:04 UTC) #2
dcheng
https://codereview.chromium.org/1156473002/diff/80001/public/web/WebFrame.h File public/web/WebFrame.h (right): https://codereview.chromium.org/1156473002/diff/80001/public/web/WebFrame.h#newcode355 public/web/WebFrame.h:355: enum WebFrameLoadType { enum class for new enums please. ...
5 years, 6 months ago (2015-05-27 16:26:30 UTC) #4
Nate Chapin
https://codereview.chromium.org/1156473002/diff/80001/Source/core/frame/LocalFrame.cpp File Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/1156473002/diff/80001/Source/core/frame/LocalFrame.cpp#newcode261 Source/core/frame/LocalFrame.cpp:261: FrameLoadType loadType = reloadPolicy == NormalReload ? We should ...
5 years, 6 months ago (2015-05-27 16:54:34 UTC) #5
Avi (use Gerrit)
FYI, I don't have knowledge of Blink, so while this all looks plausible to me ...
5 years, 6 months ago (2015-05-27 18:13:40 UTC) #6
Charlie Reis
I'm concerned about the Chrome side of this patch (https://codereview.chromium.org/1157863005/), since it depends on things ...
5 years, 6 months ago (2015-05-27 23:36:37 UTC) #7
clamy
Thanks! https://codereview.chromium.org/1156473002/diff/80001/Source/core/frame/LocalFrame.cpp File Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/1156473002/diff/80001/Source/core/frame/LocalFrame.cpp#newcode261 Source/core/frame/LocalFrame.cpp:261: FrameLoadType loadType = reloadPolicy == NormalReload ? On ...
5 years, 6 months ago (2015-05-29 14:41:51 UTC) #9
clamy
@dcheng, creis, japhet: PTAL now that we agree on the chromium side patch.
5 years, 6 months ago (2015-06-02 16:48:24 UTC) #10
Charlie Reis
On 2015/06/02 16:48:24, clamy wrote: > @dcheng, creis, japhet: PTAL now that we agree on ...
5 years, 6 months ago (2015-06-02 17:10:10 UTC) #11
Nate Chapin
https://codereview.chromium.org/1156473002/diff/80001/Source/core/frame/LocalFrame.cpp File Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/1156473002/diff/80001/Source/core/frame/LocalFrame.cpp#newcode261 Source/core/frame/LocalFrame.cpp:261: FrameLoadType loadType = reloadPolicy == NormalReload ? On 2015/05/29 ...
5 years, 6 months ago (2015-06-02 17:19:35 UTC) #12
dcheng
https://codereview.chromium.org/1156473002/diff/140001/Source/core/loader/FrameLoader.h File Source/core/loader/FrameLoader.h (left): https://codereview.chromium.org/1156473002/diff/140001/Source/core/loader/FrameLoader.h#oldcode240 Source/core/loader/FrameLoader.h:240: visitor->trace(m_item); Why was this removed? This probably breaks Oilpan. ...
5 years, 6 months ago (2015-06-02 18:42:03 UTC) #13
clamy
Thanks! https://codereview.chromium.org/1156473002/diff/140001/Source/core/loader/FrameLoader.cpp File Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/1156473002/diff/140001/Source/core/loader/FrameLoader.cpp#newcode455 Source/core/loader/FrameLoader.cpp:455: if (m_provisionalItem && isBackForwardLoadType(m_loadType)) { On 2015/06/02 17:19:35, ...
5 years, 6 months ago (2015-06-03 14:39:15 UTC) #14
Nate Chapin
Almost there, just a couple of nitpick. Sorry for the slow turnaround. https://codereview.chromium.org/1156473002/diff/180001/Source/core/frame/LocalFrame.cpp File Source/core/frame/LocalFrame.cpp ...
5 years, 6 months ago (2015-06-04 23:23:10 UTC) #15
clamy
Thanks! @mkwst: PTAL at the changes in Source/modules https://codereview.chromium.org/1156473002/diff/180001/Source/core/frame/LocalFrame.cpp File Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/1156473002/diff/180001/Source/core/frame/LocalFrame.cpp#newcode260 Source/core/frame/LocalFrame.cpp:260: FrameLoadType ...
5 years, 6 months ago (2015-06-05 14:11:48 UTC) #17
Nate Chapin
LGTM https://codereview.chromium.org/1156473002/diff/220001/Source/core/frame/Frame.h File Source/core/frame/Frame.h (right): https://codereview.chromium.org/1156473002/diff/220001/Source/core/frame/Frame.h#newcode73 Source/core/frame/Frame.h:73: virtual void reload(FrameLoadType, ClientRedirectPolicy) = 0; if FrameLoadType ...
5 years, 6 months ago (2015-06-05 18:16:30 UTC) #18
clamy
@mkwst: friendly ping to look at Source/modules/plugins/DOMPluginArray.cpp :).
5 years, 6 months ago (2015-06-08 15:30:25 UTC) #19
Mike West
Source/modules LGTM. Sorry for the slow turnaround!
5 years, 6 months ago (2015-06-08 18:46:57 UTC) #20
clamy
Thanks!
5 years, 6 months ago (2015-06-08 19:06:52 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1156473002/240001
5 years, 6 months ago (2015-06-08 19:07:23 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/46822) mac_blink_rel on tryserver.blink (JOB_FAILED, ...
5 years, 6 months ago (2015-06-08 19:11:04 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1156473002/260001
5 years, 6 months ago (2015-06-09 09:46:56 UTC) #29
commit-bot: I haz the power
5 years, 6 months ago (2015-06-09 11:01:05 UTC) #30
Message was sent while issue was closed.
Committed patchset #13 (id:260001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196753

Powered by Google App Engine
This is Rietveld 408576698