| 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 #ifndef CHROME_BROWSER_CHROMEOS_PRINTING_CUPS_PRINT_JOB_NOTIFICATION_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_PRINTING_CUPS_PRINT_JOB_NOTIFICATION_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_PRINTING_CUPS_PRINT_JOB_NOTIFICATION_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_PRINTING_CUPS_PRINT_JOB_NOTIFICATION_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <unordered_map> | 10 #include <unordered_map> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 ~CupsPrintJobNotificationManager() override; | 29 ~CupsPrintJobNotificationManager() override; |
| 30 | 30 |
| 31 // CupsPrintJobManager::Observer overrides: | 31 // CupsPrintJobManager::Observer overrides: |
| 32 void OnPrintJobCreated(CupsPrintJob* job) override; | 32 void OnPrintJobCreated(CupsPrintJob* job) override; |
| 33 void OnPrintJobStarted(CupsPrintJob* job) override; | 33 void OnPrintJobStarted(CupsPrintJob* job) override; |
| 34 void OnPrintJobUpdated(CupsPrintJob* job) override; | 34 void OnPrintJobUpdated(CupsPrintJob* job) override; |
| 35 void OnPrintJobSuspended(CupsPrintJob* job) override; | 35 void OnPrintJobSuspended(CupsPrintJob* job) override; |
| 36 void OnPrintJobResumed(CupsPrintJob* job) override; | 36 void OnPrintJobResumed(CupsPrintJob* job) override; |
| 37 void OnPrintJobDone(CupsPrintJob* job) override; | 37 void OnPrintJobDone(CupsPrintJob* job) override; |
| 38 void OnPrintJobError(CupsPrintJob* job) override; | 38 void OnPrintJobError(CupsPrintJob* job) override; |
| 39 void OnPrintJobCancelled(CupsPrintJob* job) override; |
| 39 | 40 |
| 40 private: | 41 private: |
| 42 void UpdateNotification(CupsPrintJob* job); |
| 43 |
| 41 PrintJobNotificationMap notification_map_; | 44 PrintJobNotificationMap notification_map_; |
| 42 CupsPrintJobManager* print_job_manager_; | 45 CupsPrintJobManager* print_job_manager_; |
| 43 Profile* profile_; | 46 Profile* profile_; |
| 44 | 47 |
| 45 DISALLOW_COPY_AND_ASSIGN(CupsPrintJobNotificationManager); | 48 DISALLOW_COPY_AND_ASSIGN(CupsPrintJobNotificationManager); |
| 46 }; | 49 }; |
| 47 | 50 |
| 48 } // namespace chromeos | 51 } // namespace chromeos |
| 49 | 52 |
| 50 #endif // CHROME_BROWSER_CHROMEOS_PRINTING_CUPS_PRINT_JOB_NOTIFICATION_MANAGER_
H_ | 53 #endif // CHROME_BROWSER_CHROMEOS_PRINTING_CUPS_PRINT_JOB_NOTIFICATION_MANAGER_
H_ |
| OLD | NEW |