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

Unified Diff: content/browser/download/download_request_handle.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR, fix a weird runtime issue. Created 8 years, 10 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: content/browser/download/download_request_handle.cc
diff --git a/content/browser/download/download_request_handle.cc b/content/browser/download/download_request_handle.cc
index 09234b3170397f5a70ed59aeda4de1208d5534ca..d9ed0ee257fb24fee761e0cf3c5eb106247239c1 100644
--- a/content/browser/download/download_request_handle.cc
+++ b/content/browser/download/download_request_handle.cc
@@ -56,20 +56,21 @@ DownloadRequestHandle::DownloadRequestHandle(ResourceDispatcherHost* rdh,
}
TabContents* DownloadRequestHandle::GetTabContents() const {
- RenderViewHost* render_view_host =
- RenderViewHost::FromID(child_id_, render_view_id_);
+ RenderViewHostImpl* render_view_host =
+ RenderViewHostImpl::FromID(child_id_, render_view_id_);
if (!render_view_host)
return NULL;
return static_cast<TabContents*>(
- render_view_host->delegate()->GetAsWebContents());
+ render_view_host->GetDelegate()->GetAsWebContents());
}
DownloadManager* DownloadRequestHandle::GetDownloadManager() const {
- RenderViewHost* rvh = RenderViewHost::FromID(child_id_, render_view_id_);
+ RenderViewHostImpl* rvh = RenderViewHostImpl::FromID(
+ child_id_, render_view_id_);
if (rvh == NULL)
return NULL;
- content::RenderProcessHost* rph = rvh->process();
+ content::RenderProcessHost* rph = rvh->GetProcess();
if (rph == NULL)
return NULL;
content::BrowserContext* context = rph->GetBrowserContext();

Powered by Google App Engine
This is Rietveld 408576698