| 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 04f6ce23825f9bca49c8b32e720a71b4532baa07..8d9b708fd895a9b9ce1942570c9c827b04d34a1d 100644
|
| --- a/content/browser/tab_contents/tab_contents_delegate.cc
|
| +++ b/content/browser/tab_contents/tab_contents_delegate.cc
|
| @@ -5,11 +5,15 @@
|
| #include "content/browser/tab_contents/tab_contents_delegate.h"
|
|
|
| #include "base/compiler_specific.h"
|
| +#include "base/logging.h"
|
| #include "base/memory/singleton.h"
|
| #include "content/browser/javascript_dialogs.h"
|
| #include "content/common/url_constants.h"
|
| #include "ui/gfx/rect.h"
|
|
|
| +TabContentsDelegate::TabContentsDelegate() {
|
| +}
|
| +
|
| std::string TabContentsDelegate::GetNavigationHeaders(const GURL& url) {
|
| return std::string();
|
| }
|
| @@ -234,4 +238,15 @@ TabContentsDelegate::GetJavaScriptDialogCreator() {
|
| }
|
|
|
| TabContentsDelegate::~TabContentsDelegate() {
|
| + CHECK(attached_contents_.empty());
|
| +}
|
| +
|
| +void TabContentsDelegate::Attach(TabContents* tab_contents) {
|
| + 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);
|
| }
|
|
|