diff options
Diffstat (limited to 'chrome/browser/printing/print_job.h')
-rw-r--r-- | chrome/browser/printing/print_job.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/printing/print_job.h b/chrome/browser/printing/print_job.h index 3d0353f..eec13db 100644 --- a/chrome/browser/printing/print_job.h +++ b/chrome/browser/printing/print_job.h @@ -38,7 +38,6 @@ class PrintJob : public PrintJobWorkerOwner, // Create a empty PrintJob. When initializing with this constructor, // post-constructor initialization must be done with Initialize(). PrintJob(); - virtual ~PrintJob(); // Grabs the ownership of the PrintJobWorker from another job, which is // usually a PrinterQuery. @@ -92,6 +91,8 @@ class PrintJob : public PrintJobWorkerOwner, // Access the current printed document. Warning: may be NULL. PrintedDocument* document() const; + protected: + virtual ~PrintJob(); private: // Updates document_ to a new instance. @@ -181,7 +182,6 @@ class JobEventDetails : public base::RefCountedThreadSafe<JobEventDetails> { }; JobEventDetails(Type type, PrintedDocument* document, PrintedPage* page); - ~JobEventDetails(); // Getters. PrintedDocument* document() const; @@ -191,6 +191,10 @@ class JobEventDetails : public base::RefCountedThreadSafe<JobEventDetails> { } private: + friend class base::RefCountedThreadSafe<JobEventDetails>; + + ~JobEventDetails(); + scoped_refptr<PrintedDocument> document_; scoped_refptr<PrintedPage> page_; const Type type_; |