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

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_handler.h

Issue 1556463003: Mark printing code as basic printing and/or print preview code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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/ui/webui/print_preview/print_preview_handler.h
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.h b/chrome/browser/ui/webui/print_preview/print_preview_handler.h
index 5d19a46ab5fe797f278729fef246927205e1b422..2d876f5a7c26e1fb6225535d065fd369eed2dd7b 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.h
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.h
@@ -22,7 +22,7 @@
#if defined(ENABLE_SERVICE_DISCOVERY)
#include "chrome/browser/local_discovery/privet_local_printer_lister.h"
#include "chrome/browser/local_discovery/service_discovery_shared_client.h"
-#endif // ENABLE_SERVICE_DISCOVERY
+#endif // defined(ENABLE_SERVICE_DISCOVERY)
class PrinterHandler;
class PrintPreviewUI;
@@ -84,7 +84,7 @@ class PrintPreviewHandler
// Called when the user press ctrl+shift+p to display the native system
// dialog.
void ShowSystemDialog();
-#endif // ENABLE_BASIC_PRINTING
+#endif // defined(ENABLE_BASIC_PRINTING)
#if defined(ENABLE_SERVICE_DISCOVERY)
// PrivetLocalPrinterLister::Delegate implementation.
@@ -102,7 +102,8 @@ class PrintPreviewHandler
void OnPrivetPrintingError(
const local_discovery::PrivetLocalPrintOperation* print_operation,
int http_code) override;
-#endif // ENABLE_SERVICE_DISCOVERY
+#endif // defined(ENABLE_SERVICE_DISCOVERY)
+
int regenerate_preview_request_count() const {
return regenerate_preview_request_count_;
}
@@ -164,7 +165,7 @@ class PrintPreviewHandler
// Asks the initiator renderer to show the native print system dialog. |args|
// is unused.
void HandleShowSystemDialog(const base::ListValue* args);
-#endif // ENABLE_BASIC_PRINTING
+#endif // defined(ENABLE_BASIC_PRINTING)
// Callback for the signin dialog to call once signin is complete.
void OnSigninComplete();
@@ -303,7 +304,7 @@ class PrintPreviewHandler
const local_discovery::DeviceDescription& description,
bool has_local_printing,
base::DictionaryValue* printer_value);
-#endif
+#endif // defined(ENABLE_SERVICE_DISCOVERY)
// Lazily creates |extension_printer_handler_| that can be used to handle
// extension printers requests.
@@ -382,7 +383,7 @@ class PrintPreviewHandler
privet_capabilities_operation_;
scoped_ptr<local_discovery::PrivetLocalPrintOperation>
privet_local_print_operation_;
-#endif
+#endif // defined(ENABLE_SERVICE_DISCOVERY)
// Handles requests for extension printers. Created lazily by calling
// |EnsureExtensionPrinterHandlerSet|.

Powered by Google App Engine
This is Rietveld 408576698