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

Issue 45453002: Remove remaining WebContentsImpl from InterstitialPageImpl. (Closed)

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

Description

Remove remaining WebContentsImpl from InterstitialPageImpl. A followup CL to crrev.com/230889, since I missed few cases of WebContentsImpl usage. The reason for moving InterstitialPage::Create to content/public/ is the need to know about both WebContentsImpl and InterstitialPageImpl. Since the goal is to break the InterstitialPageImpl -> WebContentsImpl dependency and this method is the public interface to InterstitialPage, it cannot stay in interstitial_page_impl.cc. BUG=304341

Patch Set 1 #

Patch Set 2 : Fixed GetWebkitPrefs and rebased on ToT. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -17 lines) Patch
M content/browser/web_contents/interstitial_page_impl.cc View 1 4 chunks +6 lines, -17 lines 0 comments Download
M content/content_browser.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
A content/public/browser/interstitial_page.cc View 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
nasko
Hey guys, I've missed some WebContentsImpl instances in my previous CL. In order to remove ...
7 years, 1 month ago (2013-10-25 20:46:11 UTC) #1
jam
I don't follow the reason to do this? If InterstitialPageImpl knows about WebContents, isn't that ...
7 years, 1 month ago (2013-10-25 23:17:48 UTC) #2
Charlie Reis
On 2013/10/25 23:17:48, jam wrote: > I don't follow the reason to do this? If ...
7 years, 1 month ago (2013-10-25 23:28:07 UTC) #3
jam
On 2013/10/25 23:28:07, creis wrote: > On 2013/10/25 23:17:48, jam wrote: > > I don't ...
7 years, 1 month ago (2013-10-28 16:49:49 UTC) #4
nasko
7 years, 1 month ago (2013-10-28 16:59:34 UTC) #5
On 2013/10/28 16:49:49, jam wrote:
> On 2013/10/25 23:28:07, creis wrote:
> > On 2013/10/25 23:17:48, jam wrote:
> > > I don't follow the reason to do this? If InterstitialPageImpl knows about
> > > WebContents, isn't that equivalent to it knowing about WebContentsImpl?
> > > WebContents vs WebContentsImpl is related to Content API only.
> > 
> > It's because InterstitialPageImpl is moving to a new frame_host directory
that
> > doesn't depend on the web_contents directory, kind of like the classes in
> > renderer_host.
> 
> My point is that InterstitialPageImpl depending on
> content/public/browser/web_contents.h is equivalent to depending on
> content/browser/web_contents/web_contents_impl.h
> 
> If you look at content/browser/renderer_host, the DEPS file there actually
> disallows web_contents.h.

I agree with you overall. The only reason left for InterstitialPageImpl to use
WebContents is to observe navigation entry commit or web contents distroying, so
it can cleanup itself. We will have to move InterstitialPageImpl to be hosted
somewhere in the frame tree, at which point it will likely key off of a
different event, but not sure what that is yet.

Mechanically though, I want to prevent frame_host/ from including anything from
web_contents/ in the short term.

Powered by Google App Engine
This is Rietveld 408576698