summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing/print_job_manager.h
diff options
context:
space:
mode:
authorstuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-07 23:21:12 +0000
committerstuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-07 23:21:12 +0000
commite7dd6d8bb28270d49684714aa03f8162ab558bc6 (patch)
tree18ee34fa7f4b5e35b08094278cff9f9187b0a5ed /chrome/browser/printing/print_job_manager.h
parent1c0585d585bc9f88ee177553b66e0025d7fe3aa0 (diff)
downloadchromium_src-e7dd6d8bb28270d49684714aa03f8162ab558bc6.zip
chromium_src-e7dd6d8bb28270d49684714aa03f8162ab558bc6.tar.gz
chromium_src-e7dd6d8bb28270d49684714aa03f8162ab558bc6.tar.bz2
Change the way we wait for print jobs at shutdown on the Mac
Don't try to run a message loop to wait for print jobs after the event loop has already been torn down, or bad things happen. BUG=28714 TEST=Start a large print job job, then immediately quit. The browser should not crash. Review URL: http://codereview.chromium.org/3565010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61878 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing/print_job_manager.h')
-rw-r--r--chrome/browser/printing/print_job_manager.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/printing/print_job_manager.h b/chrome/browser/printing/print_job_manager.h
index ca2bb47..017b732 100644
--- a/chrome/browser/printing/print_job_manager.h
+++ b/chrome/browser/printing/print_job_manager.h
@@ -29,6 +29,10 @@ class PrintJobManager : public NotificationObserver {
// On browser quit, we should wait to have the print job finished.
void OnQuit();
+ // Stops all printing jobs. If wait_for_finish is true, tries to give jobs
+ // a chance to complete before stopping them.
+ void StopJobs(bool wait_for_finish);
+
// Queues a semi-initialized worker thread. Can be called from any thread.
// Current use case is queuing from the I/O thread.
// TODO(maruel): Have them vanish after a timeout (~5 minutes?)