| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/pdf_to_emf_converter.h" | 5 #include "chrome/browser/printing/pdf_to_emf_converter.h" |
| 6 | 6 |
| 7 #include "base/bind_helpers.h" | 7 #include "base/bind_helpers.h" |
| 8 #include "base/cancelable_callback.h" | 8 #include "base/cancelable_callback.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| 11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "chrome/common/chrome_utility_messages.h" | 13 #include "chrome/common/chrome_utility_messages.h" |
| 14 #include "chrome/common/chrome_utility_printing_messages.h" |
| 14 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 15 #include "content/public/browser/child_process_data.h" | 16 #include "content/public/browser/child_process_data.h" |
| 16 #include "content/public/browser/utility_process_host.h" | 17 #include "content/public/browser/utility_process_host.h" |
| 17 #include "content/public/browser/utility_process_host_client.h" | 18 #include "content/public/browser/utility_process_host_client.h" |
| 19 #include "printing/page_range.h" |
| 20 #include "printing/pdf_render_settings.h" |
| 18 | 21 |
| 19 namespace printing { | 22 namespace printing { |
| 20 | 23 |
| 21 namespace { | 24 namespace { |
| 22 | 25 |
| 23 using content::BrowserThread; | 26 using content::BrowserThread; |
| 24 | 27 |
| 25 class FileHandlers { | 28 class FileHandlers { |
| 26 public: | 29 public: |
| 27 FileHandlers() {} | 30 FileHandlers() {} |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 } | 300 } |
| 298 | 301 |
| 299 } // namespace | 302 } // namespace |
| 300 | 303 |
| 301 // static | 304 // static |
| 302 scoped_ptr<PdfToEmfConverter> PdfToEmfConverter::CreateDefault() { | 305 scoped_ptr<PdfToEmfConverter> PdfToEmfConverter::CreateDefault() { |
| 303 return scoped_ptr<PdfToEmfConverter>(new PdfToEmfConverterImpl()); | 306 return scoped_ptr<PdfToEmfConverter>(new PdfToEmfConverterImpl()); |
| 304 } | 307 } |
| 305 | 308 |
| 306 } // namespace printing | 309 } // namespace printing |
| OLD | NEW |