| 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/renderer/printing/print_web_view_helper.h" | 5 #include "components/printing/renderer/print_web_view_helper.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/process/process_handle.h" | 9 #include "base/process/process_handle.h" |
| 10 #include "chrome/common/print_messages.h" | 10 #include "chrome/common/print_messages.h" |
| 11 #include "content/public/renderer/render_thread.h" | 11 #include "content/public/renderer/render_thread.h" |
| 12 #include "printing/metafile_skia_wrapper.h" | 12 #include "printing/metafile_skia_wrapper.h" |
| 13 #include "printing/page_size_margins.h" | 13 #include "printing/page_size_margins.h" |
| 14 #include "printing/pdf_metafile_skia.h" | 14 #include "printing/pdf_metafile_skia.h" |
| 15 #include "printing/units.h" | 15 #include "printing/units.h" |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 } | 224 } |
| 225 shared_buf.GiveToProcess(base::GetCurrentProcessHandle(), shared_mem_handle); | 225 shared_buf.GiveToProcess(base::GetCurrentProcessHandle(), shared_mem_handle); |
| 226 shared_buf.Unmap(); | 226 shared_buf.Unmap(); |
| 227 | 227 |
| 228 Send(new PrintHostMsg_DuplicateSection(routing_id(), *shared_mem_handle, | 228 Send(new PrintHostMsg_DuplicateSection(routing_id(), *shared_mem_handle, |
| 229 shared_mem_handle)); | 229 shared_mem_handle)); |
| 230 return true; | 230 return true; |
| 231 } | 231 } |
| 232 | 232 |
| 233 } // namespace printing | 233 } // namespace printing |
| OLD | NEW |