| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_WORKER_H__ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H__ |
| 6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H__ | 6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H__ |
| 7 | 7 |
| 8 #include "base/task.h" | 8 #include "base/task.h" |
| 9 #include "base/thread.h" | 9 #include "base/thread.h" |
| 10 #include "chrome/browser/printing/page_number.h" | 10 #include "printing/page_number.h" |
| 11 #include "chrome/browser/printing/win_printing_context.h" | 11 #include "printing/printing_context.h" |
| 12 | 12 |
| 13 namespace printing { | 13 namespace printing { |
| 14 | 14 |
| 15 class PrintedDocument; | 15 class PrintedDocument; |
| 16 class PrintedPage; | 16 class PrintedPage; |
| 17 class PrintJob; | 17 class PrintJob; |
| 18 class PrintJobWorkerOwner; | 18 class PrintJobWorkerOwner; |
| 19 | 19 |
| 20 // Worker thread code. All this code, except for the constructor, is executed in | 20 // Worker thread code. All this code, except for the constructor, is executed in |
| 21 // the worker thread. It manages the PrintingContext, which can be blocking | 21 // the worker thread. It manages the PrintingContext, which can be blocking |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 template <> | 99 template <> |
| 100 struct RunnableMethodTraits<printing::PrintJobWorker> { | 100 struct RunnableMethodTraits<printing::PrintJobWorker> { |
| 101 RunnableMethodTraits(); | 101 RunnableMethodTraits(); |
| 102 void RetainCallee(printing::PrintJobWorker* obj); | 102 void RetainCallee(printing::PrintJobWorker* obj); |
| 103 void ReleaseCallee(printing::PrintJobWorker* obj); | 103 void ReleaseCallee(printing::PrintJobWorker* obj); |
| 104 private: | 104 private: |
| 105 scoped_refptr<printing::PrintJobWorkerOwner> owner_; | 105 scoped_refptr<printing::PrintJobWorkerOwner> owner_; |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H__ | 108 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H__ |
| OLD | NEW |