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