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

Issue 2698413004: Implemented WebStateObserver::DidFinishNavigation(NavigationHandle*). (Closed)

Created:
3 years, 10 months ago by Eugene But (OOO till 7-30)
Modified:
3 years, 10 months ago
CC:
chromium-reviews, Eugene But (OOO till 7-30)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implemented WebStateObserver::DidFinishNavigation(NavigationContext*). This callback aims to replace the following methods: WebStateObserver::UrlHashChanged() WebStateObserver::HistoryStateChanged() -[CRWWebDelegate webDidUpdateHistoryStateWithPageURL:] -[CRWWebDelegate webWillFinishHistoryNavigationFromEntry:] -[CRWWebDelegate webDidStartLoadingURL:shouldUpdateHistory:] These callbacks will be replaced in a separate CL. Currently NavigationContext is created only for DidFinishNavigation callback. Long term plan is to create it for DidStartNavigation and keep it alive until DidFinishNavigation. This CL has small logic change by updating MIME type for Native Content navigation, which is the right thing to do anyway. BUG=692331 Review-Url: https://codereview.chromium.org/2698413004 Cr-Commit-Position: refs/heads/master@{#452732} Committed: https://chromium.googlesource.com/chromium/src/+/17faf252763df7fb3dbe510549ed5fd8e94e84db

Patch Set 1 #

Patch Set 2 : Added integration tests #

Patch Set 3 : Self review #

Total comments: 49

Patch Set 4 : Addressed review comments #

Patch Set 5 : Self review #

Patch Set 6 : Made NavigationContext constructor private #

Total comments: 10

Patch Set 7 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+485 lines, -8 lines) Patch
M ios/web/BUILD.gn View 1 2 3 4 chunks +5 lines, -0 lines 0 comments Download
M ios/web/public/test/fakes/test_web_client.mm View 1 1 chunk +9 lines, -3 lines 0 comments Download
A ios/web/public/web_state/navigation_context.h View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
M ios/web/public/web_state/ui/crw_web_delegate.h View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M ios/web/public/web_state/web_state_observer.h View 1 2 3 4 5 6 3 chunks +22 lines, -0 lines 0 comments Download
M ios/web/test/test_url_constants.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ios/web/test/test_url_constants.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
A ios/web/web_state/navigation_callbacks_inttest.mm View 1 2 3 1 chunk +159 lines, -0 lines 0 comments Download
A ios/web/web_state/navigation_context_impl.h View 1 2 3 4 5 1 chunk +57 lines, -0 lines 0 comments Download
A ios/web/web_state/navigation_context_impl.mm View 1 2 3 4 5 1 chunk +65 lines, -0 lines 0 comments Download
A ios/web/web_state/navigation_context_impl_unittest.mm View 1 2 3 4 5 6 1 chunk +59 lines, -0 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 3 4 5 6 5 chunks +14 lines, -1 line 0 comments Download
M ios/web/web_state/web_state_impl.h View 1 chunk +6 lines, -0 lines 0 comments Download
M ios/web/web_state/web_state_impl.mm View 1 2 3 3 chunks +19 lines, -0 lines 0 comments Download
M ios/web/web_state/web_state_impl_unittest.mm View 1 2 3 4 5 6 6 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (19 generated)
Eugene But (OOO till 7-30)
PTAL. This is new navigation callback that matches other platforms and intended to replace 5 ...
3 years, 10 months ago (2017-02-21 23:31:45 UTC) #10
kkhorimoto
https://codereview.chromium.org/2698413004/diff/40001/ios/web/public/web_state/navigation_handle.h File ios/web/public/web_state/navigation_handle.h (right): https://codereview.chromium.org/2698413004/diff/40001/ios/web/public/web_state/navigation_handle.h#newcode8 ios/web/public/web_state/navigation_handle.h:8: #include "net/base/net_errors.h" It doesn't look like this is needed ...
3 years, 10 months ago (2017-02-22 01:42:38 UTC) #13
marq (ping after 24h)
I didn't have time for a close review, and likely won't this week. I'm in ...
3 years, 10 months ago (2017-02-22 13:26:36 UTC) #14
Eugene But (OOO till 7-30)
Mark, I'm fine with your high-level review. PTAL. https://codereview.chromium.org/2698413004/diff/40001/ios/web/public/web_state/navigation_handle.h File ios/web/public/web_state/navigation_handle.h (right): https://codereview.chromium.org/2698413004/diff/40001/ios/web/public/web_state/navigation_handle.h#newcode8 ios/web/public/web_state/navigation_handle.h:8: #include ...
3 years, 10 months ago (2017-02-22 17:54:33 UTC) #15
marq (ping after 24h)
LGTM at a high level.
3 years, 10 months ago (2017-02-22 18:34:18 UTC) #16
kkhorimoto
https://codereview.chromium.org/2698413004/diff/40001/ios/web/public/web_state/navigation_handle.h File ios/web/public/web_state/navigation_handle.h (right): https://codereview.chromium.org/2698413004/diff/40001/ios/web/public/web_state/navigation_handle.h#newcode24 ios/web/public/web_state/navigation_handle.h:24: virtual WebState* GetWebState() = 0; On 2017/02/22 17:54:32, Eugene ...
3 years, 10 months ago (2017-02-22 18:38:05 UTC) #17
Eugene But (OOO till 7-30)
Thanks! https://codereview.chromium.org/2698413004/diff/40001/ios/web/public/web_state/navigation_handle.h File ios/web/public/web_state/navigation_handle.h (right): https://codereview.chromium.org/2698413004/diff/40001/ios/web/public/web_state/navigation_handle.h#newcode24 ios/web/public/web_state/navigation_handle.h:24: virtual WebState* GetWebState() = 0; > I think ...
3 years, 10 months ago (2017-02-22 21:44:56 UTC) #18
kkhorimoto
https://codereview.chromium.org/2698413004/diff/40001/ios/web/public/web_state/navigation_handle.h File ios/web/public/web_state/navigation_handle.h (right): https://codereview.chromium.org/2698413004/diff/40001/ios/web/public/web_state/navigation_handle.h#newcode24 ios/web/public/web_state/navigation_handle.h:24: virtual WebState* GetWebState() = 0; On 2017/02/22 21:44:56, Eugene ...
3 years, 10 months ago (2017-02-22 21:55:45 UTC) #19
Eugene But (OOO till 7-30)
Sorry for web_state_observer.h :) https://codereview.chromium.org/2698413004/diff/40001/ios/web/public/web_state/navigation_handle.h File ios/web/public/web_state/navigation_handle.h (right): https://codereview.chromium.org/2698413004/diff/40001/ios/web/public/web_state/navigation_handle.h#newcode24 ios/web/public/web_state/navigation_handle.h:24: virtual WebState* GetWebState() = 0; ...
3 years, 10 months ago (2017-02-22 22:08:33 UTC) #20
kkhorimoto
lgtm after offline discussion!
3 years, 10 months ago (2017-02-22 23:10:49 UTC) #21
Eugene But (OOO till 7-30)
Thanks! Rohit, PTAL
3 years, 10 months ago (2017-02-22 23:15:48 UTC) #22
rohitrao (ping after 24h)
lgtm Couple high level questions, because I'm looking at just this one CL without a ...
3 years, 10 months ago (2017-02-24 01:22:48 UTC) #23
Eugene But (OOO till 7-30)
Thanks. Answering your question: 1.) Correct. Those 5 methods will be replaced in subsequent CLs. ...
3 years, 10 months ago (2017-02-24 01:49:41 UTC) #25
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/2698413004/120001
3 years, 10 months ago (2017-02-24 02:56:38 UTC) #31
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 03:14:00 UTC) #34
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/17faf252763df7fb3dbe510549ed...

Powered by Google App Engine
This is Rietveld 408576698