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

Issue 2835463002: Store NavigationIntext in CRWWKNavigationStates. (Closed)

Created:
3 years, 8 months ago by Eugene But (OOO till 7-30)
Modified:
3 years, 7 months ago
Reviewers:
kkhorimoto
CC:
chromium-reviews, Eugene But (OOO till 7-30), ios-reviews+web_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Store NavigationContext in CRWWKNavigationStates. This CL (1 of 7) is a part of large refactoring to create NavigationContext when navigation was started, not when it is finished. This refactoring will allow to pass the same instance of NavigationContext to DidStartNavigation and DidFinishNavigation (crbug.com/713836). Also this will allow to associate NavigationItem with NavigationContext object to commit non-latest navigation (crbug.com/712269). This CL adds API to CRWWKNavigationStates to allow associating NavigationContextImpl with NKNavigation objects. This will allow to understand which NavigationContextImpl should be used in WKNavigationDelegate callbacks. BUG=713836, 712269 Review-Url: https://codereview.chromium.org/2835463002 Cr-Commit-Position: refs/heads/master@{#470068} Committed: https://chromium.googlesource.com/chromium/src/+/5ef672aa5ffed4146ede2c1d22a04fb91dd5f168

Patch Set 1 #

Patch Set 2 : Self review #

Patch Set 3 : Fixed compilation #

Patch Set 4 : Added linebreak #

Patch Set 5 : Rebased #

Total comments: 7

Patch Set 6 : Addressed review comments #

Patch Set 7 : Rebased #

Patch Set 8 : Fixed compilation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -18 lines) Patch
M ios/web/web_state/navigation_context_impl.h View 2 chunks +11 lines, -6 lines 0 comments Download
M ios/web/web_state/navigation_context_impl.mm View 1 chunk +19 lines, -6 lines 0 comments Download
M ios/web/web_state/ui/crw_wk_navigation_states.h View 1 2 3 4 5 3 chunks +18 lines, -3 lines 0 comments Download
M ios/web/web_state/ui/crw_wk_navigation_states.mm View 1 2 3 4 5 6 7 4 chunks +63 lines, -3 lines 0 comments Download
M ios/web/web_state/ui/crw_wk_navigation_states_unittest.mm View 1 2 3 4 3 chunks +52 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (21 generated)
Eugene But (OOO till 7-30)
3 years, 8 months ago (2017-04-24 14:05:35 UTC) #13
kkhorimoto
https://codereview.chromium.org/2835463002/diff/80001/ios/web/web_state/ui/crw_wk_navigation_states.h File ios/web/web_state/ui/crw_wk_navigation_states.h (right): https://codereview.chromium.org/2835463002/diff/80001/ios/web/web_state/ui/crw_wk_navigation_states.h#newcode62 ios/web/web_state/ui/crw_wk_navigation_states.h:62: // affect the result of |lastAddedNavigation| method. Passed |navigation| ...
3 years, 8 months ago (2017-04-25 13:29:55 UTC) #14
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2835463002/diff/80001/ios/web/web_state/ui/crw_wk_navigation_states.h File ios/web/web_state/ui/crw_wk_navigation_states.h (right): https://codereview.chromium.org/2835463002/diff/80001/ios/web/web_state/ui/crw_wk_navigation_states.h#newcode62 ios/web/web_state/ui/crw_wk_navigation_states.h:62: // affect the result of |lastAddedNavigation| method. Passed |navigation| ...
3 years, 8 months ago (2017-04-25 21:02:58 UTC) #15
kkhorimoto
lgtm
3 years, 7 months ago (2017-05-04 19:07:28 UTC) #16
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/2835463002/100001
3 years, 7 months ago (2017-05-08 15:45:29 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/91022)
3 years, 7 months ago (2017-05-08 16:03:03 UTC) #20
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/2835463002/120001
3 years, 7 months ago (2017-05-08 16:23:32 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/91049) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 7 months ago (2017-05-08 16:34:26 UTC) #25
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2835463002/diff/80001/ios/web/web_state/ui/crw_wk_navigation_states.mm File ios/web/web_state/ui/crw_wk_navigation_states.mm (right): https://codereview.chromium.org/2835463002/diff/80001/ios/web/web_state/ui/crw_wk_navigation_states.mm#newcode35 ios/web/web_state/ui/crw_wk_navigation_states.mm:35: - (web::NavigationContextImpl*)context; On 2017/04/25 21:02:58, Eugene But (OOO till ...
3 years, 7 months ago (2017-05-08 18:30:52 UTC) #26
kkhorimoto (Do not use)
On 2017/05/08 18:30:52, Eugene But (OOO till May 8) wrote: > https://codereview.chromium.org/2835463002/diff/80001/ios/web/web_state/ui/crw_wk_navigation_states.mm > File ios/web/web_state/ui/crw_wk_navigation_states.mm ...
3 years, 7 months ago (2017-05-08 18:36:34 UTC) #27
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/2835463002/140001
3 years, 7 months ago (2017-05-08 18:39:29 UTC) #30
commit-bot: I haz the power
3 years, 7 months ago (2017-05-08 19:00:11 UTC) #33
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/5ef672aa5ffed4146ede2c1d22a0...

Powered by Google App Engine
This is Rietveld 408576698