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

Side by Side Diff: chrome/browser/printing/print_job_manager.h

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/printing/print_dialog_gtk.h ('k') | chrome/browser/printing/print_job_worker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_MANAGER_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_MANAGER_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
13 #include "chrome/browser/prefs/pref_member.h" 13 #include "chrome/browser/prefs/pref_member.h"
14 #include "content/common/notification_observer.h" 14 #include "content/common/notification_observer.h"
15 #include "content/common/notification_registrar.h" 15 #include "content/common/notification_registrar.h"
16 16
17 class PrefService; 17 class PrefService;
18 18
19 namespace printing { 19 namespace printing {
20 20
21 class JobEventDetails; 21 class JobEventDetails;
22 class PrintedDocument; 22 class PrintedDocument;
23 class PrintJob; 23 class PrintJob;
24 class PrintedPage; 24 class PrintedPage;
25 class PrinterQuery; 25 class PrinterQuery;
26 26
27 class PrintJobManager : public NotificationObserver { 27 class PrintJobManager : public NotificationObserver {
28 public: 28 public:
29 PrintJobManager(); 29 PrintJobManager();
30 ~PrintJobManager(); 30 virtual ~PrintJobManager();
31 31
32 // Registers for changes to the printing enabled preference in |prefs|. 32 // Registers for changes to the printing enabled preference in |prefs|.
33 // This method should be called on the UI thread. 33 // This method should be called on the UI thread.
34 void InitOnUIThread(PrefService* prefs); 34 void InitOnUIThread(PrefService* prefs);
35 35
36 // On browser quit, we should wait to have the print job finished. 36 // On browser quit, we should wait to have the print job finished.
37 void OnQuit(); 37 void OnQuit();
38 38
39 // Stops all printing jobs. If wait_for_finish is true, tries to give jobs 39 // Stops all printing jobs. If wait_for_finish is true, tries to give jobs
40 // a chance to complete before stopping them. 40 // a chance to complete before stopping them.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 // Current print jobs that are active. 84 // Current print jobs that are active.
85 PrintJobs current_jobs_; 85 PrintJobs current_jobs_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(PrintJobManager); 87 DISALLOW_COPY_AND_ASSIGN(PrintJobManager);
88 }; 88 };
89 89
90 } // namespace printing 90 } // namespace printing
91 91
92 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_MANAGER_H_ 92 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_dialog_gtk.h ('k') | chrome/browser/printing/print_job_worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698