| Index: chrome/browser/printing/print_view_manager_base.h
|
| diff --git a/chrome/browser/printing/print_view_manager_base.h b/chrome/browser/printing/print_view_manager_base.h
|
| index ee19939c1341eb792b48ade7ccd0bcda45945742..a4cf674bc397fc1d941e9849942683776305e882 100644
|
| --- a/chrome/browser/printing/print_view_manager_base.h
|
| +++ b/chrome/browser/printing/print_view_manager_base.h
|
| @@ -9,12 +9,16 @@
|
|
|
| #include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| +#include "base/memory/shared_memory.h"
|
| +#include "base/memory/shared_memory_handle.h"
|
| #include "base/strings/string16.h"
|
| #include "build/build_config.h"
|
| #include "components/prefs/pref_member.h"
|
| #include "components/printing/browser/print_manager.h"
|
| +#include "components/printing/service/public/interfaces/pdf_compositor.mojom.h"
|
| #include "content/public/browser/notification_observer.h"
|
| #include "content/public/browser/notification_registrar.h"
|
| +#include "mojo/public/cpp/system/platform_handle.h"
|
| #include "printing/features/features.h"
|
| #include "printing/printed_pages_source.h"
|
|
|
| @@ -85,9 +89,19 @@ class PrintViewManagerBase : public content::NotificationObserver,
|
|
|
| // IPC Message handlers.
|
| void OnDidGetPrintedPagesCount(int cookie, int number_pages) override;
|
| - void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params);
|
| void OnPrintingFailed(int cookie) override;
|
| void OnShowInvalidPrinterSettingsError();
|
| + void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params);
|
| +
|
| + // Handle extra tasks once a page or doc is printed.
|
| + void UpdateForPrintedPage(const PrintHostMsg_DidPrintPage_Params& params,
|
| + bool has_valid_page_data,
|
| + std::unique_ptr<base::SharedMemory> shared_buf);
|
| +
|
| + // IPC message handlers for service.
|
| + void OnComposePdfDone(const PrintHostMsg_DidPrintPage_Params& params,
|
| + mojom::PdfCompositor::Status status,
|
| + mojo::ScopedSharedBufferHandle handle);
|
|
|
| // Processes a NOTIFY_PRINT_JOB_EVENT notification.
|
| void OnNotifyPrintJobEvent(const JobEventDetails& event_details);
|
|
|