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

Unified Diff: chrome/browser/printing/print_preview_tab_controller.cc

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « chrome/browser/printing/print_preview_tab_controller.h ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_preview_tab_controller.cc
===================================================================
--- chrome/browser/printing/print_preview_tab_controller.cc (revision 110571)
+++ chrome/browser/printing/print_preview_tab_controller.cc (working copy)
@@ -41,7 +41,7 @@
void EnableInternalPDFPluginForTab(TabContentsWrapper* preview_tab) {
// Always enable the internal PDF plugin for the print preview page.
ChromePluginServiceFilter::GetInstance()->OverridePluginForTab(
- preview_tab->render_view_host()->process()->id(),
+ preview_tab->render_view_host()->process()->GetID(),
preview_tab->render_view_host()->routing_id(),
GURL(),
ASCIIToUTF16(chrome::ChromeContentClient::kPDFPluginName));
@@ -196,7 +196,8 @@
const content::NotificationDetails& details) {
switch (type) {
case content::NOTIFICATION_RENDERER_PROCESS_CLOSED: {
- OnRendererProcessClosed(content::Source<RenderProcessHost>(source).ptr());
+ OnRendererProcessClosed(
+ content::Source<content::RenderProcessHost>(source).ptr());
break;
}
case content::NOTIFICATION_TAB_CONTENTS_DESTROYED: {
@@ -225,7 +226,7 @@
}
void PrintPreviewTabController::OnRendererProcessClosed(
- RenderProcessHost* rph) {
+ content::RenderProcessHost* rph) {
// Store tabs in a vector and deal with them after iterating through
// |preview_tab_map_| because RemoveFooTab() can change |preview_tab_map_|.
std::vector<TabContentsWrapper*> closed_initiator_tabs;
@@ -404,12 +405,13 @@
// Multiple sites may share the same RenderProcessHost, so check if this
// notification has already been added.
- RenderProcessHost* rph = tab->render_view_host()->process();
+ content::RenderProcessHost* rph = tab->render_view_host()->process();
if (!registrar_.IsRegistered(this,
content::NOTIFICATION_RENDERER_PROCESS_CLOSED,
- content::Source<RenderProcessHost>(rph))) {
+ content::Source<content::RenderProcessHost>(
+ rph))) {
registrar_.Add(this, content::NOTIFICATION_RENDERER_PROCESS_CLOSED,
- content::Source<RenderProcessHost>(rph));
+ content::Source<content::RenderProcessHost>(rph));
}
}
@@ -423,12 +425,13 @@
// Multiple sites may share the same RenderProcessHost, so check if this
// notification has already been added.
- RenderProcessHost* rph = tab->render_view_host()->process();
+ content::RenderProcessHost* rph = tab->render_view_host()->process();
if (registrar_.IsRegistered(this,
content::NOTIFICATION_RENDERER_PROCESS_CLOSED,
- content::Source<RenderProcessHost>(rph))) {
+ content::Source<content::RenderProcessHost>(
+ rph))) {
registrar_.Remove(this, content::NOTIFICATION_RENDERER_PROCESS_CLOSED,
- content::Source<RenderProcessHost>(rph));
+ content::Source<content::RenderProcessHost>(rph));
}
}
« no previous file with comments | « chrome/browser/printing/print_preview_tab_controller.h ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698