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

Side by Side Diff: chrome/browser/prerender/prerender_histograms.h

Issue 9270018: Make a separate histogram for MatchComplete Final Status'es and (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 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 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_PRERENDER_PRERENDER_HISTOGRAMS_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_HISTOGRAMS_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_HISTOGRAMS_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_HISTOGRAMS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 29 matching lines...) Expand all
40 void RecordTimeUntilUsed(base::TimeDelta time_until_used, 40 void RecordTimeUntilUsed(base::TimeDelta time_until_used,
41 base::TimeDelta max_age) const; 41 base::TimeDelta max_age) const;
42 42
43 // Record a PerSessionCount data point. 43 // Record a PerSessionCount data point.
44 void RecordPerSessionCount(int count) const; 44 void RecordPerSessionCount(int count) const;
45 45
46 // Record time between two prerender requests. 46 // Record time between two prerender requests.
47 void RecordTimeBetweenPrerenderRequests(base::TimeDelta time) const; 47 void RecordTimeBetweenPrerenderRequests(base::TimeDelta time) const;
48 48
49 // Record a final status of a prerendered page in a histogram. 49 // Record a final status of a prerendered page in a histogram.
50 void RecordFinalStatus(Origin origin, 50 void RecordFinalStatus(Origin origin,
dominich 2012/01/20 22:23:37 If either this or the below new method are not cal
51 uint8 experiment_id, 51 uint8 experiment_id,
52 FinalStatus final_status) const; 52 FinalStatus final_status) const;
53 53
54 // Record a MatchComplete final status of a prerendered page in a histogram.
55 void RecordMatchCompleteFinalStatus(Origin origin,
56 uint8 experiment_id,
57 FinalStatus final_status) const;
58
54 59
55 // To be called when a new prerender is added. 60 // To be called when a new prerender is added.
56 void RecordPrerender(Origin origin, const GURL& url); 61 void RecordPrerender(Origin origin, const GURL& url);
57 62
58 // To be called when a new prerender is started. 63 // To be called when a new prerender is started.
59 void RecordPrerenderStarted(Origin origin) const; 64 void RecordPrerenderStarted(Origin origin) const;
60 65
61 // Called when we swap in a prerender. 66 // Called when we swap in a prerender.
62 void RecordUsedPrerender(Origin origin) const; 67 void RecordUsedPrerender(Origin origin) const;
63 68
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // start recording events before the first prerender occurs. 106 // start recording events before the first prerender occurs.
102 bool seen_any_pageload_; 107 bool seen_any_pageload_;
103 bool seen_pageload_started_after_prerender_; 108 bool seen_pageload_started_after_prerender_;
104 109
105 DISALLOW_COPY_AND_ASSIGN(PrerenderHistograms); 110 DISALLOW_COPY_AND_ASSIGN(PrerenderHistograms);
106 }; 111 };
107 112
108 } // namespace prerender 113 } // namespace prerender
109 114
110 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_HISTOGRAMS_H_ 115 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_HISTOGRAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698