Chromium Code Reviews| Index: chrome/browser/printing/print_preview_message_handler.h |
| diff --git a/chrome/browser/printing/print_preview_message_handler.h b/chrome/browser/printing/print_preview_message_handler.h |
| index ba7102008ba757b99ccff509e0f5e00690d97321..c2c7f0a7807b0690b81fde2be5e3abff9dd473af 100644 |
| --- a/chrome/browser/printing/print_preview_message_handler.h |
| +++ b/chrome/browser/printing/print_preview_message_handler.h |
| @@ -7,6 +7,8 @@ |
| #include "base/compiler_specific.h" |
| #include "base/macros.h" |
| +#include "base/memory/ref_counted_memory.h" |
| +#include "components/printing/service/public/interfaces/pdf_compositor.mojom.h" |
| #include "content/public/browser/web_contents_observer.h" |
| #include "content/public/browser/web_contents_user_data.h" |
| @@ -70,6 +72,27 @@ class PrintPreviewMessageHandler |
| void OnSetOptionsFromDocument( |
| const PrintHostMsg_SetOptionsFromDocument_Params& params); |
| + void NotifyUIPreviewPageReady( |
| + int page_number, |
| + int request_id, |
| + scoped_refptr<base::RefCountedBytes> data_bytes); |
| + void NotifyUIPreviewDocumentReady( |
| + int page_count, |
| + int request_id, |
| + scoped_refptr<base::RefCountedBytes> data_bytes); |
| + |
| + // Callbacks for pdf compositor client. |
| + void OnCompositePdfPageDone(int page_number, |
| + int request_id, |
| + mojom::PdfCompositor::Status status, |
| + mojo::ScopedSharedBufferHandle handle); |
| + void OnCompositePdfDocumentDone(int page_count, |
| + int request_id, |
| + mojom::PdfCompositor::Status status, |
| + mojo::ScopedSharedBufferHandle handle); |
| + |
| + base::WeakPtrFactory<PrintPreviewMessageHandler> weak_ptr_factory_; |
|
Lei Zhang
2017/09/09 00:44:59
#include "base/memory/weak_ptr.h"
|
| + |
| DISALLOW_COPY_AND_ASSIGN(PrintPreviewMessageHandler); |
| }; |