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

Unified Diff: chrome/browser/printing/print_view_manager_base.h

Issue 2653963002: [Experimental] Supporting OOPIF printing
Patch Set: Rename service, fix for webview, and connect to DiscardableMemoryManager Created 3 years, 9 months 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 side-by-side diff with in-line comments
Download patch
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 c54ba76e5d95c1782fcaf0136c03644adb16991e..d940410aeccc909489340eaddd20e8a26bf8e52b 100644
--- a/chrome/browser/printing/print_view_manager_base.h
+++ b/chrome/browser/printing/print_view_manager_base.h
@@ -9,12 +9,14 @@
#include "base/macros.h"
#include "base/memory/ref_counted.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 "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"
@@ -27,6 +29,7 @@ class RenderFrameHost;
namespace printing {
class JobEventDetails;
+class PrintCompositeClient;
class PrintJob;
class PrintJobWorkerOwner;
class PrintQueriesQueue;
@@ -79,9 +82,16 @@ 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(content::RenderFrameHost* render_frame_host,
+ const PrintHostMsg_DidPrintPage_Params& params);
+ void OnIsReadyToCompose(content::RenderFrameHost* render_frame_host,
+ const PrintHostMsg_DidPrintPage_Params& params,
+ bool status);
+
+ // IPC message handlers for service.
+ void OnComposePdfDone(mojo::ScopedSharedBufferHandle handle);
// Processes a NOTIFY_PRINT_JOB_EVENT notification.
void OnNotifyPrintJobEvent(const JobEventDetails& event_details);
@@ -158,6 +168,8 @@ class PrintViewManagerBase : public content::NotificationObserver,
// Whether printing is enabled.
BooleanPrefMember printing_enabled_;
+ PrintCompositeClient* composite_client_;
+
scoped_refptr<printing::PrintQueriesQueue> queue_;
DISALLOW_COPY_AND_ASSIGN(PrintViewManagerBase);
« no previous file with comments | « chrome/browser/printing/print_preview_message_handler.cc ('k') | chrome/browser/printing/print_view_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698