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

Unified Diff: chrome/browser/ui/webui/print_preview_handler.h

Issue 7792085: Print Preview: Handling pending print to pdf requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 9 years, 4 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/ui/webui/print_preview_handler.h
diff --git a/chrome/browser/ui/webui/print_preview_handler.h b/chrome/browser/ui/webui/print_preview_handler.h
index 7d6ce1671da02821f1106029bee27cb813c0b154..f191d5cf45a97128a14a80bb58577b3af4a44bc2 100644
--- a/chrome/browser/ui/webui/print_preview_handler.h
+++ b/chrome/browser/ui/webui/print_preview_handler.h
@@ -157,6 +157,10 @@ class PrintPreviewHandler : public WebUIMessageHandler,
// Clears initiator tab details for this preview tab.
void ClearInitiatorTabDetails();
+ // Posts a task to save to pdf at |path|. |is_pending| is true if the preview
+ // tab is hidden at the time the task is posted.
+ void PostPrintToPdfTask(FilePath& path, bool is_pending);
+
// Pointer to current print system.
scoped_refptr<printing::PrintBackend> print_backend_;
@@ -181,6 +185,8 @@ class PrintPreviewHandler : public WebUIMessageHandler,
// Whether we have already logged the number of printers this session.
bool has_logged_printers_count_;
+ FilePath pending_print_to_pdf_path_;
kmadhusu 2011/09/02 21:47:03 Document this variable.
dpapad 2011/09/07 00:46:19 Done.
+
DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
};

Powered by Google App Engine
This is Rietveld 408576698