summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-23 18:35:27 +0000
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-23 18:35:27 +0000
commit2db44b8a73e846085e06175d154b8fa2229eb57d (patch)
tree4ce31108a8b14daf3360c7b7c85315542777aa96 /content
parent65e0e1512469b98cab0e187109b5875f07487853 (diff)
downloadchromium_src-2db44b8a73e846085e06175d154b8fa2229eb57d.zip
chromium_src-2db44b8a73e846085e06175d154b8fa2229eb57d.tar.gz
chromium_src-2db44b8a73e846085e06175d154b8fa2229eb57d.tar.bz2
Add some missing information to TabContentsObserver docs.
BUG=none TEST=none Review URL: http://codereview.chromium.org/7057036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86310 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/tab_contents/tab_contents_observer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/content/browser/tab_contents/tab_contents_observer.h b/content/browser/tab_contents/tab_contents_observer.h
index 1e5c379..81ca4f2 100644
--- a/content/browser/tab_contents/tab_contents_observer.h
+++ b/content/browser/tab_contents/tab_contents_observer.h
@@ -19,7 +19,9 @@ class TabContentsObserver : public IPC::Channel::Listener,
public IPC::Message::Sender {
public:
// Use this as a member variable in a class that uses the empty constructor
- // version of this interface.
+ // version of this interface. On destruction of TabContents being observed,
+ // the registrar must either be destroyed or explicitly set to observe
+ // another TabContents.
class Registrar {
public:
explicit Registrar(TabContentsObserver* observer);
@@ -125,6 +127,7 @@ class TabContentsObserver : public IPC::Channel::Listener,
protected:
friend class Registrar;
+ // Called from TabContents in response to having |this| added as an observer.
void SetTabContents(TabContents* tab_contents);
private: