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

Issue 14518005: Add TabWebContentsTracker (Closed)

Created:
7 years, 8 months ago by Adrian Kuegel
Modified:
7 years, 7 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Add TabWebContentsTracker BUG=234231

Patch Set 1 #

Total comments: 19
Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -0 lines) Patch
M chrome/browser/managed_mode/managed_mode_navigation_observer.h View 4 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/managed_mode/managed_mode_navigation_observer.cc View 4 chunks +36 lines, -0 lines 9 comments Download
A chrome/browser/ui/tab_webcontents_tracker.h View 1 chunk +88 lines, -0 lines 7 comments Download
A chrome/browser/ui/tab_webcontents_tracker.cc View 1 chunk +90 lines, -0 lines 3 comments Download
M chrome/chrome_browser_ui.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Adrian Kuegel
Bernhard, can you please take a look if this CL is going in the right ...
7 years, 8 months ago (2013-04-26 15:52:26 UTC) #1
Bernhard Bauer
A couple of style issues, but please read the bigger comments first: https://codereview.chromium.org/14518005/diff/1/chrome/browser/ui/tab_webcontents_tracker.h#newcode25 https://codereview.chromium.org/14518005/diff/1/chrome/browser/managed_mode/managed_mode_navigation_observer.cc File ...
7 years, 8 months ago (2013-04-26 16:30:10 UTC) #2
Bernhard Bauer
Hit Publish too soon. What I meant was, please read these comments first: 1. https://codereview.chromium.org/14518005/diff/1/chrome/browser/ui/tab_webcontents_tracker.h#newcode25 ...
7 years, 8 months ago (2013-04-26 16:34:16 UTC) #3
Adrian Kuegel
I didn't address most of the style comments, because I guess I need to do ...
7 years, 7 months ago (2013-04-29 08:11:15 UTC) #4
Bernhard Bauer
7 years, 7 months ago (2013-04-29 08:39:38 UTC) #5
https://codereview.chromium.org/14518005/diff/1/chrome/browser/managed_mode/m...
File chrome/browser/managed_mode/managed_mode_navigation_observer.cc (right):

https://codereview.chromium.org/14518005/diff/1/chrome/browser/managed_mode/m...
chrome/browser/managed_mode/managed_mode_navigation_observer.cc:288: // First,
copy over some data of the old navigation observer. This only
On 2013/04/29 08:11:15, Adrian Kuegel wrote:
> But if I copy the whole object over, it would still not contain the right
data,
> and I would have to do the same thing. This replace of WebContents seems to
> happen mostly (if not always) in the case where a page is prerendered. In that
> case, we will be notified after the page has been already prerendered, and
then
> the ManagedModeNavigationObserver attached to the prerendered WebContents
> contains some data we may need to copy over (or contains the information that
we
> have to clear some data). If we really just want to copy the object over, we
> would have to make sure that we do that when creating the WebContents that is
> used for the prerendering. I already thought that this would probably be the
> best thing, but I am not sure if that is feasible (we would have to clone the
> object, because I think we cannot be sure if the prerendered WebContents will
> actually be used later).

Like I said, I'm okay with this, I just want to keep us from having to add more
special cases later. Seeing as the prerender-swap-in happens instead of a
navigation, could we get the desired behavior by treating it as a navigation
event (recording URLs etc.)?

Powered by Google App Engine
This is Rietveld 408576698