| 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" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 TabContents* TabContentsDelegate::OpenURLFromTab(TabContents* source, | 28 TabContents* TabContentsDelegate::OpenURLFromTab(TabContents* source, |
| 29 const OpenURLParams& params) { | 29 const OpenURLParams& params) { |
| 30 return NULL; | 30 return NULL; |
| 31 } | 31 } |
| 32 | 32 |
| 33 void TabContentsDelegate::NavigationStateChanged(const TabContents* source, | 33 void TabContentsDelegate::NavigationStateChanged(const TabContents* source, |
| 34 unsigned changed_flags) { | 34 unsigned changed_flags) { |
| 35 } | 35 } |
| 36 | 36 |
| 37 std::string TabContentsDelegate::GetNavigationHeaders(const GURL& url) { | 37 void TabContentsDelegate::AddNavigationHeaders(const GURL& url, |
| 38 return std::string(); | 38 std::string* headers) { |
| 39 } | 39 } |
| 40 | 40 |
| 41 void TabContentsDelegate::AddNewContents(TabContents* source, | 41 void TabContentsDelegate::AddNewContents(TabContents* source, |
| 42 TabContents* new_contents, | 42 TabContents* new_contents, |
| 43 WindowOpenDisposition disposition, | 43 WindowOpenDisposition disposition, |
| 44 const gfx::Rect& initial_pos, | 44 const gfx::Rect& initial_pos, |
| 45 bool user_gesture) { | 45 bool user_gesture) { |
| 46 } | 46 } |
| 47 | 47 |
| 48 void TabContentsDelegate::ActivateContents(TabContents* contents) { | 48 void TabContentsDelegate::ActivateContents(TabContents* contents) { |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 326 |
| 327 void TabContentsDelegate::Attach(TabContents* tab_contents) { | 327 void TabContentsDelegate::Attach(TabContents* tab_contents) { |
| 328 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); | 328 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); |
| 329 attached_contents_.insert(tab_contents); | 329 attached_contents_.insert(tab_contents); |
| 330 } | 330 } |
| 331 | 331 |
| 332 void TabContentsDelegate::Detach(TabContents* tab_contents) { | 332 void TabContentsDelegate::Detach(TabContents* tab_contents) { |
| 333 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); | 333 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); |
| 334 attached_contents_.erase(tab_contents); | 334 attached_contents_.erase(tab_contents); |
| 335 } | 335 } |
| OLD | NEW |