blob: 781fcb0fcec20c0d2396a43fdc167e1689ac1b17 (
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
|
<!DOCTYPE html>
<html i18n-values="dir:textdirection;">
<head>
<meta charset="utf-8">
<title>IndexedDB</title>
<link rel="stylesheet" href="chrome://resources/css/tabs.css">
<link rel="stylesheet" href="chrome://resources/css/widgets.css">
<link rel="stylesheet" href="indexeddb_internals.css">
</head>
<body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
<!-- templates -->
<div style="display:none">
<div id="indexeddb-list-template"
jsvalues="$partition_path:$this.partition_path">
<div class="indexeddb-summary">
<span>Instances in: </span>
<span jscontent="$this.partition_path"></span>
<span jscontent="'(' + $this.idbs.length + ')'"></span>
</div>
<div class="indexeddb-item" jsselect="$this.idbs">
<a class="indexeddb-url" jscontent="url" jsvalues="href:url"
target="_blank"></a>
<div class="indexeddb-size">
<span>Size:</span>
<span jscontent="size"></span>
</div>
<div class="indexeddb-last-modified">
<span>Last modified:</span>
<span jscontent="new Date(last_modified)"></span>
</div>
<div>
<span>Open connections:</span>
<span class="connection-count"
jsvalues=".idb_origin_url:url;.idb_partition_path:$partition_path"
jscontent="connection_count">
</div>
<div class="indexeddb-last-modified">
<span>Path:</span>
<span jscontent="path"></span>
</div>
<div class="controls">
<a href="#" class="force-close"
jsvalues=".idb_origin_url:url;.idb_partition_path:$partition_path">Force close</a>
<a href="#" class="download"
jsvalues=".idb_origin_url:url;.idb_partition_path:$partition_path">Download</a>
<span class="download-status" style="display: none">Loading...</span>
</div>
<div class="indexeddb-database" jsselect="$this.databases">
<span>Open database:</span>
<span jscontent="name"></span>
<div>
<span>Connections:</span>
<span class="indexeddb-connection-count"
jsdisplay="connection_count">
<span>open:</span>
<span jscontent="connection_count"></span>
</span>
<span class="indexeddb-connection-count pending"
jsdisplay="pending_opens">
<span>pending opens:</span>
<span jscontent="pending_opens"></span>
</span>
<span class="indexeddb-connection-count pending"
jsdisplay="pending_upgrades">
<span>pending upgrades:</span>
<span jscontent="pending_upgrades"></span>
</span>
<span class="indexeddb-connection-count pending"
jsdisplay="running_upgrades">
<span>running upgrades:</span>
<span jscontent="running_upgrades"></span>
</span>
<span class="indexeddb-connection-count pending"
jsdisplay="pending_deletes">
<span>pending deletes:</span>
<span jscontent="pending_deletes"></span>
</span>
</div>
<div jsdisplay="$this.transactions &&
$this.transactions.length">
<span>Transactions:</span>
<table class="indexeddb-transaction-list">
<tbody>
<tr>
<th title="Process ID of the tab or SharedWorker that created the transaction">
Process ID
</th>
<th title="Transaction ID (unique within Process)">
ID
</th>
<th title="Type of transaction">
Mode
</th>
<th title="Names of object stores used by the transaction">
Scope
</th>
<th title="Number of requests that have been executed">
Completed Requests
</th>
<th title="Number of requests that have not yet been executed">
Pending Requests
</th>
<th title="Time since transaction creation">
Age (ms)
</th>
<th title="Time since transaction started">
Runtime (ms)
</th>
<th title="Status in the transaction queue">
Status
</th>
</tr>
<tr class="indexeddb-transaction"
jsselect="$this.transactions"
jseval="this.classList.add($this.status)">
<td class="indexeddb-transaction-pid"
jscontent="pid">
</td>
<td class="indexeddb-transaction-tid"
jscontent="tid">
</td>
<td class="indexeddb-transaction-mode"
jscontent="mode">
</td>
<td class="indexeddb-transaction-scope"
jscontent="'[ ' + scope.join(', ') + ' ]'">
</td>
<td class="indexeddb-transaction-requests-complete"
jscontent="tasks_completed">
</td>
<td class="indexeddb-transaction-requests-pending"
jscontent="tasks_scheduled - tasks_completed">
</td>
<td class="indexeddb-transaction-age"
jscontent="Math.round(age)">
</td>
<td class="indexeddb-transaction-age">
<span jsdisplay="status == 'started' || status == 'running'"
jscontent="Math.round(runtime)">
</span>
</td>
<td class="indexeddb-transaction-state"
jscontent="status">
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<h1>IndexedDB</h1>
<div class="content">
<div id="indexeddb-list">
</div>
<script src="chrome://resources/js/util.js"></script>
<script src="chrome://resources/js/cr.js"></script>
<script src="indexeddb_internals.js"></script>
<script src="chrome://resources/js/load_time_data.js"></script>
<script src="chrome://resources/js/jstemplate_compiled.js"></script>
<script src="strings.js"></script>
<script src="chrome://resources/js/i18n_template2.js"></script>
</body>
</html>
|