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

Unified Diff: chrome/browser/printing/print_view_manager.h

Issue 7104074: Attempt at fixing crash. It looks like the printing code can delete (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another comment tweak Created 9 years, 6 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/printing/print_view_manager.h
diff --git a/chrome/browser/printing/print_view_manager.h b/chrome/browser/printing/print_view_manager.h
index 3cad0f8a177f477c5b29f543fd3d2921e29c7a4c..f26061c909bdea66b01e26d9742b2cfcf41a32fd 100644
--- a/chrome/browser/printing/print_view_manager.h
+++ b/chrome/browser/printing/print_view_manager.h
@@ -14,7 +14,7 @@
#include "printing/printed_pages_source.h"
class RenderViewHost;
-class TabContents;
+class TabContentsWrapper;
struct PrintHostMsg_DidPrintPage_Params;
namespace printing {
@@ -29,7 +29,7 @@ class PrintViewManager : public NotificationObserver,
public PrintedPagesSource,
public TabContentsObserver {
public:
- explicit PrintViewManager(TabContents* tab_contents);
+ explicit PrintViewManager(TabContentsWrapper* tab);
virtual ~PrintViewManager();
// Override the title for this PrintViewManager's PrintJobs using the title
@@ -119,6 +119,9 @@ class PrintViewManager : public NotificationObserver,
// print_job_ is initialized.
bool OpportunisticallyCreatePrintJob(int cookie);
+ // TabContentsWrapper we're associated with.
+ TabContentsWrapper* tab_;
+
NotificationRegistrar registrar_;
// Manages the low-level talk to the printer.
« no previous file with comments | « chrome/browser/printing/background_printing_manager.cc ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698