| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_H_ |
| 6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "chrome/browser/printing/print_job_worker_owner.h" | 14 #include "chrome/browser/printing/print_job_worker_owner.h" |
| 15 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
| 16 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 class RefCountedMemory; | 19 class RefCountedMemory; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace printing { | 22 namespace printing { |
| 23 | 23 |
| 24 class JobEventDetails; | 24 class JobEventDetails; |
| 25 class MetafilePlayer; | 25 class MetafilePlayer; |
| 26 class PdfToEmfConverter; | |
| 27 class PrintJobWorker; | 26 class PrintJobWorker; |
| 28 class PrintedDocument; | 27 class PrintedDocument; |
| 29 class PrintedPage; | 28 class PrintedPage; |
| 30 class PrintedPagesSource; | 29 class PrintedPagesSource; |
| 31 class PrinterQuery; | 30 class PrinterQuery; |
| 32 | 31 |
| 33 // Manages the print work for a specific document. Talks to the printer through | 32 // Manages the print work for a specific document. Talks to the printer through |
| 34 // PrintingContext through PrintJobWorker. Hides access to PrintingContext in a | 33 // PrintingContext through PrintJobWorker. Hides access to PrintingContext in a |
| 35 // worker thread so the caller never blocks. PrintJob will send notifications on | 34 // worker thread so the caller never blocks. PrintJob will send notifications on |
| 36 // any state change. While printing, the PrintJobManager instance keeps a | 35 // any state change. While printing, the PrintJobManager instance keeps a |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 scoped_refptr<PrintedDocument> document_; | 222 scoped_refptr<PrintedDocument> document_; |
| 224 scoped_refptr<PrintedPage> page_; | 223 scoped_refptr<PrintedPage> page_; |
| 225 const Type type_; | 224 const Type type_; |
| 226 | 225 |
| 227 DISALLOW_COPY_AND_ASSIGN(JobEventDetails); | 226 DISALLOW_COPY_AND_ASSIGN(JobEventDetails); |
| 228 }; | 227 }; |
| 229 | 228 |
| 230 } // namespace printing | 229 } // namespace printing |
| 231 | 230 |
| 232 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_ | 231 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_ |
| OLD | NEW |