| OLD | NEW |
| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/threading/non_thread_safe.h" | 13 #include "base/threading/non_thread_safe.h" |
| 14 #include "content/public/browser/notification_observer.h" | 14 #include "content/public/browser/notification_observer.h" |
| 15 #include "content/public/browser/notification_registrar.h" | 15 #include "content/public/browser/notification_registrar.h" |
| 16 | 16 |
| 17 class TabContentsWrapper; | 17 class TabContents; |
| 18 typedef TabContents TabContentsWrapper; |
| 18 | 19 |
| 19 namespace content { | 20 namespace content { |
| 20 class RenderProcessHost; | 21 class RenderProcessHost; |
| 21 } | 22 } |
| 22 | 23 |
| 23 namespace printing { | 24 namespace printing { |
| 24 | 25 |
| 25 // Manages hidden tabs that prints documents in the background. | 26 // Manages hidden tabs that prints documents in the background. |
| 26 // The hidden tabs are no longer part of any Browser / TabStripModel. | 27 // The hidden tabs are no longer part of any Browser / TabStripModel. |
| 27 // They get deleted when the tab finishes printing. | 28 // They get deleted when the tab finishes printing. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 TabContentsWrapperSet printing_tabs_pending_deletion_; | 73 TabContentsWrapperSet printing_tabs_pending_deletion_; |
| 73 | 74 |
| 74 content::NotificationRegistrar registrar_; | 75 content::NotificationRegistrar registrar_; |
| 75 | 76 |
| 76 DISALLOW_COPY_AND_ASSIGN(BackgroundPrintingManager); | 77 DISALLOW_COPY_AND_ASSIGN(BackgroundPrintingManager); |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 } // namespace printing | 80 } // namespace printing |
| 80 | 81 |
| 81 #endif // CHROME_BROWSER_PRINTING_BACKGROUND_PRINTING_MANAGER_H_ | 82 #endif // CHROME_BROWSER_PRINTING_BACKGROUND_PRINTING_MANAGER_H_ |
| OLD | NEW |