| 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 <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
| 15 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
| 16 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 class RenderProcessHost; | |
| 20 class WebContents; | 19 class WebContents; |
| 21 } | 20 } |
| 22 | 21 |
| 23 namespace printing { | 22 namespace printing { |
| 24 | 23 |
| 25 // Manages hidden WebContents that prints documents in the background. | 24 // Manages hidden WebContents that prints documents in the background. |
| 26 // The hidden WebContents are no longer part of any Browser / TabStripModel. | 25 // The hidden WebContents are no longer part of any Browser / TabStripModel. |
| 27 // The WebContents started life as a ConstrainedWebDialog. | 26 // The WebContents started life as a ConstrainedWebDialog. |
| 28 // They get deleted when the printing finishes. | 27 // They get deleted when the printing finishes. |
| 29 class BackgroundPrintingManager : public base::NonThreadSafe, | 28 class BackgroundPrintingManager : public base::NonThreadSafe, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 60 printing_contents_map_; | 59 printing_contents_map_; |
| 61 | 60 |
| 62 content::NotificationRegistrar registrar_; | 61 content::NotificationRegistrar registrar_; |
| 63 | 62 |
| 64 DISALLOW_COPY_AND_ASSIGN(BackgroundPrintingManager); | 63 DISALLOW_COPY_AND_ASSIGN(BackgroundPrintingManager); |
| 65 }; | 64 }; |
| 66 | 65 |
| 67 } // namespace printing | 66 } // namespace printing |
| 68 | 67 |
| 69 #endif // CHROME_BROWSER_PRINTING_BACKGROUND_PRINTING_MANAGER_H_ | 68 #endif // CHROME_BROWSER_PRINTING_BACKGROUND_PRINTING_MANAGER_H_ |
| OLD | NEW |