| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 // NotificationObserver | 48 // NotificationObserver |
| 49 virtual void Observe(NotificationType type, | 49 virtual void Observe(NotificationType type, |
| 50 const NotificationSource& source, | 50 const NotificationSource& source, |
| 51 const NotificationDetails& details); | 51 const NotificationDetails& details); |
| 52 | 52 |
| 53 // PrintJobWorkerOwner | 53 // PrintJobWorkerOwner |
| 54 virtual void GetSettingsDone(const PrintSettings& new_settings, | 54 virtual void GetSettingsDone(const PrintSettings& new_settings, |
| 55 PrintingContext::Result result); | 55 PrintingContext::Result result); |
| 56 virtual PrintJobWorker* DetachWorker(PrintJobWorkerOwner* new_owner); | 56 virtual PrintJobWorker* DetachWorker(PrintJobWorkerOwner* new_owner); |
| 57 virtual MessageLoop* message_loop() { return ui_message_loop_; } | 57 virtual MessageLoop* message_loop(); |
| 58 virtual const PrintSettings& settings() const { return settings_; } | 58 virtual const PrintSettings& settings() const; |
| 59 virtual int cookie() const; | 59 virtual int cookie() const; |
| 60 | 60 |
| 61 // DestructionObserver | 61 // DestructionObserver |
| 62 virtual void WillDestroyCurrentMessageLoop(); | 62 virtual void WillDestroyCurrentMessageLoop(); |
| 63 | 63 |
| 64 // Starts the actual printing. Signals the worker that it should begin to | 64 // Starts the actual printing. Signals the worker that it should begin to |
| 65 // spool as soon as data is available. | 65 // spool as soon as data is available. |
| 66 void StartPrinting(); | 66 void StartPrinting(); |
| 67 | 67 |
| 68 // Waits for the worker thread to finish its queued tasks and disconnects the | 68 // Waits for the worker thread to finish its queued tasks and disconnects the |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 scoped_refptr<PrintedDocument> document_; | 200 scoped_refptr<PrintedDocument> document_; |
| 201 scoped_refptr<PrintedPage> page_; | 201 scoped_refptr<PrintedPage> page_; |
| 202 const Type type_; | 202 const Type type_; |
| 203 | 203 |
| 204 DISALLOW_COPY_AND_ASSIGN(JobEventDetails); | 204 DISALLOW_COPY_AND_ASSIGN(JobEventDetails); |
| 205 }; | 205 }; |
| 206 | 206 |
| 207 } // namespace printing | 207 } // namespace printing |
| 208 | 208 |
| 209 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_ | 209 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_ |
| OLD | NEW |