OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
11 #include "base/task.h" | 11 #include "base/task.h" |
12 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
13 #include "gfx/native_widget_types.h" | |
14 #include "printing/page_number.h" | 13 #include "printing/page_number.h" |
15 #include "printing/printing_context.h" | 14 #include "printing/printing_context.h" |
| 15 #include "ui/gfx/native_widget_types.h" |
16 | 16 |
17 namespace printing { | 17 namespace printing { |
18 | 18 |
19 class PrintedDocument; | 19 class PrintedDocument; |
20 class PrintedPage; | 20 class PrintedPage; |
21 class PrintJob; | 21 class PrintJob; |
22 class PrintJobWorkerOwner; | 22 class PrintJobWorkerOwner; |
23 | 23 |
24 // Worker thread code. All this code, except for the constructor, is executed in | 24 // Worker thread code. All this code, except for the constructor, is executed in |
25 // the worker thread. It manages the PrintingContext, which can be blocking | 25 // the worker thread. It manages the PrintingContext, which can be blocking |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 template <> | 124 template <> |
125 struct RunnableMethodTraits<printing::PrintJobWorker> { | 125 struct RunnableMethodTraits<printing::PrintJobWorker> { |
126 void RetainCallee(printing::PrintJobWorker* obj); | 126 void RetainCallee(printing::PrintJobWorker* obj); |
127 void ReleaseCallee(printing::PrintJobWorker* obj); | 127 void ReleaseCallee(printing::PrintJobWorker* obj); |
128 private: | 128 private: |
129 scoped_refptr<printing::PrintJobWorkerOwner> owner_; | 129 scoped_refptr<printing::PrintJobWorkerOwner> owner_; |
130 }; | 130 }; |
131 | 131 |
132 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H__ | 132 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H__ |
OLD | NEW |