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

Issue 2742953003: created web::ReloadType (Closed)

Created:
3 years, 9 months ago by liaoyuke
Modified:
3 years, 9 months ago
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, Eugene But (OOO till 7-30), pkl (ping after 24h if needed), ios-reviews+web_chromium.org, noyau+watch_chromium.org, marq+watch_chromium.org, stkhapugin, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

created web::ReloadType This CL introduces web::ReloadType, which can be used to specify detailed behavior on requesting reload via navigation manager. BUG= Review-Url: https://codereview.chromium.org/2742953003 Cr-Commit-Position: refs/heads/master@{#456433} Committed: https://chromium.googlesource.com/chromium/src/+/935ed42ba809c4982618c170c62f269e7cdbc95c

Patch Set 1 #

Total comments: 11

Patch Set 2 : Addressed feedback #

Patch Set 3 : Add TODO for ORIGINAL_REQUEST_URL #

Total comments: 8

Patch Set 4 : Add inline comments for check_for_repost and add TODO #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -15 lines) Patch
M ios/chrome/browser/interstitials/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/interstitials/ios_chrome_controller_client.mm View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M ios/chrome/browser/reading_list/BUILD.gn View 1 2 chunks +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_web_state_observer.mm View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M ios/chrome/browser/reading_list/reading_list_web_state_observer_unittest.mm View 2 chunks +4 lines, -1 line 0 comments Download
M ios/chrome/browser/ui/reading_list/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/ui/reading_list/offline_page_native_content.mm View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M ios/web/BUILD.gn View 3 chunks +8 lines, -0 lines 0 comments Download
M ios/web/interstitials/web_interstitial_impl.mm View 2 chunks +2 lines, -1 line 0 comments Download
M ios/web/navigation/navigation_manager_impl.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M ios/web/navigation/navigation_manager_impl.mm View 2 chunks +3 lines, -1 line 0 comments Download
M ios/web/public/navigation_manager.h View 1 2 3 2 chunks +10 lines, -5 lines 0 comments Download
A ios/web/public/reload_type.h View 1 chunk +23 lines, -0 lines 0 comments Download
M ios/web/public/test/fakes/test_navigation_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M ios/web/public/test/fakes/test_navigation_manager.mm View 1 chunk +2 lines, -1 line 0 comments Download
M ios/web_view/internal/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M ios/web_view/internal/cwv_web_view.mm View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 22 (9 generated)
liaoyuke
PTAL. Thank you very much!
3 years, 9 months ago (2017-03-10 17:20:56 UTC) #2
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2742953003/diff/1/ios/web/public/navigation_manager.h File ios/web/public/navigation_manager.h (right): https://codereview.chromium.org/2742953003/diff/1/ios/web/public/navigation_manager.h#newcode158 ios/web/public/navigation_manager.h:158: virtual void Reload(ReloadType reload_type, bool check_for_repost) = 0; Content ...
3 years, 9 months ago (2017-03-10 18:37:32 UTC) #3
kkhorimoto
https://codereview.chromium.org/2742953003/diff/1/ios/web/public/navigation_manager.h File ios/web/public/navigation_manager.h (right): https://codereview.chromium.org/2742953003/diff/1/ios/web/public/navigation_manager.h#newcode158 ios/web/public/navigation_manager.h:158: virtual void Reload(ReloadType reload_type, bool check_for_repost) = 0; On ...
3 years, 9 months ago (2017-03-10 18:47:47 UTC) #4
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2742953003/diff/1/ios/web/public/navigation_manager.h File ios/web/public/navigation_manager.h (right): https://codereview.chromium.org/2742953003/diff/1/ios/web/public/navigation_manager.h#newcode158 ios/web/public/navigation_manager.h:158: virtual void Reload(ReloadType reload_type, bool check_for_repost) = 0; On ...
3 years, 9 months ago (2017-03-10 18:58:04 UTC) #5
liaoyuke
Comments addressed offline. PTAL. Thank you very much! https://codereview.chromium.org/2742953003/diff/1/ios/web/public/navigation_manager.h File ios/web/public/navigation_manager.h (right): https://codereview.chromium.org/2742953003/diff/1/ios/web/public/navigation_manager.h#newcode158 ios/web/public/navigation_manager.h:158: virtual ...
3 years, 9 months ago (2017-03-10 21:16:23 UTC) #6
kkhorimoto
https://codereview.chromium.org/2742953003/diff/1/ios/web/navigation/navigation_manager_impl.h File ios/web/navigation/navigation_manager_impl.h (right): https://codereview.chromium.org/2742953003/diff/1/ios/web/navigation/navigation_manager_impl.h#newcode29 ios/web/navigation/navigation_manager_impl.h:29: enum class ReloadType : short; optional nit: Generally for ...
3 years, 9 months ago (2017-03-10 21:26:45 UTC) #7
liaoyuke
PTAL https://codereview.chromium.org/2742953003/diff/1/ios/web/navigation/navigation_manager_impl.h File ios/web/navigation/navigation_manager_impl.h (right): https://codereview.chromium.org/2742953003/diff/1/ios/web/navigation/navigation_manager_impl.h#newcode29 ios/web/navigation/navigation_manager_impl.h:29: enum class ReloadType : short; On 2017/03/10 21:26:45, ...
3 years, 9 months ago (2017-03-10 21:42:35 UTC) #8
kkhorimoto
lgtm. https://codereview.chromium.org/2742953003/diff/1/ios/web/navigation/navigation_manager_impl.mm File ios/web/navigation/navigation_manager_impl.mm (right): https://codereview.chromium.org/2742953003/diff/1/ios/web/navigation/navigation_manager_impl.mm#newcode346 ios/web/navigation/navigation_manager_impl.mm:346: GURL url = item ? item->GetURL() : GURL(url::kAboutBlankURL); ...
3 years, 9 months ago (2017-03-10 22:24:59 UTC) #9
liaoyuke
Updated design doc and added TODO. PTAL. Thanks!
3 years, 9 months ago (2017-03-10 23:34:20 UTC) #10
Eugene But (OOO till 7-30)
lgtm https://codereview.chromium.org/2742953003/diff/40001/ios/chrome/browser/interstitials/ios_chrome_controller_client.mm File ios/chrome/browser/interstitials/ios_chrome_controller_client.mm (right): https://codereview.chromium.org/2742953003/diff/40001/ios/chrome/browser/interstitials/ios_chrome_controller_client.mm#newcode58 ios/chrome/browser/interstitials/ios_chrome_controller_client.mm:58: web_state_->GetNavigationManager()->Reload(web::ReloadType::NORMAL, true); Could you please add |true /*check_for_repost*/| ...
3 years, 9 months ago (2017-03-11 00:33:36 UTC) #11
liaoyuke
Thank you very much for reviewing! https://codereview.chromium.org/2742953003/diff/40001/ios/chrome/browser/interstitials/ios_chrome_controller_client.mm File ios/chrome/browser/interstitials/ios_chrome_controller_client.mm (right): https://codereview.chromium.org/2742953003/diff/40001/ios/chrome/browser/interstitials/ios_chrome_controller_client.mm#newcode58 ios/chrome/browser/interstitials/ios_chrome_controller_client.mm:58: web_state_->GetNavigationManager()->Reload(web::ReloadType::NORMAL, true); On ...
3 years, 9 months ago (2017-03-13 16:40:06 UTC) #12
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/2742953003/80001
3 years, 9 months ago (2017-03-13 18:16:14 UTC) #19
commit-bot: I haz the power
3 years, 9 months ago (2017-03-13 18:22:54 UTC) #22
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/935ed42ba809c4982618c170c62f...

Powered by Google App Engine
This is Rietveld 408576698