Revert "[M120 Migration]Fix for crash during chrome exit"
[platform/framework/web/chromium-efl.git] / printing / printing_context.h
index 4209517..c753f04 100644 (file)
@@ -8,7 +8,7 @@
 #include <memory>
 #include <string>
 
-#include "base/callback.h"
+#include "base/functional/callback.h"
 #include "base/memory/raw_ptr.h"
 #include "base/values.h"
 #include "build/build_config.h"
@@ -109,9 +109,12 @@ class COMPONENT_EXPORT(PRINTING) PrintingContext {
       std::unique_ptr<PrintSettings> job_settings);
 #endif
 
-  // Applies the print settings to this context.  Intended to be used only by
-  // the Print Backend service process.
-  void ApplyPrintSettings(const PrintSettings& settings);
+  // Sets the print settings to `settings`.
+  void SetPrintSettings(const PrintSettings& settings);
+
+  // Set the printable area in print settings to be the default printable area.
+  // Intended to be used only for virtual printers.
+  void SetDefaultPrintableAreaForVirtualPrinters();
 
   // Does platform specific setup of the printer before the printing. Signal the
   // printer that a document is about to be spooled.
@@ -202,8 +205,6 @@ class COMPONENT_EXPORT(PRINTING) PrintingContext {
   // Does bookkeeping when an error occurs.
   virtual mojom::ResultCode OnError();
 
-  void SetDefaultPrintableAreaForVirtualPrinters();
-
   // Complete print context settings.
   std::unique_ptr<PrintSettings> settings_;