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 "chrome/common/url_constants.h" | 7 #include "chrome/common/url_constants.h" |
8 #include "ui/gfx/rect.h" | 8 #include "ui/gfx/rect.h" |
9 | 9 |
10 std::string TabContentsDelegate::GetNavigationHeaders(const GURL& url) { | 10 std::string TabContentsDelegate::GetNavigationHeaders(const GURL& url) { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 TabContents* contents, bool blocked) { | 88 TabContents* contents, bool blocked) { |
89 } | 89 } |
90 | 90 |
91 void TabContentsDelegate::TabContentsFocused(TabContents* tab_content) { | 91 void TabContentsDelegate::TabContentsFocused(TabContents* tab_content) { |
92 } | 92 } |
93 | 93 |
94 int TabContentsDelegate::GetExtraRenderViewHeight() const { | 94 int TabContentsDelegate::GetExtraRenderViewHeight() const { |
95 return 0; | 95 return 0; |
96 } | 96 } |
97 | 97 |
98 bool TabContentsDelegate::CanDownload(int request_id) { | |
99 return true; | |
100 } | |
101 | |
102 void TabContentsDelegate::OnStartDownload(DownloadItem* download, | |
103 TabContents* tab) { | |
104 } | |
105 | |
106 bool TabContentsDelegate::HandleContextMenu(const ContextMenuParams& params) { | 98 bool TabContentsDelegate::HandleContextMenu(const ContextMenuParams& params) { |
107 return false; | 99 return false; |
108 } | 100 } |
109 | 101 |
110 bool TabContentsDelegate::ExecuteContextMenuCommand(int command) { | 102 bool TabContentsDelegate::ExecuteContextMenuCommand(int command) { |
111 return false; | 103 return false; |
112 } | 104 } |
113 | 105 |
114 void TabContentsDelegate::ShowPageInfo(Profile* profile, | 106 void TabContentsDelegate::ShowPageInfo(Profile* profile, |
115 const GURL& url, | 107 const GURL& url, |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 | 200 |
209 bool TabContentsDelegate::ShouldShowHungRendererDialog() { | 201 bool TabContentsDelegate::ShouldShowHungRendererDialog() { |
210 return true; | 202 return true; |
211 } | 203 } |
212 | 204 |
213 void TabContentsDelegate::WorkerCrashed() { | 205 void TabContentsDelegate::WorkerCrashed() { |
214 } | 206 } |
215 | 207 |
216 TabContentsDelegate::~TabContentsDelegate() { | 208 TabContentsDelegate::~TabContentsDelegate() { |
217 } | 209 } |
OLD | NEW |