| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 std::set<TabContentsWrapper*>::const_iterator | 89 std::set<TabContentsWrapper*>::const_iterator |
| 90 BackgroundPrintingManager::begin() { | 90 BackgroundPrintingManager::begin() { |
| 91 return printing_contents_.begin(); | 91 return printing_contents_.begin(); |
| 92 } | 92 } |
| 93 | 93 |
| 94 std::set<TabContentsWrapper*>::const_iterator | 94 std::set<TabContentsWrapper*>::const_iterator |
| 95 BackgroundPrintingManager::end() { | 95 BackgroundPrintingManager::end() { |
| 96 return printing_contents_.end(); | 96 return printing_contents_.end(); |
| 97 } | 97 } |
| 98 | 98 |
| 99 bool BackgroundPrintingManager::HasTabContents(TabContentsWrapper* entry) { |
| 100 return printing_contents_.find(entry) != printing_contents_.end(); |
| 101 } |
| 102 |
| 99 } // namespace printing | 103 } // namespace printing |
| OLD | NEW |