OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_base.h" | 5 #include "chrome/browser/printing/print_view_manager_base.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/prefs/pref_service.h" | |
14 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
15 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
16 #include "base/thread_task_runner_handle.h" | 15 #include "base/thread_task_runner_handle.h" |
17 #include "base/timer/timer.h" | 16 #include "base/timer/timer.h" |
18 #include "build/build_config.h" | 17 #include "build/build_config.h" |
19 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
20 #include "chrome/browser/chrome_notification_types.h" | 19 #include "chrome/browser/chrome_notification_types.h" |
21 #include "chrome/browser/printing/print_job.h" | 20 #include "chrome/browser/printing/print_job.h" |
22 #include "chrome/browser/printing/print_job_manager.h" | 21 #include "chrome/browser/printing/print_job_manager.h" |
23 #include "chrome/browser/printing/printer_query.h" | 22 #include "chrome/browser/printing/printer_query.h" |
24 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
25 #include "chrome/browser/ui/simple_message_box.h" | 24 #include "chrome/browser/ui/simple_message_box.h" |
26 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
27 #include "chrome/grit/generated_resources.h" | 26 #include "chrome/grit/generated_resources.h" |
| 27 #include "components/prefs/pref_service.h" |
28 #include "components/printing/common/print_messages.h" | 28 #include "components/printing/common/print_messages.h" |
29 #include "content/public/browser/browser_thread.h" | 29 #include "content/public/browser/browser_thread.h" |
30 #include "content/public/browser/notification_details.h" | 30 #include "content/public/browser/notification_details.h" |
31 #include "content/public/browser/notification_service.h" | 31 #include "content/public/browser/notification_service.h" |
32 #include "content/public/browser/notification_source.h" | 32 #include "content/public/browser/notification_source.h" |
33 #include "content/public/browser/render_view_host.h" | 33 #include "content/public/browser/render_view_host.h" |
34 #include "content/public/browser/web_contents.h" | 34 #include "content/public/browser/web_contents.h" |
35 #include "printing/pdf_metafile_skia.h" | 35 #include "printing/pdf_metafile_skia.h" |
36 #include "printing/printed_document.h" | 36 #include "printing/printed_document.h" |
37 #include "ui/base/l10n/l10n_util.h" | 37 #include "ui/base/l10n/l10n_util.h" |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 scoped_refptr<printing::PrinterQuery> printer_query; | 530 scoped_refptr<printing::PrinterQuery> printer_query; |
531 printer_query = queue_->PopPrinterQuery(cookie); | 531 printer_query = queue_->PopPrinterQuery(cookie); |
532 if (!printer_query.get()) | 532 if (!printer_query.get()) |
533 return; | 533 return; |
534 BrowserThread::PostTask( | 534 BrowserThread::PostTask( |
535 BrowserThread::IO, FROM_HERE, | 535 BrowserThread::IO, FROM_HERE, |
536 base::Bind(&PrinterQuery::StopWorker, printer_query.get())); | 536 base::Bind(&PrinterQuery::StopWorker, printer_query.get())); |
537 } | 537 } |
538 | 538 |
539 } // namespace printing | 539 } // namespace printing |
OLD | NEW |