OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_OWNER_H__ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_OWNER_H__ |
6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_OWNER_H__ | 6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_OWNER_H__ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "printing/printing_context.h" | 9 #include "printing/printing_context.h" |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 : public base::RefCountedThreadSafe<PrintJobWorkerOwner> { | 26 : public base::RefCountedThreadSafe<PrintJobWorkerOwner> { |
27 public: | 27 public: |
28 PrintJobWorkerOwner(); | 28 PrintJobWorkerOwner(); |
29 | 29 |
30 // Finishes the initialization began by PrintJobWorker::GetSettings(). | 30 // Finishes the initialization began by PrintJobWorker::GetSettings(). |
31 // Creates a new PrintedDocument if necessary. Solely meant to be called by | 31 // Creates a new PrintedDocument if necessary. Solely meant to be called by |
32 // PrintJobWorker. | 32 // PrintJobWorker. |
33 virtual void GetSettingsDone(const PrintSettings& new_settings, | 33 virtual void GetSettingsDone(const PrintSettings& new_settings, |
34 PrintingContext::Result result) = 0; | 34 PrintingContext::Result result) = 0; |
35 | 35 |
| 36 virtual void ShowSystemDialogDone(PrintingContext::Result result) = 0; |
| 37 |
36 // Detach the PrintJobWorker associated to this object. | 38 // Detach the PrintJobWorker associated to this object. |
37 virtual PrintJobWorker* DetachWorker(PrintJobWorkerOwner* new_owner) = 0; | 39 virtual PrintJobWorker* DetachWorker(PrintJobWorkerOwner* new_owner) = 0; |
38 | 40 |
39 // Access the current settings. | 41 // Access the current settings. |
40 virtual const PrintSettings& settings() const = 0; | 42 virtual const PrintSettings& settings() const = 0; |
41 | 43 |
42 // Cookie uniquely identifying the PrintedDocument and/or loaded settings. | 44 // Cookie uniquely identifying the PrintedDocument and/or loaded settings. |
43 virtual int cookie() const = 0; | 45 virtual int cookie() const = 0; |
44 | 46 |
45 // Returns true if the current thread is a thread on which a task | 47 // Returns true if the current thread is a thread on which a task |
(...skipping 11 matching lines...) Expand all Loading... |
57 virtual ~PrintJobWorkerOwner(); | 59 virtual ~PrintJobWorkerOwner(); |
58 | 60 |
59 // Task runner reference. Used to send notifications in the right | 61 // Task runner reference. Used to send notifications in the right |
60 // thread. | 62 // thread. |
61 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 63 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
62 }; | 64 }; |
63 | 65 |
64 } // namespace printing | 66 } // namespace printing |
65 | 67 |
66 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_OWNER_H__ | 68 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_OWNER_H__ |
OLD | NEW |