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

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

Issue 7015026: Cancel prerenders for pages that call window.print() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment responses. Created 9 years, 7 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_job_manager.h
diff --git a/chrome/browser/printing/print_job_manager.h b/chrome/browser/printing/print_job_manager.h
index 1b629d9e82f6135a14fac50440fb7826d3cb42ed..5f7b6d2a87d5a7c3d2811d8e4247162f2e81c3de 100644
--- a/chrome/browser/printing/print_job_manager.h
+++ b/chrome/browser/printing/print_job_manager.h
@@ -45,6 +45,10 @@ class PrintJobManager : public NotificationObserver {
// TODO(maruel): Have them vanish after a timeout (~5 minutes?)
void QueuePrinterQuery(PrinterQuery* job);
+ // Pops a queued PrintJobWorkerOwner object and posts a task to stop the
+ // worker. Can be called from any thread.
+ void PopAndStopPrinterQuery(int document_cookie);
+
// Pops a queued PrintJobWorkerOwner object that was previously queued. Can be
// called from any thread. Current use case is poping from the browser thread.
void PopPrinterQuery(int document_cookie, scoped_refptr<PrinterQuery>* job);

Powered by Google App Engine
This is Rietveld 408576698