Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Issue 29693008: Decouple NavigationControllerImpl and WebContentsImpl. (Closed)

Created:
7 years, 2 months ago by nasko
Modified:
7 years, 1 month ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, miu+watch_chromium.org, chromium-site-isolation-reviews_chromium.org
Visibility:
Public.

Description

Decouple NavigationControllerImpl and WebContentsImpl. This CL is the first step in breaking dependencies between WebContents and navigation logic. It creates a NavigationControllerDelegate interface, which contains all the methods NavController needs to call on WebContentsImpl. More details and roadmap of the changes to come are in https://docs.google.com/a/chromium.org/document/d/127ODQnXaoMtHdu2WXTR6iHg411bXa_8zRTb3kXlwArA/edit. BUG=304341 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=230480

Patch Set 1 #

Patch Set 2 : Missed to include the delegate files. #

Patch Set 3 : Move to pure virtual implementation and duplicate all WebContents method. #

Patch Set 4 : Some cleanup. #

Total comments: 17

Patch Set 5 : Fixes based on Charlie's review. #

Patch Set 6 : Removing TODO comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -107 lines) Patch
M content/browser/ssl/ssl_manager.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
A content/browser/web_contents/navigation_controller_delegate.h View 1 2 3 4 1 chunk +64 lines, -0 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl.h View 1 2 3 4 5 7 chunks +9 lines, -12 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl.cc View 1 2 3 4 33 chunks +47 lines, -49 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 7 chunks +50 lines, -41 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 3 chunks +14 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_screenshot_manager.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
nasko
Hey Charlie, I think this is ready to start reviewing. Take a look when you ...
7 years, 2 months ago (2013-10-22 18:00:36 UTC) #1
Charlie Reis
Cool. Mostly looks good, though I'm curious about the other web_contents dependencies in navigation_controller_impl.cc. https://codereview.chromium.org/29693008/diff/120001/content/browser/browser_plugin/browser_plugin_geolocation_permission_context.cc ...
7 years, 2 months ago (2013-10-22 21:07:15 UTC) #2
nasko
Thanks for the review. I've updated the CL based on the comments. https://codereview.chromium.org/29693008/diff/120001/content/browser/browser_plugin/browser_plugin_geolocation_permission_context.cc File content/browser/browser_plugin/browser_plugin_geolocation_permission_context.cc ...
7 years, 2 months ago (2013-10-22 21:56:20 UTC) #3
Charlie Reis
Great. LGTM with one comment. https://codereview.chromium.org/29693008/diff/120001/content/browser/web_contents/navigation_controller_impl.h File content/browser/web_contents/navigation_controller_impl.h (right): https://codereview.chromium.org/29693008/diff/120001/content/browser/web_contents/navigation_controller_impl.h#newcode209 content/browser/web_contents/navigation_controller_impl.h:209: // TODO(nasko): Temporarily make ...
7 years, 2 months ago (2013-10-22 22:24:35 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/29693008/400001
7 years, 1 month ago (2013-10-23 15:14:46 UTC) #5
commit-bot: I haz the power
7 years, 1 month ago (2013-10-23 18:42:05 UTC) #6
Message was sent while issue was closed.
Change committed as 230480

Powered by Google App Engine
This is Rietveld 408576698