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 #ifndef ANDROID_WEBVIEW_BROWSER_AW_PRINT_MANAGER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_PRINT_MANAGER_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_AW_PRINT_MANAGER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_PRINT_MANAGER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/printing/browser/print_manager.h" | 9 #include "components/printing/browser/print_manager.h" |
10 #include "content/public/browser/web_contents_user_data.h" | 10 #include "content/public/browser/web_contents_user_data.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 bool PrintNow(); | 28 bool PrintNow(); |
29 | 29 |
30 private: | 30 private: |
31 friend class content::WebContentsUserData<AwPrintManager>; | 31 friend class content::WebContentsUserData<AwPrintManager>; |
32 | 32 |
33 AwPrintManager(content::WebContents* contents, | 33 AwPrintManager(content::WebContents* contents, |
34 const printing::PrintSettings& settings, | 34 const printing::PrintSettings& settings, |
35 const base::FileDescriptor& file_descriptor, | 35 const base::FileDescriptor& file_descriptor, |
36 const PdfWritingDoneCallback& callback); | 36 const PdfWritingDoneCallback& callback); |
37 | 37 |
38 bool OnMessageReceived(const IPC::Message& message) override; | 38 // printing::PrintManager: |
39 void OnGetDefaultPrintSettings(IPC::Message* reply_msg); | 39 bool OnMessageReceived(const IPC::Message& message, |
| 40 content::RenderFrameHost* render_frame_host) override; |
| 41 |
| 42 // IPC Handlers |
| 43 void OnGetDefaultPrintSettings(content::RenderFrameHost* render_frame_host, |
| 44 IPC::Message* reply_msg); |
40 | 45 |
41 printing::PrintSettings settings_; | 46 printing::PrintSettings settings_; |
42 | 47 |
43 DISALLOW_COPY_AND_ASSIGN(AwPrintManager); | 48 DISALLOW_COPY_AND_ASSIGN(AwPrintManager); |
44 }; | 49 }; |
45 | 50 |
46 } // namespace android_webview | 51 } // namespace android_webview |
47 | 52 |
48 #endif // ANDROID_WEBVIEW_BROWSER_AW_PRINT_MANAGER_H_ | 53 #endif // ANDROID_WEBVIEW_BROWSER_AW_PRINT_MANAGER_H_ |
OLD | NEW |