summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/net_internals/prerender_view.html
blob: 9d254f6ad7f976597623b4f6c4b695516c89f9a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<style>

#prerender-view-history-table tr.used {
  background-color: #F0FFF0;
}

#prerender-view-history-table tr:not(.used) {
  background-color: #FFF0F0;
}

</style>

<div id=prerender-view-tab-content class=content-box>
  <ul style='margin-top:0'>
    <li>Prerender Enabled:
      <span jscontent="enabled"></span>
      <span jscontent="enabled_note"></span></li>
    <li>Prerender Omnibox Enabled:
      <span jscontent="omnibox_enabled"></span></li>
  </ul>
  <h4>Active Prerender Pages</h4>
  <table class="styled-table">
    <thead>
      <tr>
        <th>URL</th>
        <th>Duration</th>
        <th>Loaded</th>
      </tr>
    </thead>
    <tbody id=prerender-view-active-table>
      <tr jsselect="active">
        <td jscontent="url"></td>
        <td jscontent="duration"></td>
        <td jscontent="is_loaded"></td>
      </tr>
    </tbody>
  </table>
  <h4>Prerender History</h4>
  <table class="styled-table">
    <thead>
      <tr>
        <th>Origin</th>
        <th>URL</th>
        <th>Final Status</th>
        <th>Time</th>
      </tr>
    </thead>
    <tbody id=prerender-view-history-table>
      <tr jsselect="$this.history" jsvalues=".className: final_status.toLowerCase()">
        <td jscontent="origin"></td>
        <td jscontent="url"></td>
        <td jscontent="final_status"></td>
        <td jscontent="timeutil.dateToString(new Date(parseInt(end_time)))"></td>
      </tr>
    </tbody>
  </table>
</div>