| Index: chrome/browser/printing/printing_message_filter.h
|
| diff --git a/chrome/browser/printing/printing_message_filter.h b/chrome/browser/printing/printing_message_filter.h
|
| index 7a16d2eced781c76469b71aa9390ca6eb8058e11..d7614ff12983894abaaede71512a0c094d057fe1 100644
|
| --- a/chrome/browser/printing/printing_message_filter.h
|
| +++ b/chrome/browser/printing/printing_message_filter.h
|
| @@ -28,10 +28,11 @@ class WebContents;
|
| }
|
|
|
| namespace printing {
|
| -class PrinterQuery;
|
| +
|
| class PrintJobManager;
|
| class PrintQueriesQueue;
|
| -}
|
| +class PrinterQuery;
|
| +class PrintingUIWebContentsObserver;
|
|
|
| // This class filters out incoming printing related IPC messages for the
|
| // renderer process on the IPC thread.
|
| @@ -85,33 +86,29 @@ class PrintingMessageFilter : public content::BrowserMessageFilter {
|
|
|
| // Retrieve print settings. Uses |render_view_id| to get a parent
|
| // for any UI created if needed.
|
| - void GetPrintSettingsForRenderView(
|
| - int render_view_id,
|
| - GetPrintSettingsForRenderViewParams params,
|
| - const base::Closure& callback,
|
| - scoped_refptr<printing::PrinterQuery> printer_query);
|
| + void GetPrintSettingsForRenderView(int render_view_id,
|
| + GetPrintSettingsForRenderViewParams params,
|
| + const base::Closure& callback,
|
| + scoped_refptr<PrinterQuery> printer_query);
|
|
|
| - void OnGetPrintSettingsFailed(
|
| - const base::Closure& callback,
|
| - scoped_refptr<printing::PrinterQuery> printer_query);
|
| + void OnGetPrintSettingsFailed(const base::Closure& callback,
|
| + scoped_refptr<PrinterQuery> printer_query);
|
|
|
| // Checks if printing is enabled.
|
| void OnIsPrintingEnabled(bool* is_enabled);
|
|
|
| // Get the default print setting.
|
| void OnGetDefaultPrintSettings(IPC::Message* reply_msg);
|
| - void OnGetDefaultPrintSettingsReply(
|
| - scoped_refptr<printing::PrinterQuery> printer_query,
|
| - IPC::Message* reply_msg);
|
| + void OnGetDefaultPrintSettingsReply(scoped_refptr<PrinterQuery> printer_query,
|
| + IPC::Message* reply_msg);
|
|
|
| // The renderer host have to show to the user the print dialog and returns
|
| // the selected print settings. The task is handled by the print worker
|
| // thread and the UI thread. The reply occurs on the IO thread.
|
| void OnScriptedPrint(const PrintHostMsg_ScriptedPrint_Params& params,
|
| IPC::Message* reply_msg);
|
| - void OnScriptedPrintReply(
|
| - scoped_refptr<printing::PrinterQuery> printer_query,
|
| - IPC::Message* reply_msg);
|
| + void OnScriptedPrintReply(scoped_refptr<PrinterQuery> printer_query,
|
| + IPC::Message* reply_msg);
|
|
|
| // Modify the current print settings based on |job_settings|. The task is
|
| // handled by the print worker thread and the UI thread. The reply occurs on
|
| @@ -119,9 +116,8 @@ class PrintingMessageFilter : public content::BrowserMessageFilter {
|
| void OnUpdatePrintSettings(int document_cookie,
|
| const base::DictionaryValue& job_settings,
|
| IPC::Message* reply_msg);
|
| - void OnUpdatePrintSettingsReply(
|
| - scoped_refptr<printing::PrinterQuery> printer_query,
|
| - IPC::Message* reply_msg);
|
| + void OnUpdatePrintSettingsReply(scoped_refptr<PrinterQuery> printer_query,
|
| + IPC::Message* reply_msg);
|
|
|
| #if defined(ENABLE_FULL_PRINTING)
|
| // Check to see if print preview has been cancelled.
|
| @@ -134,9 +130,11 @@ class PrintingMessageFilter : public content::BrowserMessageFilter {
|
|
|
| const int render_process_id_;
|
|
|
| - scoped_refptr<printing::PrintQueriesQueue> queue_;
|
| + scoped_refptr<PrintQueriesQueue> queue_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(PrintingMessageFilter);
|
| };
|
|
|
| +} // namespace printing
|
| +
|
| #endif // CHROME_BROWSER_PRINTING_PRINTING_MESSAGE_FILTER_H_
|
|
|