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

Issue 10830144: Consolidate all NavigationController::LoadURL and family functions (Closed)

Created:
8 years, 4 months ago by boliu
Modified:
8 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, cbentzel+watch_chromium.org, tburkard+watch_chromium.org, jam, sreeram, gideonwald, dominich, gavinp+prer_chromium.org, dominich+watch_chromium.org, David Black, Jered, darin-cc_chromium.org, mmenke, Shishir
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Consolidate all NavigationController::LoadURL and family functions Added public LoadUrlExtraParams struct to hold all extra parameters to the family of LoadURL functions, were extra means not in the definition of LoadURL. Added LoadURLWithExtraParams and removed all other load functions except LoadURL. Updated all call sites to use the new method. Removed NavigationControllerWebView. BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151534

Patch Set 1 #

Patch Set 2 : Renaming variables. Unittests. Comments. #

Patch Set 3 : fix indent #

Patch Set 4 : Add comment to LoadURLWithExtraParams #

Patch Set 5 : Move parameters of LoadURL into struct as well. #

Total comments: 4

Patch Set 6 : NOTREACHED checks for post/data loads. #

Total comments: 25

Patch Set 7 : tri-state ui override. address comments #

Total comments: 9

Patch Set 8 : address comments #

Total comments: 8

Patch Set 9 : Address Brett's comments. #

Patch Set 10 : Rename cc file. #

Patch Set 11 : Move navigation_controller.cc yet again. #

Patch Set 12 : Fix clang trybot: CONTENT_EXPORT comes after struct. #

Patch Set 13 : Fix win trybot. #

Patch Set 14 : Implement copy constructor/assignment operator for LoadURLParams. #

Patch Set 15 : Rebase onto TOT. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -264 lines) Patch
M chrome/browser/prerender/prerender_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +10 lines, -8 lines 0 comments Download
M chrome/browser/ui/browser_navigator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +10 lines, -16 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -4 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +2 lines, -33 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +68 lines, -98 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +98 lines, -31 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
D content/public/browser/android/navigation_controller_webview.h View 1 chunk +0 lines, -42 lines 0 comments Download
M content/public/browser/navigation_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +91 lines, -32 lines 0 comments Download
A content/public/browser/navigation_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +56 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
boliu
Just an FYI that I am trying to consolidate all the LoadURL functions. Patch Set ...
8 years, 4 months ago (2012-08-02 20:30:14 UTC) #1
boliu
Patch set 3 ready for review.
8 years, 4 months ago (2012-08-02 22:41:17 UTC) #2
mnaganov (inactive)
http://codereview.chromium.org/10830144/diff/11002/content/browser/web_contents/navigation_controller_impl.cc File content/browser/web_contents/navigation_controller_impl.cc (right): http://codereview.chromium.org/10830144/diff/11002/content/browser/web_contents/navigation_controller_impl.cc#newcode587 content/browser/web_contents/navigation_controller_impl.cc:587: DCHECK(params.url.SchemeIs(chrome::kHttpScheme) || We need to bail out for safety ...
8 years, 4 months ago (2012-08-03 09:20:04 UTC) #3
boliu
http://codereview.chromium.org/10830144/diff/11002/content/browser/web_contents/navigation_controller_impl.cc File content/browser/web_contents/navigation_controller_impl.cc (right): http://codereview.chromium.org/10830144/diff/11002/content/browser/web_contents/navigation_controller_impl.cc#newcode587 content/browser/web_contents/navigation_controller_impl.cc:587: DCHECK(params.url.SchemeIs(chrome::kHttpScheme) || On 2012/08/03 09:20:04, Mikhail Naganov (Chromium) wrote: ...
8 years, 4 months ago (2012-08-03 15:55:42 UTC) #4
gone
https://chromiumcodereview.appspot.com/10830144/diff/2003/chrome/browser/instant/instant_loader.cc File chrome/browser/instant/instant_loader.cc (right): https://chromiumcodereview.appspot.com/10830144/diff/2003/chrome/browser/instant/instant_loader.cc#newcode761 chrome/browser/instant/instant_loader.cc:761: load_url_params.should_inherit_user_agent_override = false; Seems like this should automatically be ...
8 years, 4 months ago (2012-08-03 20:17:37 UTC) #5
boliu
http://codereview.chromium.org/10830144/diff/2003/chrome/browser/instant/instant_loader.cc File chrome/browser/instant/instant_loader.cc (right): http://codereview.chromium.org/10830144/diff/2003/chrome/browser/instant/instant_loader.cc#newcode761 chrome/browser/instant/instant_loader.cc:761: load_url_params.should_inherit_user_agent_override = false; I'm against doing this kind of ...
8 years, 4 months ago (2012-08-03 20:46:26 UTC) #6
Charlie Reis
On 2012/08/03 20:46:26, boliu wrote: > Charlie, do you have any thoughts on this? Looking...
8 years, 4 months ago (2012-08-03 21:06:29 UTC) #7
Charlie Reis
While there's more complexity now from having to create a params struct, I do like ...
8 years, 4 months ago (2012-08-03 21:28:35 UTC) #8
boliu
http://codereview.chromium.org/10830144/diff/2003/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (left): http://codereview.chromium.org/10830144/diff/2003/chrome/browser/ui/browser_navigator.cc#oldcode227 chrome/browser/ui/browser_navigator.cc:227: params->is_renderer_initiated); Very good catch! Fixed. http://codereview.chromium.org/10830144/diff/2003/content/browser/web_contents/navigation_controller_impl.cc File content/browser/web_contents/navigation_controller_impl.cc (right): ...
8 years, 4 months ago (2012-08-03 22:42:08 UTC) #9
Charlie Reis
LGTM with nits, but you'll need owner's approval for content/public changes. http://codereview.chromium.org/10830144/diff/5004/chrome/browser/prerender/prerender_contents.cc File chrome/browser/prerender/prerender_contents.cc (right): ...
8 years, 4 months ago (2012-08-03 23:12:47 UTC) #10
Charlie Reis
On 2012/08/03 23:12:47, creis wrote: > LGTM with nits, but you'll need owner's approval for ...
8 years, 4 months ago (2012-08-03 23:13:34 UTC) #11
boliu
http://codereview.chromium.org/10830144/diff/5004/chrome/browser/prerender/prerender_contents.cc File chrome/browser/prerender/prerender_contents.cc (right): http://codereview.chromium.org/10830144/diff/5004/chrome/browser/prerender/prerender_contents.cc#newcode380 chrome/browser/prerender/prerender_contents.cc:380: content::NavigationController::UA_OVERRIDE_TRUE : On 2012/08/03 23:12:48, creis wrote: > The ...
8 years, 4 months ago (2012-08-03 23:31:39 UTC) #12
gone
LGTM, but I'd like to play with an Android build with the "final" version before ...
8 years, 4 months ago (2012-08-04 00:57:05 UTC) #13
boliu
Ping! Hi Brett, can you take a look at this?
8 years, 4 months ago (2012-08-08 15:25:47 UTC) #14
brettw
Sorry for the delay. This seems like a nice improvement, I have mostly style nits. ...
8 years, 4 months ago (2012-08-10 22:25:17 UTC) #15
boliu
http://codereview.chromium.org/10830144/diff/15/content/public/browser/navigation_controller.h File content/public/browser/navigation_controller.h (right): http://codereview.chromium.org/10830144/diff/15/content/public/browser/navigation_controller.h#newcode11 content/public/browser/navigation_controller.h:11: #include "base/memory/ref_counted_memory.h" Removed ref_counted_memory.h but added ref_counted.h for adding ...
8 years, 4 months ago (2012-08-11 00:53:35 UTC) #16
brettw
I'd make the new .cc file match the .h file. If we add more non-pure-virtual ...
8 years, 4 months ago (2012-08-11 17:32:31 UTC) #17
boliu
Done.
8 years, 4 months ago (2012-08-13 14:31:02 UTC) #18
brettw
The navigation_controller.cc file should be in the same dir as the .h (the public one). ...
8 years, 4 months ago (2012-08-13 17:48:35 UTC) #19
boliu
Done. Thanks for the review. Waiting for trybots before cq.
8 years, 4 months ago (2012-08-13 18:00:15 UTC) #20
boliu
One more change in Patch Set 12 to fix linux_clang trybot: Moved CONTENT_EXPORT after struct ...
8 years, 4 months ago (2012-08-13 18:27:18 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/10830144/1013
8 years, 4 months ago (2012-08-13 20:03:53 UTC) #22
commit-bot: I haz the power
Try job failure for 10830144-1013 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-13 21:25:49 UTC) #23
boliu
Hi reviewers, PTAL. win debug trybot failed and I think it is due to the ...
8 years, 4 months ago (2012-08-13 22:19:15 UTC) #24
boliu
On advice from akalin and awong from irc, I implemented the copy constructor and assignment ...
8 years, 4 months ago (2012-08-13 23:16:14 UTC) #25
brettw
LGTM rubberstamp (didn't really look)
8 years, 4 months ago (2012-08-13 23:18:27 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/10830144/3023
8 years, 4 months ago (2012-08-13 23:22:32 UTC) #27
commit-bot: I haz the power
Failed to apply patch for content/browser/web_contents/navigation_controller_impl.h: While running patch -p1 --forward --force; patching file content/browser/web_contents/navigation_controller_impl.h ...
8 years, 4 months ago (2012-08-13 23:22:40 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/10830144/11017
8 years, 4 months ago (2012-08-13 23:37:17 UTC) #29
commit-bot: I haz the power
Try job failure for 10830144-11017 (retry) on mac_rel for step "content_unittests". It's a second try, ...
8 years, 4 months ago (2012-08-14 00:49:48 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/10830144/11017
8 years, 4 months ago (2012-08-14 17:16:40 UTC) #31
commit-bot: I haz the power
8 years, 4 months ago (2012-08-14 19:17:49 UTC) #32
Change committed as 151534

Powered by Google App Engine
This is Rietveld 408576698