summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/download_internals/download_internals.html
blob: 9c60f4f637bb542900fe138efebd3b3572e7163e (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!doctype html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>Download Internals</title>
    <meta name="viewport" content="width=device-width">
    <link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
    <link rel="stylesheet" href="download_internals.css">

    <script src="chrome://resources/js/promise_resolver.js"></script>
    <script src="chrome://resources/js/cr.js"></script>
    <script src="chrome://resources/js/util.js"></script>

    <script src="download_internals_browser_proxy.js"></script>
    <script src="download_internals.js"></script>
    <script src="download_internals_visuals.js"></script>
  </head>
  <body>
    <h1>Download Internals</h1>
    <h4>Start Download</h4>
    <div id="download-service-request-info">
      <input id="download-url" type="url"
          placeholder="http://www.example.com">
      <button id="start-download">Download</button>
    </div>
    <h4>Service State</h4>
    <div>
      State: <span id="service-state" class="status"></span>
      Model: <span id="service-status-model" class="status"></span>
      Driver: <span id="service-status-driver" class="status"></span>
      File Monitor: <span id="service-status-file" class="status"></span>
    </div>
    <h4>Entry Requests</h4>
    <div class="sub-text">
      The entry URLs have been modified to strip query params so that possibly
      private information is hidden from view.
    </div>
    <div id="download-service-request-info">
      <table class="styled-table">
        <thead>
          <tr>
            <th>Result</th>
            <th>Client</th>
            <th>ID</th>
          </tr>
        </thead>
        <tbody>
          <tr jsselect="requests"
              jsvalues=".className: downloadInternalsVisuals.getServiceRequestClass($this)">
            <td jscontent="result"></td>
            <td jscontent="client"></td>
            <td jscontent="guid"></td>
          </tr>
        </tbody>
      </table>
    </div>
    <h4>Completed/Failed Downloads</h4>
    <div id="download-service-finished-entries-info">
      <table class="styled-table">
        <thead>
          <tr>
            <th>Result</th>
            <th>Client</th>
            <th>ID</th>
            <th>URL</th>
            <th>Size</th>
          </tr>
        </thead>
        <tbody>
          <tr jsselect="entries"
              jsvalues=".className: downloadInternalsVisuals.getFinishedServiceEntryClass($this)">
            <td jscontent="result"></td>
            <td jscontent="client"></td>
            <td jscontent="guid"></td>
            <td>
              <div jscontent="url"></div>
              <div jscontent="file_path"></div>
            </td>
            <td jscontent="bytes_downloaded"></td>
          </tr>
        </tbody>
      </table>
    </div>
    <h4>In-Progress Downloads</h4>
    <div id="download-service-ongoing-entries-info">
      <table class="styled-table">
        <thead>
          <tr>
            <th>State</th>
            <th>Client</th>
            <th>ID</th>
            <th>URL</th>
            <th>Bytes Downloaded</th>
          </tr>
        </thead>
        <tbody>
          <tr jsselect="entries"
              jsvalues=".className: downloadInternalsVisuals.getOngoingServiceEntryClass($this)">
            <td>
              <div jscontent="state"></div>
              <div jsdisplay="typeof driver != 'undefined'">
                <span jscontent="driver.state"></span>
              </div>
            </td>
            <td jscontent="client"></td>
            <td jscontent="guid"></td>
            <td jscontent="url"></td>
            <td jscontent="bytes_downloaded"></td>
          </tr>
        </tbody>
      </table>
    </div>
    <script src="chrome://resources/js/jstemplate_compiled.js"></script>
  </body>
</html>