diff options
Diffstat (limited to 'chrome/browser/printing/print_job_worker.h')
-rw-r--r-- | chrome/browser/printing/print_job_worker.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/printing/print_job_worker.h b/chrome/browser/printing/print_job_worker.h index 3e25ec5..5fb5fbd 100644 --- a/chrome/browser/printing/print_job_worker.h +++ b/chrome/browser/printing/print_job_worker.h @@ -25,7 +25,7 @@ class PrintJobWorkerOwner; // PrintJob always outlives its worker instance. class PrintJobWorker : public base::Thread { public: - PrintJobWorker(PrintJobWorkerOwner* owner); + explicit PrintJobWorker(PrintJobWorkerOwner* owner); ~PrintJobWorker(); void SetNewOwner(PrintJobWorkerOwner* new_owner); @@ -58,6 +58,10 @@ class PrintJobWorker : public base::Thread { // ALL_PAGES_REQUESTED notification once done. void RequestMissingPages(); + protected: + // Retrieves the context for testing only. + PrintingContext& printing_context() { return printing_context_; } + private: // The shared NotificationService service can only be accessed from the UI // thread, so this class encloses the necessary information to send the |