OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BACKGROUND_PRINTING_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_BACKGROUND_PRINTING_MANAGER_H_ |
6 #define CHROME_BROWSER_PRINTING_BACKGROUND_PRINTING_MANAGER_H_ | 6 #define CHROME_BROWSER_PRINTING_BACKGROUND_PRINTING_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 // Returns true if |printing_contents_map_| contains |preview_dialog|. | 41 // Returns true if |printing_contents_map_| contains |preview_dialog|. |
42 bool HasPrintPreviewDialog(content::WebContents* preview_dialog); | 42 bool HasPrintPreviewDialog(content::WebContents* preview_dialog); |
43 | 43 |
44 // Let others see the list of background printing contents. | 44 // Let others see the list of background printing contents. |
45 std::set<content::WebContents*> CurrentContentSet(); | 45 std::set<content::WebContents*> CurrentContentSet(); |
46 | 46 |
47 private: | 47 private: |
48 // content::NotificationObserver overrides: | 48 // content::NotificationObserver overrides: |
49 virtual void Observe(int type, | 49 virtual void Observe(int type, |
50 const content::NotificationSource& source, | 50 const content::NotificationSource& source, |
51 const content::NotificationDetails& details) OVERRIDE; | 51 const content::NotificationDetails& details) override; |
52 | 52 |
53 // Schedule deletion of |preview_contents|. | 53 // Schedule deletion of |preview_contents|. |
54 void DeletePreviewContents(content::WebContents* preview_contents); | 54 void DeletePreviewContents(content::WebContents* preview_contents); |
55 | 55 |
56 // A map from print preview WebContentses (managed by | 56 // A map from print preview WebContentses (managed by |
57 // BackgroundPrintingManager) to the Observers that observe them. | 57 // BackgroundPrintingManager) to the Observers that observe them. |
58 WebContentsObserverMap printing_contents_map_; | 58 WebContentsObserverMap printing_contents_map_; |
59 | 59 |
60 content::NotificationRegistrar registrar_; | 60 content::NotificationRegistrar registrar_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(BackgroundPrintingManager); | 62 DISALLOW_COPY_AND_ASSIGN(BackgroundPrintingManager); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace printing | 65 } // namespace printing |
66 | 66 |
67 #endif // CHROME_BROWSER_PRINTING_BACKGROUND_PRINTING_MANAGER_H_ | 67 #endif // CHROME_BROWSER_PRINTING_BACKGROUND_PRINTING_MANAGER_H_ |
OLD | NEW |