Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: content/browser/tab_contents/tab_contents_delegate.cc

Issue 6973035: Move download stuff to download tab helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Oops, forgot to add tab watcher as delegate with CF. Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 TabContents* contents, bool blocked) { 86 TabContents* contents, bool blocked) {
87 } 87 }
88 88
89 void TabContentsDelegate::TabContentsFocused(TabContents* tab_content) { 89 void TabContentsDelegate::TabContentsFocused(TabContents* tab_content) {
90 } 90 }
91 91
92 int TabContentsDelegate::GetExtraRenderViewHeight() const { 92 int TabContentsDelegate::GetExtraRenderViewHeight() const {
93 return 0; 93 return 0;
94 } 94 }
95 95
96 bool TabContentsDelegate::CanDownload(int request_id) {
97 return true;
98 }
99
100 void TabContentsDelegate::OnStartDownload(DownloadItem* download,
101 TabContents* tab) {
102 }
103
104 bool TabContentsDelegate::HandleContextMenu(const ContextMenuParams& params) { 96 bool TabContentsDelegate::HandleContextMenu(const ContextMenuParams& params) {
105 return false; 97 return false;
106 } 98 }
107 99
108 bool TabContentsDelegate::ExecuteContextMenuCommand(int command) { 100 bool TabContentsDelegate::ExecuteContextMenuCommand(int command) {
109 return false; 101 return false;
110 } 102 }
111 103
112 void TabContentsDelegate::ShowPageInfo(Profile* profile, 104 void TabContentsDelegate::ShowPageInfo(Profile* profile,
113 const GURL& url, 105 const GURL& url,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 194
203 bool TabContentsDelegate::ShouldShowHungRendererDialog() { 195 bool TabContentsDelegate::ShouldShowHungRendererDialog() {
204 return true; 196 return true;
205 } 197 }
206 198
207 void TabContentsDelegate::WorkerCrashed() { 199 void TabContentsDelegate::WorkerCrashed() {
208 } 200 }
209 201
210 TabContentsDelegate::~TabContentsDelegate() { 202 TabContentsDelegate::~TabContentsDelegate() {
211 } 203 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents_delegate.h ('k') | content/browser/tab_contents/tab_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698