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

Issue 790383002: Remove NavigationAction (Closed)

Created:
6 years ago by Nate Chapin
Modified:
6 years ago
Reviewers:
dcheng
CC:
blink-reviews, dglazkov+blink, gavinp+loader_chromium.org, Nate Chapin, tyoshino+watch_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Remove NavigationAction It's not really a useful abstraction. Most of the data it stores should be transient (m_eventTimeStamp, m_policy) or is redundant (m_resourceRequest). However, m_type is still useful, so instead of storing a NavigationAction on DocumentLoader, store a NavigationType. The code that determines the NavigationPolcy and NavigationType lives in NavigationAction and is still necessary, so break that out into a couple of file-scope static helpers in FrameLoader. Also, rename FrameLoader::loadWithNavigationAction() to startLoad() and have it take a FrameLoadRequest& instead of 5 parameters that were just read off of a FrameLoadRequest. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187310

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -208 lines) Patch
M Source/core/core.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/loader/DocumentLoader.h View 1 3 chunks +6 lines, -7 lines 0 comments Download
M Source/core/loader/DocumentLoader.cpp View 1 4 chunks +3 lines, -3 lines 0 comments Download
M Source/core/loader/FrameLoader.h View 1 3 chunks +3 lines, -4 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 12 chunks +59 lines, -32 lines 1 comment Download
D Source/core/loader/NavigationAction.h View 1 chunk +0 lines, -63 lines 0 comments Download
D Source/core/loader/NavigationAction.cpp View 1 chunk +0 lines, -78 lines 0 comments Download
M Source/core/timing/Performance.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/timing/PerformanceNavigation.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/web/WebDataSourceImpl.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/WebDataSourceImpl.cpp View 1 chunk +1 line, -7 lines 0 comments Download
M Source/web/WebDocument.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M public/web/WebDataSource.h View 1 chunk +0 lines, -4 lines 0 comments Download
M public/web/WebFrameClient.h View 1 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
Nate Chapin
6 years ago (2014-12-12 23:28:41 UTC) #2
dcheng
lgtm https://codereview.chromium.org/790383002/diff/40001/Source/core/loader/FrameLoader.cpp File Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/790383002/diff/40001/Source/core/loader/FrameLoader.cpp#newcode763 Source/core/loader/FrameLoader.cpp:763: navigationPolicyFromMouseEvent(mouseEvent->button(), mouseEvent->ctrlKey(), mouseEvent->shiftKey(), mouseEvent->altKey(), mouseEvent->metaKey(), &policy); It seems ...
6 years ago (2014-12-16 18:57:04 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/790383002/40001
6 years ago (2014-12-16 19:02:19 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/42127)
6 years ago (2014-12-16 20:52:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/790383002/40001
6 years ago (2014-12-16 20:54:40 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/42149)
6 years ago (2014-12-16 22:45:28 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/790383002/40001
6 years ago (2014-12-16 22:47:57 UTC) #13
commit-bot: I haz the power
6 years ago (2014-12-17 00:43:50 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=187310

Powered by Google App Engine
This is Rietveld 408576698