diff options
author | sverrir@google.com <sverrir@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-03 15:27:15 +0000 |
---|---|---|
committer | sverrir@google.com <sverrir@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-03 15:27:15 +0000 |
commit | e1504d80b03baf88f01709157c94806d94add2c0 (patch) | |
tree | 67e5708fcca34da70c25665d8f556dd43da05be2 /chrome/browser/printing/print_job_manager.h | |
parent | a21767477fef894a75d0b13a8da3da6cdc2f5e3e (diff) | |
download | chromium_src-e1504d80b03baf88f01709157c94806d94add2c0.zip chromium_src-e1504d80b03baf88f01709157c94806d94add2c0.tar.gz chromium_src-e1504d80b03baf88f01709157c94806d94add2c0.tar.bz2 |
Remove unused notification in print code to simplify before refactoring.
Removed the PRINTED_DOCUMENT_UPDATED notification and move the debug output from PrintJobManager to PrintedDocument.
Also made the --debug-print startup parameter only active in non-official builds.
BUG=none
TEST=Should have no functional affect.
Review URL: http://codereview.chromium.org/149148
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19907 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing/print_job_manager.h')
-rw-r--r-- | chrome/browser/printing/print_job_manager.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/chrome/browser/printing/print_job_manager.h b/chrome/browser/printing/print_job_manager.h index 4262a15..ec5febb 100644 --- a/chrome/browser/printing/print_job_manager.h +++ b/chrome/browser/printing/print_job_manager.h @@ -42,18 +42,6 @@ class PrintJobManager : public NotificationObserver { const NotificationSource& source, const NotificationDetails& details); - // Sets a path where to dump EMF data files. This enables debug behavior where - // every rendered pages are dumped as-is. By default the path is empty, which - // disables the dumping. - // TODO(maruel): Remove me once printing is awesome. - void set_debug_dump_path(const std::wstring& debug_dump_path) { - debug_dump_path_ = debug_dump_path; - } - - const std::wstring& debug_dump_path() const { - return debug_dump_path_; - } - private: typedef std::vector<scoped_refptr<PrintJob> > PrintJobs; typedef std::vector<scoped_refptr<PrinterQuery> > PrinterQueries; @@ -62,12 +50,6 @@ class PrintJobManager : public NotificationObserver { void OnPrintJobEvent(PrintJob* print_job, const JobEventDetails& event_details); - // Processes a NOTIFY_PRINTED_DOCUMENT_UPDATED notification. When - // debug_dump_path_ is not empty, it is processed to detect newly rendered - // pages and to dump their EMF buffer. - void OnPrintedDocumentUpdated(const PrintedDocument& document, - const PrintedPage& page); - NotificationRegistrar registrar_; // Used to serialize access to queued_workers_. @@ -78,11 +60,6 @@ class PrintJobManager : public NotificationObserver { // Current print jobs that are active. PrintJobs current_jobs_; - // Path where debug dump of EMF buffer are saved. Empty by default. When - // empty, EMF dumping is disabled. - // TODO(maruel): Remove me once printing is awesome. - std::wstring debug_dump_path_; - DISALLOW_EVIL_CONSTRUCTORS(PrintJobManager); }; |