Setup PrintingMessageFilter for printing.
This commit is contained in:
parent
11b9a06639
commit
eb3ecab6a8
4 changed files with 10 additions and 7 deletions
|
@ -87,11 +87,8 @@ void RenderParamsFromPrintSettings(const printing::PrintSettings& settings,
|
|||
|
||||
} // namespace
|
||||
|
||||
PrintingMessageFilter::PrintingMessageFilter(int render_process_id,
|
||||
Profile* profile)
|
||||
PrintingMessageFilter::PrintingMessageFilter(int render_process_id)
|
||||
: BrowserMessageFilter(PrintMsgStart),
|
||||
// profile_io_data_(ProfileIOData::FromResourceContext(
|
||||
// profile->GetResourceContext())),
|
||||
render_process_id_(render_process_id),
|
||||
queue_(g_browser_process->print_job_manager()->queue()) {
|
||||
DCHECK(queue_);
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
#endif
|
||||
|
||||
struct PrintHostMsg_ScriptedPrint_Params;
|
||||
class Profile;
|
||||
class ProfileIOData;
|
||||
|
||||
namespace base {
|
||||
class DictionaryValue;
|
||||
|
@ -37,7 +35,7 @@ class PrintQueriesQueue;
|
|||
// renderer process on the IPC thread.
|
||||
class PrintingMessageFilter : public content::BrowserMessageFilter {
|
||||
public:
|
||||
PrintingMessageFilter(int render_process_id, Profile* profile);
|
||||
explicit PrintingMessageFilter(int render_process_id);
|
||||
|
||||
// content::BrowserMessageFilter methods.
|
||||
virtual void OverrideThreadForMessage(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue