Index: chrome/browser/ui/webui/print_preview_handler.h |
diff --git a/chrome/browser/ui/webui/print_preview_handler.h b/chrome/browser/ui/webui/print_preview_handler.h |
index 6f4ac1dc082e3ccbe83ad1ac492513f14eba6282..f5f2a6a605dcd38650d55b8fcfa2ad39e6fc4e3a 100644 |
--- a/chrome/browser/ui/webui/print_preview_handler.h |
+++ b/chrome/browser/ui/webui/print_preview_handler.h |
@@ -85,6 +85,9 @@ class PrintPreviewHandler : public WebUIMessageHandler, |
// Helper function to activate the initiator tab and close the preview tab. |
void ActivateInitiatorTabAndClosePreviewTab(); |
+ // Adds all the recorded stats taken so far to histogram counts. |
+ void ReportStats(); |
+ |
// Pointer to current print system. |
scoped_refptr<printing::PrintBackend> print_backend_; |
@@ -93,6 +96,19 @@ class PrintPreviewHandler : public WebUIMessageHandler, |
static FilePath* last_saved_path_; |
+ // A count of how many requests received to regenerate preview data. |
+ // Initialized to 0 then incremented and emitted to a histogram. |
+ int regenerate_preview_request_count_; |
+ |
+ // A count of how many requests received to show manage printers dialog. |
+ int manage_printers_dialog_request_count_; |
+ |
+ // A count of how many times print preview failed. |
+ int print_preview_failed_count_; |
+ |
+ // Whether we have already logged the number of printers this session. |
+ bool has_logged_printers_count_; |
+ |
DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); |
}; |