Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: chrome/browser/chromeos/printing/cups_print_job_notification_manager.h

Issue 2708233006: Report print jobs that are aborted by CUPS as errors. (Closed)
Patch Set: better Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698