Chromium Code Reviews| Index: chrome/browser/resources/gcm_internals.html |
| diff --git a/chrome/browser/resources/gcm_internals.html b/chrome/browser/resources/gcm_internals.html |
| index 775a9228b19d4d01cad1397f70bb1b6a8f369e63..795f19398b24afdcde00bc349536ca2b0705fc14 100644 |
| --- a/chrome/browser/resources/gcm_internals.html |
| +++ b/chrome/browser/resources/gcm_internals.html |
| @@ -13,74 +13,169 @@ |
| </head> |
| <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> |
| <h1>GCM Internals</h1> |
| -<div> |
| - <h2>Device Info</h2> |
| - <table> |
| - <tr class="odd-number-row"> |
| - <td class="row-caption"> |
| - Android Id |
| - </td> |
| - <td id="android-id"> |
| - </td> |
| - </tr> |
| +<table cellpadding="5" cellspacing="0"> |
| + <tr valign="center"> |
| + <td> |
| + <button id="refresh">Refresh</button> |
| + </td> |
| + <td> |
| + <button id="recording">Start Recording</button> |
| + </td> |
| + <td> |
| + <button id="clear-logs">Clear All Logs</button> |
| + </td> |
| + </tr> |
| +</table> |
| + |
| +<h2>Device Info</h2> |
| +<table> |
| + <tr class="odd-number-row"> |
| + <td class="row-caption"> |
| + Android Id |
| + </td> |
| + <td id="android-id"> |
| + </td> |
| + </tr> |
| + <tr> |
| + <td class="row-caption"> |
| + User Profile Service Created |
| + </td> |
| + <td id="profile-service-created"> |
| + </td> |
| + </tr> |
| + <tr class="odd-number-row"> |
| + <td class="row-caption"> |
| + GCM Enabled State |
| + </td> |
| + <td id="gcm-enabled-state"> |
| + </td> |
| + </tr> |
| + <tr> |
| + <td class="row-caption"> |
| + Signed In Username |
| + </td> |
| + <td id="signed-in-username"> |
| + </td> |
| + </tr> |
| + <tr class="odd-number-row"> |
| + <td class="row-caption"> |
| + GCM Client Created |
| + </td> |
| + <td id="gcm-client-created"> |
| + </td> |
| + </tr> |
| + <tr> |
| + <td class="row-caption"> |
| + GCM Client State |
| + </td> |
| + <td id="gcm-client-state"> |
| + </td> |
| + </tr> |
| + <tr class="odd-number-row"> |
| + <td class="row-caption"> |
| + GCM Client Is Ready |
| + </td> |
| + <td id="gcm-client-ready"> |
| + </td> |
| + </tr> |
| + <tr> |
| + <td class="row-caption"> |
| + Connection Client Created |
| + </td> |
| + <td id="connection-client-created"> |
| + </td> |
| + </tr> |
| + <tr class="odd-number-row"> |
| + <td class="row-caption"> |
| + Connection State |
| + </td> |
| + <td id="connection-state"> |
| + </td> |
| + </tr> |
| + <tr> |
| + <td class="row-caption"> |
| + App Ids Having Cached Registration Info |
| + </td> |
| + <td id="app-ids-cached"> |
| + </td> |
| + </tr> |
| + <tr class="odd-number-row"> |
| + <td class="row-caption"> |
| + Send Message Queue Size |
| + </td> |
| + <td id="send-queue-size"> |
| + </td> |
| + </tr> |
| + <tr> |
| + <td class="row-caption"> |
| + Unacked Message Queue Size |
| + </td> |
| + <td id="unacked-queue-size"> |
| + </td> |
| + </tr> |
| +</table> |
| + |
| +<h2>Checkin Log</h2> |
|
fgorski
2014/03/18 21:28:37
Last checkin information should be a part of devic
juyik
2014/03/20 01:09:53
Done. Removed it for now. Will do it in my next pa
|
| +<table class="log-table"> |
| + <thead> |
| <tr> |
| - <td class="row-caption"> |
| - User Profile Service Created |
| - </td> |
| - <td id="profile-service-created"> |
| - </td> |
| - </tr> |
| - <tr class="odd-number-row"> |
| - <td class="row-caption"> |
| - GCM Enabled State |
| - </td> |
| - <td id="gcm-enabled-state"> |
| - </td> |
| + <th class="info-heading">Time</th> |
| + <th class="info-heading">Type</th> |
| + <th class="info-heading">Android Id</th> |
| + <th class="info-heading">Details</th> |
| </tr> |
| + </thead> |
| + <tbody id="checkin-info"> |
| + </tbody> |
| +</table> |
| + |
| +<h2>Registration Log</h2> |
|
fgorski
2014/03/18 21:28:37
Make sure it covers registration and unregistratio
juyik
2014/03/20 01:09:53
Remove it for now. Will do it in future patch.
|
| +<table class="log-table"> |
| + <thead> |
| <tr> |
| - <td class="row-caption"> |
| - Signed In Username |
| - </td> |
| - <td id="signed-in-username"> |
| - </td> |
| - </tr> |
| - <tr class="odd-number-row"> |
| - <td class="row-caption"> |
| - GCM Client Created |
| - </td> |
| - <td id="gcm-client-created"> |
| - </td> |
| + <th class="info-heading">Time</th> |
| + <th class="info-heading">Type</th> |
| + <th class="info-heading">App Id</th> |
| + <th class="info-heading">Sender Id</th> |
| + <th class="info-heading">Details</th> |
|
fgorski
2014/03/18 21:28:37
I suggest the following:
Time, App ID, Sender IDs
juyik
2014/03/20 01:09:53
Remove it for now. Will do it in future patch.
|
| </tr> |
| + </thead> |
| + <tbody id="register-info"> |
| + </tbody> |
| +</table> |
| + |
| +<h2>Receive Message Log</h2> |
|
fgorski
2014/03/18 21:28:37
Received Events Log
it should cover OnMessage and
juyik
2014/03/20 01:09:53
Remove it for now. Will do it in future patch.
|
| +<table class="log-table"> |
| + <thead> |
| <tr> |
| - <td class="row-caption"> |
| - GCM Client State |
| - </td> |
| - <td id="gcm-client-state"> |
| - </td> |
| - </tr> |
| - <tr class="odd-number-row"> |
| - <td class="row-caption"> |
| - GCM Client Is Ready |
| - </td> |
| - <td id="gcm-client-ready"> |
| - </td> |
| + <th class="info-heading">Time</th> |
| + <th class="info-heading">Type</th> |
| + <th class="info-heading">Sender Id</th> |
| + <th class="info-heading">App Id</th> |
| + <th class="info-heading">Msg Items</th> |
| + <th class="info-heading">Details</th> |
|
fgorski
2014/03/18 21:28:37
Time, App Id, Sender Id, Msg Type, Event, Details
juyik
2014/03/20 01:09:53
Remove it for now. Will do it in future patch.
|
| </tr> |
| + </thead> |
| + <tbody id="receive-info"> |
| + </tbody> |
| +</table> |
| + |
| +<h2>Send Message Log</h2> |
| +<table class="log-table"> |
| + <thead> |
| <tr> |
| - <td class="row-caption"> |
| - Connection Client Created |
| - </td> |
| - <td id="connection-client-created"> |
| - </td> |
| - </tr> |
| - <tr class="odd-number-row"> |
| - <td class="row-caption"> |
| - Connection State |
| - </td> |
| - <td id="connection-state"> |
| - </td> |
| + <th class="info-heading">Time</th> |
| + <th class="info-heading">Type</th> |
| + <th class="info-heading">Receiver Id</th> |
| + <th class="info-heading">Msg Id</th> |
| + <th class="info-heading">Msg Bytes</th> |
| + <th class="info-heading">Details</th> |
|
fgorski
2014/03/18 21:28:37
Time, App Id, Receiver Id, Msg Id, Event, Details
juyik
2014/03/20 01:09:53
Done.
|
| </tr> |
| - </table> |
| -</div> |
| + </thead> |
| + <tbody id="send-info"> |
| + </tbody> |
| +</table> |
| + |
| <script src="chrome://resources/js/i18n_template2.js"></script> |
| </body> |
| </html> |