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

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

Issue 10483006: Print support for Windows Metro... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to ToT... Created 8 years, 6 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
« no previous file with comments | « chrome/app/chrome_command_ids.h ('k') | chrome/browser/printing/print_job_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4fc34d4a3213bfe0c2020cc069cda03b0d52f457..3ea70a63cec5365d459bc3833c2e7a8585b59437 100644
--- a/chrome/browser/printing/print_job_manager.h
+++ b/chrome/browser/printing/print_job_manager.h
@@ -13,6 +13,7 @@
#include "chrome/browser/prefs/pref_member.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
+#include "printing/print_destination_interface.h"
class PrefService;
@@ -38,6 +39,9 @@ class PrintJobManager : public content::NotificationObserver {
// a chance to complete before stopping them.
void StopJobs(bool wait_for_finish);
+ // Sets the print destination to be set on the next print job.
+ void SetPrintDestination(PrintDestinationInterface* destination);
+
// 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?)
@@ -58,6 +62,9 @@ class PrintJobManager : public content::NotificationObserver {
// prefs::kPrintingEnabled via g_browser_process->local_state() directly.
bool printing_enabled() const;
+ // May return NULL when no destination was set.
+ PrintDestinationInterface* destination() const { return destination_.get(); }
+
private:
typedef std::vector<scoped_refptr<PrintJob> > PrintJobs;
typedef std::vector<scoped_refptr<PrinterQuery> > PrinterQueries;
@@ -83,6 +90,8 @@ class PrintJobManager : public content::NotificationObserver {
PrinterQueries queued_queries_;
+ scoped_refptr<PrintDestinationInterface> destination_;
+
// Current print jobs that are active.
PrintJobs current_jobs_;
« no previous file with comments | « chrome/app/chrome_command_ids.h ('k') | chrome/browser/printing/print_job_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698