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 #include "chrome/browser/printing/print_job_manager.h" | 5 #include "chrome/browser/printing/print_job_manager.h" |
6 | 6 |
7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
8 #include "chrome/browser/prefs/pref_service.h" | 8 #include "chrome/browser/prefs/pref_service.h" |
9 #include "chrome/browser/printing/print_job.h" | 9 #include "chrome/browser/printing/print_job.h" |
10 #include "chrome/browser/printing/printer_query.h" | 10 #include "chrome/browser/printing/printer_query.h" |
11 #include "chrome/common/chrome_notification_types.h" | 11 #include "chrome/common/chrome_notification_types.h" |
12 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
13 #include "content/public/browser/notification_service.h" | 13 #include "content/public/browser/notification_service.h" |
14 #include "printing/printed_document.h" | 14 #include "printing/printed_document.h" |
15 #include "printing/printed_page.h" | 15 #include "printing/printed_page.h" |
16 | 16 |
| 17 using content::BrowserThread; |
| 18 |
17 namespace printing { | 19 namespace printing { |
18 | 20 |
19 PrintJobManager::PrintJobManager() { | 21 PrintJobManager::PrintJobManager() { |
20 registrar_.Add(this, chrome::NOTIFICATION_PRINT_JOB_EVENT, | 22 registrar_.Add(this, chrome::NOTIFICATION_PRINT_JOB_EVENT, |
21 content::NotificationService::AllSources()); | 23 content::NotificationService::AllSources()); |
22 } | 24 } |
23 | 25 |
24 PrintJobManager::~PrintJobManager() { | 26 PrintJobManager::~PrintJobManager() { |
25 base::AutoLock lock(lock_); | 27 base::AutoLock lock(lock_); |
26 queued_queries_.clear(); | 28 queued_queries_.clear(); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 break; | 160 break; |
159 } | 161 } |
160 default: { | 162 default: { |
161 NOTREACHED(); | 163 NOTREACHED(); |
162 break; | 164 break; |
163 } | 165 } |
164 } | 166 } |
165 } | 167 } |
166 | 168 |
167 } // namespace printing | 169 } // namespace printing |
OLD | NEW |