OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/chromeos/printing/cups_print_job_notification_manager.h
" | 5 #include "chrome/browser/chromeos/printing/cups_print_job_notification_manager.h
" |
6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
7 #include "chrome/browser/chromeos/printing/cups_print_job.h" | 8 #include "chrome/browser/chromeos/printing/cups_print_job.h" |
8 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
9 | 10 |
10 namespace chromeos { | 11 namespace chromeos { |
11 | 12 |
12 CupsPrintJobNotificationManager::CupsPrintJobNotificationManager( | 13 CupsPrintJobNotificationManager::CupsPrintJobNotificationManager( |
13 Profile* profile, | 14 Profile* profile, |
14 CupsPrintJobManager* print_job_manager) | 15 CupsPrintJobManager* print_job_manager) |
15 : print_job_manager_(print_job_manager), profile_(profile) { | 16 : print_job_manager_(print_job_manager), profile_(profile) { |
16 DCHECK(print_job_manager_); | 17 DCHECK(print_job_manager_); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 DCHECK(base::ContainsKey(notification_map_, job)); | 54 DCHECK(base::ContainsKey(notification_map_, job)); |
54 notification_map_[job]->OnPrintJobStatusUpdated(); | 55 notification_map_[job]->OnPrintJobStatusUpdated(); |
55 } | 56 } |
56 | 57 |
57 void CupsPrintJobNotificationManager::OnPrintJobError(CupsPrintJob* job) { | 58 void CupsPrintJobNotificationManager::OnPrintJobError(CupsPrintJob* job) { |
58 DCHECK(base::ContainsKey(notification_map_, job)); | 59 DCHECK(base::ContainsKey(notification_map_, job)); |
59 notification_map_[job]->OnPrintJobStatusUpdated(); | 60 notification_map_[job]->OnPrintJobStatusUpdated(); |
60 } | 61 } |
61 | 62 |
62 } // namespace chromeos | 63 } // namespace chromeos |
OLD | NEW |