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

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. 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..f87412ead3f09eba4077d8984a2fb84dcd725009 100644
--- a/content/browser/download/download_request_handle.cc
+++ b/content/browser/download/download_request_handle.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -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();
« no previous file with comments | « content/browser/download/download_manager_impl.cc ('k') | content/browser/download/mhtml_generation_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698