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

Unified Diff: content/browser/download/mhtml_generation_manager.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
« no previous file with comments | « content/browser/download/download_request_handle.cc ('k') | content/browser/download/save_file_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/mhtml_generation_manager.cc
diff --git a/content/browser/download/mhtml_generation_manager.cc b/content/browser/download/mhtml_generation_manager.cc
index a769ee7f59cf681f75a258bf100bb8ae35e00562..66c2f8bcbc86194650a12e3a11291ab202ab97ac 100644
--- a/content/browser/download/mhtml_generation_manager.cc
+++ b/content/browser/download/mhtml_generation_manager.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.
@@ -48,7 +48,7 @@ void MHTMLGenerationManager::GenerateMHTML(
Job job;
job.file_path = file;
job.process_id = web_contents->GetRenderProcessHost()->GetID();
- job.routing_id = web_contents->GetRenderViewHost()->routing_id();
+ job.routing_id = web_contents->GetRenderViewHost()->GetRoutingID();
job.callback = callback;
id_to_job_[job_id] = job;
@@ -103,14 +103,15 @@ void MHTMLGenerationManager::FileCreated(int job_id,
job.browser_file = browser_file;
job.renderer_file = renderer_file;
- RenderViewHost* rvh = RenderViewHost::FromID(job.process_id, job.routing_id);
+ RenderViewHostImpl* rvh = RenderViewHostImpl::FromID(
+ job.process_id, job.routing_id);
if (!rvh) {
// The tab went away.
JobFinished(job_id, -1);
return;
}
- rvh->Send(new ViewMsg_SavePageAsMHTML(rvh->routing_id(), job_id,
+ rvh->Send(new ViewMsg_SavePageAsMHTML(rvh->GetRoutingID(), job_id,
renderer_file));
}
« no previous file with comments | « content/browser/download/download_request_handle.cc ('k') | content/browser/download/save_file_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698