OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "android_webview/browser/aw_printing_message_filter.h" | 5 #include "android_webview/browser/aw_printing_message_filter.h" |
6 | 6 |
7 #include "android_webview/browser/aw_print_manager.h" | 7 #include "android_webview/browser/aw_print_manager.h" |
8 #include "base/file_descriptor_posix.h" | 8 #include "base/file_descriptor_posix.h" |
9 #include "components/printing/common/print_messages.h" | |
10 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
11 #include "content/public/browser/render_frame_host.h" | 10 #include "content/public/browser/render_frame_host.h" |
12 #include "content/public/browser/web_contents.h" | 11 #include "content/public/browser/web_contents.h" |
13 | 12 |
14 using content::BrowserThread; | 13 using content::BrowserThread; |
15 using content::WebContents; | 14 using content::WebContents; |
16 | 15 |
17 namespace android_webview { | 16 namespace android_webview { |
18 | 17 |
19 namespace { | 18 namespace { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 int render_frame_id, | 77 int render_frame_id, |
79 int sequence_number) { | 78 int sequence_number) { |
80 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 79 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
81 AwPrintManager* print_manager = | 80 AwPrintManager* print_manager = |
82 GetPrintManager(render_process_id_, render_frame_id); | 81 GetPrintManager(render_process_id_, render_frame_id); |
83 if (print_manager) | 82 if (print_manager) |
84 print_manager->PdfWritingDone(true); | 83 print_manager->PdfWritingDone(true); |
85 } | 84 } |
86 | 85 |
87 } // namespace android_webview | 86 } // namespace android_webview |
OLD | NEW |