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

Unified Diff: chrome/browser/prerender/prerender_contents.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for initial review. 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: chrome/browser/prerender/prerender_contents.cc
diff --git a/chrome/browser/prerender/prerender_contents.cc b/chrome/browser/prerender/prerender_contents.cc
index d81dfcfd9fbbc3ea9b4d87e5a2a5857203bedb32..f856550f94488c0e1f104549494d56240f4b31ae 100644
--- a/chrome/browser/prerender/prerender_contents.cc
+++ b/chrome/browser/prerender/prerender_contents.cc
@@ -255,9 +255,9 @@ void PrerenderContents::StartPrerendering(
gfx::Rect tab_bounds = prerender_manager_->config().default_tab_bounds;
if (source_render_view_host) {
- DCHECK(source_render_view_host->view() != NULL);
+ DCHECK(source_render_view_host->GetView() != NULL);
WebContents* source_wc =
- source_render_view_host->delegate()->GetAsWebContents();
+ source_render_view_host->GetDelegate()->GetAsWebContents();
if (source_wc) {
// Set the size of the new TC to that of the old TC.
source_wc->GetView()->GetContainerBounds(&tab_bounds);
@@ -286,8 +286,8 @@ void PrerenderContents::StartPrerendering(
render_view_host_observer_.reset(
new PrerenderRenderViewHostObserver(this, render_view_host_mutable()));
- child_id_ = render_view_host()->process()->GetID();
- route_id_ = render_view_host()->routing_id();
+ child_id_ = render_view_host()->GetProcess()->GetID();
+ route_id_ = render_view_host()->GetRoutingID();
// Register this with the ResourceDispatcherHost as a prerender
// RenderViewHost. This must be done before the Navigate message to catch all
@@ -420,7 +420,7 @@ void PrerenderContents::Observe(int type,
// the TabContents is created.
new_render_view_host->Send(
new ChromeViewMsg_SetIsPrerendering(
- new_render_view_host->routing_id(),
+ new_render_view_host->GetRoutingID(),
true));
// Make sure the size of the RenderViewHost has been passed to the new
@@ -588,9 +588,9 @@ void PrerenderContents::Destroy(FinalStatus final_status) {
base::ProcessMetrics* PrerenderContents::MaybeGetProcessMetrics() {
if (process_metrics_.get() == NULL) {
// If a PrenderContents hasn't started prerending, don't be fully formed.
- if (!render_view_host() || !render_view_host()->process())
+ if (!render_view_host() || !render_view_host()->GetProcess())
return NULL;
- base::ProcessHandle handle = render_view_host()->process()->GetHandle();
+ base::ProcessHandle handle = render_view_host()->GetProcess()->GetHandle();
if (handle == base::kNullProcessHandle)
return NULL;
#if !defined(OS_MACOSX)

Powered by Google App Engine
This is Rietveld 408576698