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 "printing/page_number.h" | 10 #include "printing/page_number.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // Current page number to print. | 91 // Current page number to print. |
92 PageNumber page_number_; | 92 PageNumber page_number_; |
93 | 93 |
94 DISALLOW_EVIL_CONSTRUCTORS(PrintJobWorker); | 94 DISALLOW_EVIL_CONSTRUCTORS(PrintJobWorker); |
95 }; | 95 }; |
96 | 96 |
97 } // namespace printing | 97 } // namespace printing |
98 | 98 |
99 template <> | 99 template <> |
100 struct RunnableMethodTraits<printing::PrintJobWorker> { | 100 struct RunnableMethodTraits<printing::PrintJobWorker> { |
101 RunnableMethodTraits(); | |
102 void RetainCallee(printing::PrintJobWorker* obj); | 101 void RetainCallee(printing::PrintJobWorker* obj); |
103 void ReleaseCallee(printing::PrintJobWorker* obj); | 102 void ReleaseCallee(printing::PrintJobWorker* obj); |
104 private: | 103 private: |
105 scoped_refptr<printing::PrintJobWorkerOwner> owner_; | 104 scoped_refptr<printing::PrintJobWorkerOwner> owner_; |
106 }; | 105 }; |
107 | 106 |
108 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H__ | 107 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H__ |
OLD | NEW |