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

Unified Diff: chrome/browser/page_load_metrics/page_load_tracker.h

Issue 2804093002: Various page_load_metrics cleanups and improvements (Closed)
Patch Set: address comments Created 3 years, 8 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
Index: chrome/browser/page_load_metrics/page_load_tracker.h
diff --git a/chrome/browser/page_load_metrics/page_load_tracker.h b/chrome/browser/page_load_metrics/page_load_tracker.h
index 08111a55442c9e811c7914bb8bb04e7fabdaea0e..9b9d5e7c223ff512276162d0d1960ef9cbd22315 100644
--- a/chrome/browser/page_load_metrics/page_load_tracker.h
+++ b/chrome/browser/page_load_metrics/page_load_tracker.h
@@ -55,8 +55,9 @@ enum InternalErrorLoadEvent {
// A timing IPC was sent from the renderer that did not line up with previous
// data we've received (i.e. navigation start is different or the timing
// struct is somehow invalid). This error can only occur once the IPC is
- // vetted in other ways (see other errors).
- ERR_BAD_TIMING_IPC,
+ // vetted in other ways (see other errors). This error is deprecated as it has
+ // been replaced by the more detailed ERR_BAD_TIMING_IPC_* error codes.
+ DEPRECATED_ERR_BAD_TIMING_IPC,
// The following IPCs are not mutually exclusive.
//
@@ -111,6 +112,19 @@ enum InternalErrorLoadEvent {
// Received a timing update from a subframe.
ERR_TIMING_IPC_FROM_SUBFRAME,
+ // A timing IPC was sent from the renderer that contained timing data which
+ // was inconsistent with our timing data for the currently committed load.
+ ERR_BAD_TIMING_IPC_INVALID_TIMING_DESCENDENT,
+
+ // A timing IPC was sent from the renderer that contained loading behavior
+ // data which was inconsistent with our loading behavior data for the
+ // currently committed load.
+ ERR_BAD_TIMING_IPC_INVALID_BEHAVIOR_DESCENDENT,
+
+ // A timing IPC was sent from the renderer that contained invalid timing data
+ // (e.g. out of order timings, or other issues).
+ ERR_BAD_TIMING_IPC_INVALID_TIMING,
+
// Add values before this final count.
ERR_LAST_ENTRY,
};
@@ -160,8 +174,7 @@ class PageLoadTracker {
void NotifyClientRedirectTo(const PageLoadTracker& destination);
- // Returns true if the timing was successfully updated.
- bool UpdateTiming(const PageLoadTiming& timing,
+ void UpdateTiming(const PageLoadTiming& timing,
const PageLoadMetadata& metadata);
// Update metadata for child frames. Updates for child frames arrive

Powered by Google App Engine
This is Rietveld 408576698