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

Side by Side Diff: chrome/browser/ui/webui/print_preview_handler.h

Issue 7016039: PrintPreview: Added new histograms for print preview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 // Helper function to get the initiator tab for the print preview tab. 79 // Helper function to get the initiator tab for the print preview tab.
80 TabContents* GetInitiatorTab(); 80 TabContents* GetInitiatorTab();
81 81
82 // Helper function to close the print preview tab. 82 // Helper function to close the print preview tab.
83 void ClosePrintPreviewTab(); 83 void ClosePrintPreviewTab();
84 84
85 // Helper function to activate the initiator tab and close the preview tab. 85 // Helper function to activate the initiator tab and close the preview tab.
86 void ActivateInitiatorTabAndClosePreviewTab(); 86 void ActivateInitiatorTabAndClosePreviewTab();
87 87
88 // Adds all the recorded stats taken so far to histogram counts.
89 void ReportStats();
90
88 // Pointer to current print system. 91 // Pointer to current print system.
89 scoped_refptr<printing::PrintBackend> print_backend_; 92 scoped_refptr<printing::PrintBackend> print_backend_;
90 93
91 // The underlying dialog object. 94 // The underlying dialog object.
92 scoped_refptr<SelectFileDialog> select_file_dialog_; 95 scoped_refptr<SelectFileDialog> select_file_dialog_;
93 96
94 static FilePath* last_saved_path_; 97 static FilePath* last_saved_path_;
95 98
99 // A count of how many requests received to regenerate preview data.
100 // Initialized to 0 then incremented and emitted to a histogram.
101 int regenerate_preview_request_count_;
102
103 // A count of how many requests received to show manage printers dialog.
104 int manage_printers_dialog_request_count_;
105
106 // A count of how many times print preview failed.
107 int print_preview_failed_count_;
108
109 // Whether we have already logged the number of printers this session.
110 bool has_logged_printers_count_;
111
96 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 112 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
97 }; 113 };
98 114
99 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_ 115 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/print_preview_handler.cc » ('j') | chrome/browser/ui/webui/print_preview_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698