Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: android_webview/browser/aw_print_manager.h

Issue 2426503002: Make printing work better with OOPIF. (Closed)
Patch Set: rebase, many cleanups have been committed Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 bool OnMessageReceived(const IPC::Message& message,
40 content::RenderFrameHost* render_frame_host) override;
41
42 // IPC Handlers
39 void OnGetDefaultPrintSettings(IPC::Message* reply_msg); 43 void OnGetDefaultPrintSettings(IPC::Message* reply_msg);
40 44
41 printing::PrintSettings settings_; 45 printing::PrintSettings settings_;
42 46
43 DISALLOW_COPY_AND_ASSIGN(AwPrintManager); 47 DISALLOW_COPY_AND_ASSIGN(AwPrintManager);
44 }; 48 };
45 49
46 } // namespace android_webview 50 } // namespace android_webview
47 51
48 #endif // ANDROID_WEBVIEW_BROWSER_AW_PRINT_MANAGER_H_ 52 #endif // ANDROID_WEBVIEW_BROWSER_AW_PRINT_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_print_manager.cc » ('j') | chrome/browser/printing/print_view_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698