| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/printing_message_filter.h" | 5 #include "chrome/browser/printing/printing_message_filter.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "content/public/browser/render_view_host.h" | 21 #include "content/public/browser/render_view_host.h" |
| 22 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
| 23 #include "content/public/common/child_process_host.h" | 23 #include "content/public/common/child_process_host.h" |
| 24 #include "printing/features/features.h" | 24 #include "printing/features/features.h" |
| 25 | 25 |
| 26 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) | 26 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
| 27 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" | 27 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" |
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 #if defined(OS_ANDROID) | 30 #if defined(OS_ANDROID) |
| 31 #include "base/file_descriptor_posix.h" |
| 31 #include "base/strings/string_number_conversions.h" | 32 #include "base/strings/string_number_conversions.h" |
| 32 #include "chrome/browser/printing/print_view_manager_basic.h" | 33 #include "chrome/browser/printing/print_view_manager_basic.h" |
| 33 #endif | 34 #endif |
| 34 | 35 |
| 35 using content::BrowserThread; | 36 using content::BrowserThread; |
| 36 | 37 |
| 37 namespace printing { | 38 namespace printing { |
| 38 | 39 |
| 39 namespace { | 40 namespace { |
| 40 | 41 |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 void PrintingMessageFilter::OnCheckForCancel(int32_t preview_ui_id, | 311 void PrintingMessageFilter::OnCheckForCancel(int32_t preview_ui_id, |
| 311 int preview_request_id, | 312 int preview_request_id, |
| 312 bool* cancel) { | 313 bool* cancel) { |
| 313 PrintPreviewUI::GetCurrentPrintPreviewStatus(preview_ui_id, | 314 PrintPreviewUI::GetCurrentPrintPreviewStatus(preview_ui_id, |
| 314 preview_request_id, | 315 preview_request_id, |
| 315 cancel); | 316 cancel); |
| 316 } | 317 } |
| 317 #endif | 318 #endif |
| 318 | 319 |
| 319 } // namespace printing | 320 } // namespace printing |
| OLD | NEW |