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

Unified Diff: chrome/browser/tab_contents/navigation_metrics_recorder.h

Issue 2633523003: Record data: URL metrics for mime types that can run JavaScript. (Closed)
Patch Set: Remove extra whitespace Created 3 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/tab_contents/navigation_metrics_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/navigation_metrics_recorder.h
diff --git a/chrome/browser/tab_contents/navigation_metrics_recorder.h b/chrome/browser/tab_contents/navigation_metrics_recorder.h
index 0aa6fdb589d1fe8d71669119ff662ce81d9235cc..a13bba98c02da6efa9d947918eb85eaaad965af2 100644
--- a/chrome/browser/tab_contents/navigation_metrics_recorder.h
+++ b/chrome/browser/tab_contents/navigation_metrics_recorder.h
@@ -22,6 +22,17 @@ class NavigationMetricsRecorder
void set_rappor_service_for_testing(
rappor::RapporServiceImpl* rappor_service);
+ // This enum is used in building a histogram. So, this is append only,
+ // any new scheme should be added at the end, before MIME_TYPE_MAX.
+ enum MimeType {
+ MIME_TYPE_OTHER,
+ MIME_TYPE_HTML,
+ MIME_TYPE_XHTML,
+ MIME_TYPE_PDF,
+ MIME_TYPE_SVG,
+ MIME_TYPE_MAX
+ };
+
private:
explicit NavigationMetricsRecorder(content::WebContents* web_contents);
friend class content::WebContentsUserData<NavigationMetricsRecorder>;
« no previous file with comments | « no previous file | chrome/browser/tab_contents/navigation_metrics_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698