0

[docs] Updated tab_helpers.md tp reflect latest class names

Change-Id: Ic96e1f9de455d93b04129fbaecf873b6c6480ac3
Reviewed-on: https://chromium-review.googlesource.com/c/1365836
Reviewed-by: Bill Orr <billorr@chromium.org>
Reviewed-by: Klaus Weidner <klausw@chromium.org>
Commit-Queue: Suman Kancherla <sumankancherla@chromium.org>
Cr-Commit-Position: refs/heads/master@{#614477}
This commit is contained in:
Suman Nelson Kancherla
2018-12-06 20:26:28 +00:00
committed by Commit Bot
parent 5b8ae550a5
commit 1d0cc35e02

@ -18,10 +18,10 @@ itself. Let's break that down.
that allows an object to observe events in the life of a `WebContents`. As an
example, if we look at the `TabStripModel`, there are times when it need to
watch out for WebContents being deleted. So it creates a
[DeletionObserver](https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/ui/tabs/tab_strip_model.cc&q=DeletionObserver).
The `DeletionObserver` overrides `WebContentsDestroyed()`, and when a
`WebContents` gets destroyed, the callback is called and the `DeletionObserver`
processes the message. Note that `DeletionObserver` is not owned by the
[TabStripModel::WebContentsData](https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/ui/tabs/tab_strip_model.cc&q=TabStripModel::WebContentsData).
That object overrides `WebContentsDestroyed()`, and when a
`WebContents` gets destroyed, the callback is called and the object
processes the message. Note that `TabStripModel::WebContentsData` object is not owned by the
`WebContents`. It is owned indirectly by the `TabStripModel`.
## `SupportsUserData` and `WebContentsUserData`