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_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 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 int page_count); | 49 int page_count); |
50 | 50 |
51 // content::NotificationObserver implementation. | 51 // content::NotificationObserver implementation. |
52 void Observe(int type, | 52 void Observe(int type, |
53 const content::NotificationSource& source, | 53 const content::NotificationSource& source, |
54 const content::NotificationDetails& details) override; | 54 const content::NotificationDetails& details) override; |
55 | 55 |
56 // PrintJobWorkerOwner implementation. | 56 // PrintJobWorkerOwner implementation. |
57 void GetSettingsDone(const PrintSettings& new_settings, | 57 void GetSettingsDone(const PrintSettings& new_settings, |
58 PrintingContext::Result result) override; | 58 PrintingContext::Result result) override; |
| 59 |
| 60 void ShowSystemDialogDone(PrintingContext::Result result) override; |
| 61 |
| 62 |
59 PrintJobWorker* DetachWorker(PrintJobWorkerOwner* new_owner) override; | 63 PrintJobWorker* DetachWorker(PrintJobWorkerOwner* new_owner) override; |
60 const PrintSettings& settings() const override; | 64 const PrintSettings& settings() const override; |
61 int cookie() const override; | 65 int cookie() const override; |
62 | 66 |
63 // Starts the actual printing. Signals the worker that it should begin to | 67 // Starts the actual printing. Signals the worker that it should begin to |
64 // spool as soon as data is available. | 68 // spool as soon as data is available. |
65 void StartPrinting(); | 69 void StartPrinting(); |
66 | 70 |
67 // Asks for the worker thread to finish its queued tasks and disconnects the | 71 // Asks for the worker thread to finish its queued tasks and disconnects the |
68 // delegate object. The PrintJobManager will remove its reference. This may | 72 // delegate object. The PrintJobManager will remove its reference. This may |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 scoped_refptr<PrintedDocument> document_; | 221 scoped_refptr<PrintedDocument> document_; |
218 scoped_refptr<PrintedPage> page_; | 222 scoped_refptr<PrintedPage> page_; |
219 const Type type_; | 223 const Type type_; |
220 | 224 |
221 DISALLOW_COPY_AND_ASSIGN(JobEventDetails); | 225 DISALLOW_COPY_AND_ASSIGN(JobEventDetails); |
222 }; | 226 }; |
223 | 227 |
224 } // namespace printing | 228 } // namespace printing |
225 | 229 |
226 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_ | 230 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_ |
OLD | NEW |