| 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 <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 void OwnTabContents(TabContentsWrapper* content); | 33 void OwnTabContents(TabContentsWrapper* content); |
| 34 | 34 |
| 35 // Let others iterate over the list of background printing tabs. | 35 // Let others iterate over the list of background printing tabs. |
| 36 std::set<TabContentsWrapper*>::const_iterator begin(); | 36 std::set<TabContentsWrapper*>::const_iterator begin(); |
| 37 std::set<TabContentsWrapper*>::const_iterator end(); | 37 std::set<TabContentsWrapper*>::const_iterator end(); |
| 38 | 38 |
| 39 // Returns true if |printing_contents_| contains |entry|. | 39 // Returns true if |printing_contents_| contains |entry|. |
| 40 bool HasTabContents(TabContentsWrapper* entry); | 40 bool HasTabContents(TabContentsWrapper* entry); |
| 41 | 41 |
| 42 // NotificationObserver overrides: | 42 // NotificationObserver overrides: |
| 43 virtual void Observe(NotificationType type, | 43 virtual void Observe(int type, |
| 44 const NotificationSource& source, | 44 const NotificationSource& source, |
| 45 const NotificationDetails& details) OVERRIDE; | 45 const NotificationDetails& details) OVERRIDE; |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 // The set of tabs managed by BackgroundPrintingManager. | 48 // The set of tabs managed by BackgroundPrintingManager. |
| 49 std::set<TabContentsWrapper*> printing_contents_; | 49 std::set<TabContentsWrapper*> printing_contents_; |
| 50 | 50 |
| 51 NotificationRegistrar registrar_; | 51 NotificationRegistrar registrar_; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(BackgroundPrintingManager); | 53 DISALLOW_COPY_AND_ASSIGN(BackgroundPrintingManager); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace printing | 56 } // namespace printing |
| 57 | 57 |
| 58 #endif // CHROME_BROWSER_PRINTING_BACKGROUND_PRINTING_MANAGER_H_ | 58 #endif // CHROME_BROWSER_PRINTING_BACKGROUND_PRINTING_MANAGER_H_ |
| OLD | NEW |