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

Side by Side Diff: chrome/browser/printing/printing_message_filter.h

Issue 2508923003: Make printing work better with OOPIF. (try 2) (Closed)
Patch Set: Fix android_webview 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 (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 #ifndef CHROME_BROWSER_PRINTING_PRINTING_MESSAGE_FILTER_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINTING_MESSAGE_FILTER_H_
6 #define CHROME_BROWSER_PRINTING_PRINTING_MESSAGE_FILTER_H_ 6 #define CHROME_BROWSER_PRINTING_PRINTING_MESSAGE_FILTER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 30 matching lines...) Expand all
41 void OverrideThreadForMessage(const IPC::Message& message, 41 void OverrideThreadForMessage(const IPC::Message& message,
42 content::BrowserThread::ID* thread) override; 42 content::BrowserThread::ID* thread) override;
43 bool OnMessageReceived(const IPC::Message& message) override; 43 bool OnMessageReceived(const IPC::Message& message) override;
44 44
45 private: 45 private:
46 ~PrintingMessageFilter() override; 46 ~PrintingMessageFilter() override;
47 47
48 #if defined(OS_ANDROID) 48 #if defined(OS_ANDROID)
49 // Used to ask the browser allocate a temporary file for the renderer 49 // Used to ask the browser allocate a temporary file for the renderer
50 // to fill in resulting PDF in renderer. 50 // to fill in resulting PDF in renderer.
51 void OnAllocateTempFileForPrinting(int render_view_id, 51 void OnAllocateTempFileForPrinting(int render_frame_id,
52 base::FileDescriptor* temp_file_fd, 52 base::FileDescriptor* temp_file_fd,
53 int* sequence_number); 53 int* sequence_number);
54 void OnTempFileForPrintingWritten(int render_view_id, int sequence_number); 54 void OnTempFileForPrintingWritten(int render_frame_id, int sequence_number);
55 55
56 // Updates the file descriptor for the PrintViewManagerBasic of a given 56 // Updates the file descriptor for the PrintViewManagerBasic of a given
57 // render_view_id. 57 // |render_frame_id|.
58 void UpdateFileDescriptor(int render_view_id, int fd); 58 void UpdateFileDescriptor(int render_frame_id, int fd);
59 #endif 59 #endif
60 60
61 // Checks if printing is enabled.
62 void OnIsPrintingEnabled(bool* is_enabled);
63
64 // Get the default print setting. 61 // Get the default print setting.
65 void OnGetDefaultPrintSettings(IPC::Message* reply_msg); 62 void OnGetDefaultPrintSettings(IPC::Message* reply_msg);
66 void OnGetDefaultPrintSettingsReply(scoped_refptr<PrinterQuery> printer_query, 63 void OnGetDefaultPrintSettingsReply(scoped_refptr<PrinterQuery> printer_query,
67 IPC::Message* reply_msg); 64 IPC::Message* reply_msg);
68 65
69 // The renderer host have to show to the user the print dialog and returns 66 // The renderer host have to show to the user the print dialog and returns
70 // the selected print settings. The task is handled by the print worker 67 // the selected print settings. The task is handled by the print worker
71 // thread and the UI thread. The reply occurs on the IO thread. 68 // thread and the UI thread. The reply occurs on the IO thread.
72 void OnScriptedPrint(const PrintHostMsg_ScriptedPrint_Params& params, 69 void OnScriptedPrint(const PrintHostMsg_ScriptedPrint_Params& params,
73 IPC::Message* reply_msg); 70 IPC::Message* reply_msg);
(...skipping 22 matching lines...) Expand all
96 const int render_process_id_; 93 const int render_process_id_;
97 94
98 scoped_refptr<PrintQueriesQueue> queue_; 95 scoped_refptr<PrintQueriesQueue> queue_;
99 96
100 DISALLOW_COPY_AND_ASSIGN(PrintingMessageFilter); 97 DISALLOW_COPY_AND_ASSIGN(PrintingMessageFilter);
101 }; 98 };
102 99
103 } // namespace printing 100 } // namespace printing
104 101
105 #endif // CHROME_BROWSER_PRINTING_PRINTING_MESSAGE_FILTER_H_ 102 #endif // CHROME_BROWSER_PRINTING_PRINTING_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_view_manager_common.cc ('k') | chrome/browser/printing/printing_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698