| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/ui/webui/print_preview/printer_backend_proxy.h" | 5 #include "chrome/browser/ui/webui/print_preview/printer_backend_proxy.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/threading/sequenced_worker_pool.h" | |
| 14 #include "chrome/browser/ui/webui/print_preview/printer_capabilities.h" | 13 #include "chrome/browser/ui/webui/print_preview/printer_capabilities.h" |
| 15 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 16 #include "printing/backend/print_backend.h" | 15 #include "printing/backend/print_backend.h" |
| 17 | 16 |
| 18 namespace printing { | 17 namespace printing { |
| 19 | 18 |
| 20 namespace { | 19 namespace { |
| 21 | 20 |
| 22 PrinterList EnumeratePrintersOnBlockingPoolThread() { | 21 PrinterList EnumeratePrintersOnBlockingPoolThread() { |
| 23 DCHECK(content::BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread()); | 22 DCHECK(content::BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread()); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 DISALLOW_COPY_AND_ASSIGN(PrinterBackendProxyDefault); | 103 DISALLOW_COPY_AND_ASSIGN(PrinterBackendProxyDefault); |
| 105 }; | 104 }; |
| 106 | 105 |
| 107 } // namespace | 106 } // namespace |
| 108 | 107 |
| 109 std::unique_ptr<PrinterBackendProxy> PrinterBackendProxy::Create() { | 108 std::unique_ptr<PrinterBackendProxy> PrinterBackendProxy::Create() { |
| 110 return base::MakeUnique<PrinterBackendProxyDefault>(); | 109 return base::MakeUnique<PrinterBackendProxyDefault>(); |
| 111 } | 110 } |
| 112 | 111 |
| 113 } // namespace printing | 112 } // namespace printing |
| OLD | NEW |