| OLD | NEW |
| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 resource.consecutive_misses; | 91 resource.consecutive_misses; |
| 92 row.appendChild(document.createElement('td')).textContent = | 92 row.appendChild(document.createElement('td')).textContent = |
| 93 resource.position; | 93 resource.position; |
| 94 row.appendChild(document.createElement('td')).textContent = | 94 row.appendChild(document.createElement('td')).textContent = |
| 95 resource.score; | 95 resource.score; |
| 96 body.appendChild(row); | 96 body.appendChild(row); |
| 97 } | 97 } |
| 98 } | 98 } |
| 99 } | 99 } |
| 100 | 100 |
| 101 document.addEventListener('DOMContentLoaded', | 101 document.addEventListener( |
| 102 requestResourcePrefetchPredictorDb); | 102 'DOMContentLoaded', requestResourcePrefetchPredictorDb); |
| OLD | NEW |