| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/tab_contents/tab_contents_delegate.h" | 5 #include "content/browser/tab_contents/tab_contents_delegate.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
| 10 #include "content/browser/javascript_dialogs.h" | 10 #include "content/browser/javascript_dialogs.h" |
| 11 #include "content/browser/tab_contents/tab_contents.h" | 11 #include "content/browser/tab_contents/tab_contents.h" |
| 12 #include "content/common/url_constants.h" | 12 #include "content/public/common/url_constants.h" |
| 13 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
| 14 #include "webkit/glue/web_intent_data.h" | 14 #include "webkit/glue/web_intent_data.h" |
| 15 | 15 |
| 16 TabContentsDelegate::TabContentsDelegate() { | 16 TabContentsDelegate::TabContentsDelegate() { |
| 17 } | 17 } |
| 18 | 18 |
| 19 TabContents* TabContentsDelegate::OpenURLFromTab( | 19 TabContents* TabContentsDelegate::OpenURLFromTab( |
| 20 TabContents* source, | 20 TabContents* source, |
| 21 const GURL& url, | 21 const GURL& url, |
| 22 const GURL& referrer, | 22 const GURL& referrer, |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 | 337 |
| 338 void TabContentsDelegate::Attach(TabContents* tab_contents) { | 338 void TabContentsDelegate::Attach(TabContents* tab_contents) { |
| 339 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); | 339 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); |
| 340 attached_contents_.insert(tab_contents); | 340 attached_contents_.insert(tab_contents); |
| 341 } | 341 } |
| 342 | 342 |
| 343 void TabContentsDelegate::Detach(TabContents* tab_contents) { | 343 void TabContentsDelegate::Detach(TabContents* tab_contents) { |
| 344 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); | 344 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); |
| 345 attached_contents_.erase(tab_contents); | 345 attached_contents_.erase(tab_contents); |
| 346 } | 346 } |
| OLD | NEW |