summaryrefslogtreecommitdiff
path: root/chromium/components/gcm_driver/resources/gcm_internals.html
blob: 70c3856c5e75a7c02b3c39f3bcd6b64be0bf5310 (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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!doctype html>
<html dir="ltr" lang="en">
<head>
  <meta charset="utf-8">
  <title>GCM Internals</title>
  <if expr="is_android">
    <meta name="viewport" content="width=device-width">
  </if>
  <link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
  <link rel="stylesheet" href="gcm_internals.css">
  <script type="module" src="gcm_internals.js"></script>
</head>
<body>
<h1>GCM Internals</h1>
<div class="flexbar">
  <button id="refresh">Refresh</button>
  <button id="recording">Start Recording</button>
  <button id="clear-logs">Clear All Logs</button>
</div>

<h2>Device Info</h2>
<table id="device-info">
  <tbody>
    <if expr="not is_android">
      <tr>
        <td>
          Android Id
        </td>
        <td>
          <span id="android-id"></span>
          <span id="android-secret-container" class="invisible">
            (<b>secret</b>: <span id="android-secret"></span>)
          </span>
        </td>
      </tr>
      <tr>
        <td>
          User Profile Service Created
        </td>
        <td id="profile-service-created">
        </td>
      </tr>
    </if>
    <tr>
      <td>
        GCM Enabled
      </td>
      <td id="gcm-enabled">
      </td>
    </tr>
    <if expr="not is_android">
      <tr>
        <td>
          GCM Client Created
        </td>
        <td id="gcm-client-created">
        </td>
      </tr>
      <tr>
        <td>
          GCM Client State
        </td>
        <td id="gcm-client-state">
        </td>
      </tr>
      <tr>
        <td>
          Connection Client Created
        </td>
        <td id="connection-client-created">
        </td>
      </tr>
      <tr>
        <td>
          Connection State
        </td>
        <td id="connection-state">
        </td>
      </tr>
      <tr>
        <td>
          Last Checkin
        </td>
        <td id="last-checkin">
        </td>
      </tr>
      <tr>
        <td>
          Next Checkin
        </td>
        <td id="next-checkin">
        </td>
      </tr>
      <tr>
        <td>
          Registered App Ids
        </td>
        <td id="registered-app-ids">
        </td>
      </tr>
      <tr>
        <td>
          Send Message Queue Size
        </td>
        <td id="send-queue-size">
        </td>
      </tr>
      <tr>
        <td>
          Resend Message Queue Size
        </td>
        <td id="resend-queue-size">
        </td>
      </tr>
    </if>
  </tbody>
</table>

<if expr="not is_android">
  <h2>Check-in Log</h2>
  <table class="log-table">
    <thead>
      <tr>
        <th>Time</th>
        <th>Event</th>
        <th>Details</th>
      </tr>
    </thead>
    <tbody id="checkin-info">
    </tbody>
  </table>

  <h2>Connection Log</h2>
  <table class="log-table">
    <thead>
      <tr>
        <th>Time</th>
        <th>Event</th>
        <th>Details</th>
      </tr>
    </thead>
    <tbody id="connection-info">
    </tbody>
  </table>
</if>

<h2>Registration Log</h2>
<table class="log-table">
  <thead>
    <tr>
      <th>Time</th>
      <th>App Id</th>
      <th>Source</th>
      <th>Event</th>
      <th>Details</th>
    </tr>
  </thead>
  <tbody id="registration-info">
  </tbody>
</table>

<h2>Receive Message Log</h2>
<table class="log-table">
  <thead>
    <tr>
      <th>Time</th>
      <th>App Id</th>
      <th>From</th>
      <th>Size (bytes)</th>
      <th>Event</th>
      <th>Details</th>
    </tr>
  </thead>
  <tbody id="receive-info">
  </tbody>
</table>

<h2>Message Decryption Failure Log</h2>
<table class="log-table">
  <thead>
    <tr>
      <th>Time</th>
      <th>App Id</th>
      <th>Details</th>
    </tr>
  </thead>
  <tbody id="decryption-failure-info">
  </tbody>
</table>

<if expr="not is_android">
  <h2>Send Message Log</h2>
  <table class="log-table">
    <thead>
      <tr>
        <th>Time</th>
        <th>App Id</th>
        <th>Receiver Id</th>
        <th>Msg Id</th>
        <th>Event</th>
        <th>Details</th>
      </tr>
    </thead>
    <tbody id="send-info">
    </tbody>
  </table>
</if>

</body>
</html>