| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 } | 138 } |
| 139 | 139 |
| 140 bool TabContentsDelegate::HandleContextMenu(const ContextMenuParams& params) { | 140 bool TabContentsDelegate::HandleContextMenu(const ContextMenuParams& params) { |
| 141 return false; | 141 return false; |
| 142 } | 142 } |
| 143 | 143 |
| 144 bool TabContentsDelegate::ExecuteContextMenuCommand(int command) { | 144 bool TabContentsDelegate::ExecuteContextMenuCommand(int command) { |
| 145 return false; | 145 return false; |
| 146 } | 146 } |
| 147 | 147 |
| 148 void TabContentsDelegate::ShowPageInfo(Profile* profile, | 148 void TabContentsDelegate::ShowPageInfo(content::BrowserContext* browser_context, |
| 149 const GURL& url, | 149 const GURL& url, |
| 150 const NavigationEntry::SSLStatus& ssl, | 150 const NavigationEntry::SSLStatus& ssl, |
| 151 bool show_history) { | 151 bool show_history) { |
| 152 } | 152 } |
| 153 | 153 |
| 154 void TabContentsDelegate::ViewSourceForTab(TabContents* source, | 154 void TabContentsDelegate::ViewSourceForTab(TabContents* source, |
| 155 const GURL& page_url) { | 155 const GURL& page_url) { |
| 156 // Fall back implementation based entirely on the view-source scheme. | 156 // Fall back implementation based entirely on the view-source scheme. |
| 157 // It suffers from http://crbug.com/523 and that is why browser overrides | 157 // It suffers from http://crbug.com/523 and that is why browser overrides |
| 158 // it with proper implementation. | 158 // it with proper implementation. |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 | 284 |
| 285 void TabContentsDelegate::Attach(TabContents* tab_contents) { | 285 void TabContentsDelegate::Attach(TabContents* tab_contents) { |
| 286 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); | 286 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); |
| 287 attached_contents_.insert(tab_contents); | 287 attached_contents_.insert(tab_contents); |
| 288 } | 288 } |
| 289 | 289 |
| 290 void TabContentsDelegate::Detach(TabContents* tab_contents) { | 290 void TabContentsDelegate::Detach(TabContents* tab_contents) { |
| 291 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); | 291 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); |
| 292 attached_contents_.erase(tab_contents); | 292 attached_contents_.erase(tab_contents); |
| 293 } | 293 } |
| OLD | NEW |