Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_PRINTING_CUPS_PRINT_JOB_NOTIFICATION_MANAGER_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_PRINTING_CUPS_PRINT_JOB_NOTIFICATION_MANAGER_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 #include <string> | |
| 10 #include <unordered_map> | |
| 11 | |
| 12 #include "chrome/browser/chromeos/printing/cups_print_job_manager.h" | |
| 13 #include "chrome/browser/chromeos/printing/cups_print_job_notification.h" | |
| 14 | |
| 15 class Profile; | |
| 16 | |
| 17 namespace chromeos { | |
| 18 | |
| 19 class CUPSPrintJob; | |
| 20 | |
| 21 class CUPSPrintJobNotificationManager : public CUPSPrintJobManager::Observer { | |
|
stevenjb
2016/10/26 19:59:58
CupsPrintJobNotificationManager
xdai1
2016/10/26 22:55:19
Done.
| |
| 22 public: | |
| 23 using PrintJobNotificationMap = | |
| 24 std::unordered_map<CUPSPrintJob*, | |
| 25 std::unique_ptr<CUPSPrintJobNotification>>; | |
| 26 | |
| 27 explicit CUPSPrintJobNotificationManager(Profile* profile); | |
| 28 ~CUPSPrintJobNotificationManager() override; | |
| 29 | |
| 30 // CUPSPrintJobManager::Observer overrides: | |
| 31 void OnPrintJobCreated(CUPSPrintJob* job) override; | |
| 32 void OnPrintJobStarted(CUPSPrintJob* job) override; | |
| 33 void OnPrintJobUpdated(CUPSPrintJob* job) override; | |
| 34 void OnPrintJobSuspended(CUPSPrintJob* job) override; | |
| 35 void OnPrintJobResumed(CUPSPrintJob* job) override; | |
| 36 void OnPrintJobDone(CUPSPrintJob* job) override; | |
| 37 void OnPrintJobError(CUPSPrintJob* job) override; | |
| 38 | |
| 39 private: | |
| 40 PrintJobNotificationMap notification_map_; | |
| 41 Profile* profile_; | |
| 42 | |
| 43 DISALLOW_COPY_AND_ASSIGN(CUPSPrintJobNotificationManager); | |
| 44 }; | |
| 45 | |
| 46 } // namespace chromeos | |
| 47 | |
| 48 #endif // CHROME_BROWSER_CHROMEOS_PRINTING_CUPS_PRINT_JOB_NOTIFICATION_MANAGER_ H_ | |
| OLD | NEW |