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 #include "chrome/browser/printing/background_printing_manager.h" | 5 #include "chrome/browser/printing/background_printing_manager.h" |
6 | 6 |
7 #include "chrome/browser/printing/print_job.h" | 7 #include "chrome/browser/printing/print_job.h" |
8 #include "chrome/browser/printing/print_preview_tab_controller.h" | 8 #include "chrome/browser/printing/print_preview_tab_controller.h" |
9 #include "chrome/browser/tabs/tab_strip_model.h" | 9 #include "chrome/browser/tabs/tab_strip_model.h" |
10 #include "chrome/browser/ui/browser_list.h" | 10 #include "chrome/browser/ui/browser_list.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 std::set<TabContentsWrapper*>::const_iterator | 91 std::set<TabContentsWrapper*>::const_iterator |
92 BackgroundPrintingManager::begin() { | 92 BackgroundPrintingManager::begin() { |
93 return printing_contents_.begin(); | 93 return printing_contents_.begin(); |
94 } | 94 } |
95 | 95 |
96 std::set<TabContentsWrapper*>::const_iterator | 96 std::set<TabContentsWrapper*>::const_iterator |
97 BackgroundPrintingManager::end() { | 97 BackgroundPrintingManager::end() { |
98 return printing_contents_.end(); | 98 return printing_contents_.end(); |
99 } | 99 } |
100 | 100 |
| 101 bool BackgroundPrintingManager::HasTabContents(TabContentsWrapper* entry) { |
| 102 return printing_contents_.find(entry) != printing_contents_.end(); |
| 103 } |
| 104 |
101 } // namespace printing | 105 } // namespace printing |
OLD | NEW |