Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2369)

Unified Diff: chrome/browser/resources/gcm_internals.html

Issue 202083005: Add activity recording capability to gcm internals page. User can refresh, start/stop recording, an… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing jian's comments. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..cd989c4e0b5a0429b5c3500d4dfe251740e5cfe3 100644
--- a/chrome/browser/resources/gcm_internals.html
+++ b/chrome/browser/resources/gcm_internals.html
@@ -13,10 +13,16 @@
</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">
+<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>
+ <tbody>
+ <tr>
<td class="row-caption">
Android Id
</td>
@@ -30,7 +36,7 @@
<td id="profile-service-created">
</td>
</tr>
- <tr class="odd-number-row">
+ <tr>
<td class="row-caption">
GCM Enabled State
</td>
@@ -44,7 +50,7 @@
<td id="signed-in-username">
</td>
</tr>
- <tr class="odd-number-row">
+ <tr>
<td class="row-caption">
GCM Client Created
</td>
@@ -58,7 +64,7 @@
<td id="gcm-client-state">
</td>
</tr>
- <tr class="odd-number-row">
+ <tr>
<td class="row-caption">
GCM Client Is Ready
</td>
@@ -72,15 +78,53 @@
<td id="connection-client-created">
</td>
</tr>
- <tr class="odd-number-row">
+ <tr>
<td class="row-caption">
Connection State
</td>
<td id="connection-state">
</td>
</tr>
- </table>
-</div>
+ <tr>
+ <td class="row-caption">
+ Registered App Ids
+ </td>
+ <td id="registered-app-ids">
+ </td>
+ </tr>
+ <tr>
+ <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>
+ </tbody>
+</table>
+
+<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>
+
<script src="chrome://resources/js/i18n_template2.js"></script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698