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_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_MANAGER_H_ |
6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_MANAGER_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_MANAGER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
16 #include "base/threading/non_thread_safe.h" | |
17 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
18 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
19 | 18 |
20 namespace printing { | 19 namespace printing { |
21 | 20 |
22 class JobEventDetails; | 21 class JobEventDetails; |
23 class PrintJob; | 22 class PrintJob; |
24 class PrinterQuery; | 23 class PrinterQuery; |
25 | 24 |
26 class PrintQueriesQueue : public base::RefCountedThreadSafe<PrintQueriesQueue> { | 25 class PrintQueriesQueue : public base::RefCountedThreadSafe<PrintQueriesQueue> { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 scoped_refptr<PrintQueriesQueue> queue_; | 91 scoped_refptr<PrintQueriesQueue> queue_; |
93 | 92 |
94 bool is_shutdown_; | 93 bool is_shutdown_; |
95 | 94 |
96 DISALLOW_COPY_AND_ASSIGN(PrintJobManager); | 95 DISALLOW_COPY_AND_ASSIGN(PrintJobManager); |
97 }; | 96 }; |
98 | 97 |
99 } // namespace printing | 98 } // namespace printing |
100 | 99 |
101 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_MANAGER_H_ | 100 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_MANAGER_H_ |
OLD | NEW |