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

Side by Side Diff: chrome/browser/resources/predictors/resource_prefetch_predictor.js

Issue 2755093002: predictors: Mark before_first_contentful_paint for resources fetched before fcp. (Closed)
Patch Set: Bump kDatabaseVersion Created 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 /** 5 /**
6 * Requests the database from the backend. 6 * Requests the database from the backend.
7 */ 7 */
8 function requestResourcePrefetchPredictorDb() { 8 function requestResourcePrefetchPredictorDb() {
9 chrome.send('requestResourcePrefetchPredictorDb'); 9 chrome.send('requestResourcePrefetchPredictorDb');
10 } 10 }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 row.appendChild(document.createElement('td')).textContent = 85 row.appendChild(document.createElement('td')).textContent =
86 resource.number_of_hits; 86 resource.number_of_hits;
87 row.appendChild(document.createElement('td')).textContent = 87 row.appendChild(document.createElement('td')).textContent =
88 resource.number_of_misses; 88 resource.number_of_misses;
89 row.appendChild(document.createElement('td')).textContent = 89 row.appendChild(document.createElement('td')).textContent =
90 resource.consecutive_misses; 90 resource.consecutive_misses;
91 row.appendChild(document.createElement('td')).textContent = 91 row.appendChild(document.createElement('td')).textContent =
92 resource.position; 92 resource.position;
93 row.appendChild(document.createElement('td')).textContent = 93 row.appendChild(document.createElement('td')).textContent =
94 resource.score; 94 resource.score;
95 row.appendChild(document.createElement('td')).textContent =
96 resource.before_first_contentful_paint;
95 body.appendChild(row); 97 body.appendChild(row);
96 } 98 }
97 } 99 }
98 } 100 }
99 101
100 document.addEventListener('DOMContentLoaded', 102 document.addEventListener('DOMContentLoaded',
101 requestResourcePrefetchPredictorDb); 103 requestResourcePrefetchPredictorDb);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698