| 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/print_view_manager.h" | 5 #include "chrome/browser/printing/print_view_manager.h" |
| 6 | 6 |
| 7 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/printing/print_job.h" | 10 #include "chrome/browser/printing/print_job.h" |
| 11 #include "chrome/browser/printing/print_job_manager.h" | 11 #include "chrome/browser/printing/print_job_manager.h" |
| 12 #include "chrome/browser/printing/printer_query.h" | 12 #include "chrome/browser/printing/printer_query.h" |
| 13 #include "chrome/browser/renderer_host/render_view_host.h" | |
| 14 #include "chrome/browser/tab_contents/navigation_entry.h" | |
| 15 #include "chrome/browser/tab_contents/tab_contents.h" | |
| 16 #include "chrome/common/notification_details.h" | 13 #include "chrome/common/notification_details.h" |
| 17 #include "chrome/common/notification_source.h" | 14 #include "chrome/common/notification_source.h" |
| 18 #include "chrome/common/render_messages.h" | 15 #include "chrome/common/render_messages.h" |
| 19 #include "chrome/common/render_messages_params.h" | 16 #include "chrome/common/render_messages_params.h" |
| 17 #include "content/browser/renderer_host/render_view_host.h" |
| 18 #include "content/browser/tab_contents/navigation_entry.h" |
| 19 #include "content/browser/tab_contents/tab_contents.h" |
| 20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
| 21 #include "printing/native_metafile.h" | 21 #include "printing/native_metafile.h" |
| 22 #include "printing/printed_document.h" | 22 #include "printing/printed_document.h" |
| 23 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
| 24 | 24 |
| 25 using base::TimeDelta; | 25 using base::TimeDelta; |
| 26 | 26 |
| 27 namespace printing { | 27 namespace printing { |
| 28 | 28 |
| 29 PrintViewManager::PrintViewManager(TabContents* tab_contents) | 29 PrintViewManager::PrintViewManager(TabContents* tab_contents) |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 return false; | 423 return false; |
| 424 } | 424 } |
| 425 | 425 |
| 426 // Settings are already loaded. Go ahead. This will set | 426 // Settings are already loaded. Go ahead. This will set |
| 427 // print_job_->is_job_pending() to true. | 427 // print_job_->is_job_pending() to true. |
| 428 print_job_->StartPrinting(); | 428 print_job_->StartPrinting(); |
| 429 return true; | 429 return true; |
| 430 } | 430 } |
| 431 | 431 |
| 432 } // namespace printing | 432 } // namespace printing |
| OLD | NEW |