diff options
Diffstat (limited to 'content/browser/tab_contents/tab_contents_delegate.h')
-rw-r--r-- | content/browser/tab_contents/tab_contents_delegate.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/content/browser/tab_contents/tab_contents_delegate.h b/content/browser/tab_contents/tab_contents_delegate.h index 3ddbbf8..5ba62cf 100644 --- a/content/browser/tab_contents/tab_contents_delegate.h +++ b/content/browser/tab_contents/tab_contents_delegate.h @@ -6,6 +6,7 @@ #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ #pragma once +#include <set> #include <string> #include "base/basictypes.h" @@ -41,6 +42,8 @@ class TabContents; // TabContents and to provide necessary functionality. class TabContentsDelegate { public: + TabContentsDelegate(); + // When a main frame navigation occurs CreateMainFrameCommitDetails() is // invoked. The |MainFrameCommitDetails| returned from // CreateMainFrameCommitDetails() are then passed to @@ -304,6 +307,18 @@ class TabContentsDelegate { protected: virtual ~TabContentsDelegate(); + + private: + friend class TabContents; + + // Called when |this| becomes the TabContentsDelegate for |source|. + void Attach(TabContents* source); + + // Called when |this| is no longer the TabContentsDelegate for |source|. + void Detach(TabContents* source); + + // The TabContents that this is currently a delegate for. + std::set<TabContents*> attached_contents_; }; #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |