| 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 #include "chrome/browser/printing/background_printing_manager.h" | 5 #include "chrome/browser/printing/background_printing_manager.h" |
| 6 | 6 |
| 7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "chrome/browser/chrome_notification_types.h" |
| 8 #include "chrome/browser/printing/print_job.h" | 9 #include "chrome/browser/printing/print_job.h" |
| 9 #include "chrome/browser/printing/print_preview_dialog_controller.h" | 10 #include "chrome/browser/printing/print_preview_dialog_controller.h" |
| 10 #include "chrome/common/chrome_notification_types.h" | |
| 11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 12 #include "content/public/browser/notification_details.h" | 12 #include "content/public/browser/notification_details.h" |
| 13 #include "content/public/browser/notification_source.h" | 13 #include "content/public/browser/notification_source.h" |
| 14 #include "content/public/browser/render_view_host.h" | 14 #include "content/public/browser/render_view_host.h" |
| 15 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
| 16 #include "content/public/browser/web_contents_delegate.h" | 16 #include "content/public/browser/web_contents_delegate.h" |
| 17 | 17 |
| 18 using content::BrowserThread; | 18 using content::BrowserThread; |
| 19 using content::WebContents; | 19 using content::WebContents; |
| 20 | 20 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 return printing_contents_set_.end(); | 178 return printing_contents_set_.end(); |
| 179 } | 179 } |
| 180 | 180 |
| 181 bool BackgroundPrintingManager::HasPrintPreviewDialog( | 181 bool BackgroundPrintingManager::HasPrintPreviewDialog( |
| 182 WebContents* preview_dialog) { | 182 WebContents* preview_dialog) { |
| 183 return (ContainsKey(printing_contents_set_, preview_dialog) || | 183 return (ContainsKey(printing_contents_set_, preview_dialog) || |
| 184 ContainsKey(printing_contents_pending_deletion_set_, preview_dialog)); | 184 ContainsKey(printing_contents_pending_deletion_set_, preview_dialog)); |
| 185 } | 185 } |
| 186 | 186 |
| 187 } // namespace printing | 187 } // namespace printing |
| OLD | NEW |