| 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_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/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 // Reports settings back to owner_. | 126 // Reports settings back to owner_. |
| 127 void GetSettingsDone(PrintingContext::Result result); | 127 void GetSettingsDone(PrintingContext::Result result); |
| 128 | 128 |
| 129 // Use the default settings. When using GTK+ or Mac, this can still end up | 129 // Use the default settings. When using GTK+ or Mac, this can still end up |
| 130 // displaying a dialog. So this needs to happen from the UI thread on these | 130 // displaying a dialog. So this needs to happen from the UI thread on these |
| 131 // systems. | 131 // systems. |
| 132 void UseDefaultSettings(); | 132 void UseDefaultSettings(); |
| 133 | 133 |
| 134 // Printing context delegate. | 134 // Printing context delegate. |
| 135 scoped_ptr<PrintingContext::Delegate, | 135 scoped_ptr<PrintingContext::Delegate> printing_context_delegate_; |
| 136 content::BrowserThread::DeleteOnUIThread> | |
| 137 printing_context_delegate_; | |
| 138 | 136 |
| 139 // Information about the printer setting. | 137 // Information about the printer setting. |
| 140 scoped_ptr<PrintingContext> printing_context_; | 138 scoped_ptr<PrintingContext> printing_context_; |
| 141 | 139 |
| 142 // The printed document. Only has read-only access. | 140 // The printed document. Only has read-only access. |
| 143 scoped_refptr<PrintedDocument> document_; | 141 scoped_refptr<PrintedDocument> document_; |
| 144 | 142 |
| 145 // The print destination, may be NULL. | 143 // The print destination, may be NULL. |
| 146 scoped_refptr<PrintDestinationInterface> destination_; | 144 scoped_refptr<PrintDestinationInterface> destination_; |
| 147 | 145 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 160 | 158 |
| 161 // Used to generate a WeakPtr for callbacks. | 159 // Used to generate a WeakPtr for callbacks. |
| 162 base::WeakPtrFactory<PrintJobWorker> weak_factory_; | 160 base::WeakPtrFactory<PrintJobWorker> weak_factory_; |
| 163 | 161 |
| 164 DISALLOW_COPY_AND_ASSIGN(PrintJobWorker); | 162 DISALLOW_COPY_AND_ASSIGN(PrintJobWorker); |
| 165 }; | 163 }; |
| 166 | 164 |
| 167 } // namespace printing | 165 } // namespace printing |
| 168 | 166 |
| 169 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H_ | 167 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H_ |
| OLD | NEW |