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

Unified Diff: chrome/browser/download/download_process_handle.cc

Issue 6973035: Move download stuff to download tab helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment tweak 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/download_process_handle.cc
diff --git a/chrome/browser/download/download_process_handle.cc b/chrome/browser/download/download_process_handle.cc
index f4c7f321ddda56d2205eceee447831c98efcbbde..ba0016e9422492265d3fc8ab4b558f2e619b9168 100644
--- a/chrome/browser/download/download_process_handle.cc
+++ b/chrome/browser/download/download_process_handle.cc
@@ -26,6 +26,11 @@ TabContents* DownloadProcessHandle::GetTabContents() {
return tab_util::GetTabContentsByID(child_id_, render_view_id_);
}
+TabContentsWrapper* DownloadProcessHandle::GetTabContentsWrapper() {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ return tab_util::GetTabContentsWrapperByID(child_id_, render_view_id_);
+}
+
DownloadManager* DownloadProcessHandle::GetDownloadManager() {
TabContents* contents = GetTabContents();
if (!contents)

Powered by Google App Engine
This is Rietveld 408576698