Chromium Code Reviews| Index: content/browser/tab_contents/tab_contents_delegate.cc |
| diff --git a/content/browser/tab_contents/tab_contents_delegate.cc b/content/browser/tab_contents/tab_contents_delegate.cc |
| index df709a7f3549d644f105f444c44fa39572fa83ec..e10aa4597fef82946d51a2ac0e9e2ada0fb535c9 100644 |
| --- a/content/browser/tab_contents/tab_contents_delegate.cc |
| +++ b/content/browser/tab_contents/tab_contents_delegate.cc |
| @@ -237,5 +237,16 @@ TabContentsDelegate::GetJavaScriptDialogCreator() { |
| return JavaScriptDialogCreatorStub::GetInstance(); |
| } |
| +void TabContentsDelegate::Attach(TabContents* tab_contents) { |
|
sky
2011/06/23 18:27:32
Position should match header.
cbentzel
2011/06/23 18:38:13
Done.
|
| + CHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); |
| + attached_contents_.insert(tab_contents); |
| +} |
| + |
| +void TabContentsDelegate::Detach(TabContents* tab_contents) { |
| + CHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); |
| + attached_contents_.erase(tab_contents); |
| +} |
| + |
| TabContentsDelegate::~TabContentsDelegate() { |
| + CHECK(attached_contents_.empty()); |
| } |