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

Unified Diff: chrome/browser/printing/background_printing_manager.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
Index: chrome/browser/printing/background_printing_manager.cc
===================================================================
--- chrome/browser/printing/background_printing_manager.cc (revision 110571)
+++ chrome/browser/printing/background_printing_manager.cc (working copy)
@@ -58,12 +58,13 @@
//
// Multiple sites may share the same RenderProcessHost, so check if this
// notification has already been added.
- RenderProcessHost* rph = preview_tab->render_view_host()->process();
+ content::RenderProcessHost* rph = preview_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));
}
// Activate the initiator tab.
@@ -85,7 +86,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 chrome::NOTIFICATION_PRINT_JOB_RELEASED: {
@@ -106,7 +108,7 @@
}
void BackgroundPrintingManager::OnRendererProcessClosed(
- RenderProcessHost* rph) {
+ content::RenderProcessHost* rph) {
TabContentsWrapperSet preview_tabs_pending_deletion;
TabContentsWrapperSet::const_iterator it;
for (it = begin(); it != end(); ++it) {
@@ -143,9 +145,10 @@
bool shared_rph = HasSharedRenderProcessHost(printing_tabs_, preview_tab) ||
HasSharedRenderProcessHost(printing_tabs_pending_deletion_, preview_tab);
if (!shared_rph) {
- RenderProcessHost* rph = preview_tab->render_view_host()->process();
+ content::RenderProcessHost* rph =
+ preview_tab->render_view_host()->process();
registrar_.Remove(this, content::NOTIFICATION_RENDERER_PROCESS_CLOSED,
- content::Source<RenderProcessHost>(rph));
+ content::Source<content::RenderProcessHost>(rph));
}
// Remove other notifications and remove the tab from its
@@ -171,7 +174,7 @@
bool BackgroundPrintingManager::HasSharedRenderProcessHost(
const TabContentsWrapperSet& set,
TabContentsWrapper* tab) {
- RenderProcessHost* rph = tab->render_view_host()->process();
+ content::RenderProcessHost* rph = tab->render_view_host()->process();
for (TabContentsWrapperSet::const_iterator it = set.begin();
it != set.end();
++it) {
« no previous file with comments | « chrome/browser/printing/background_printing_manager.h ('k') | chrome/browser/printing/print_preview_tab_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698