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

Unified Diff: runtime/bin/vmservice/client/lib/src/elements/io_view.html

Issue 302173007: Add HttpServerConnection to Observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test. Created 6 years, 6 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: runtime/bin/vmservice/client/lib/src/elements/io_view.html
diff --git a/runtime/bin/vmservice/client/lib/src/elements/io_view.html b/runtime/bin/vmservice/client/lib/src/elements/io_view.html
index c1d5692fa92f5a02b20d5edfc41d542cc56128c8..ddbaf57630ad153865196e1290ae7e103a5dd514 100644
--- a/runtime/bin/vmservice/client/lib/src/elements/io_view.html
+++ b/runtime/bin/vmservice/client/lib/src/elements/io_view.html
@@ -68,6 +68,9 @@
<template if="{{ ref.serviceType == 'Socket' }}">
<io-socket-ref ref="{{ ref }}"></io-socket-ref>
</template>
+ <template if="{{ ref.serviceType == 'HttpServerConnection' }}">
+ <io-http-server-connection-ref ref="{{ ref }}"></io-http-server-connection-ref>
+ </template>
<template if="{{ ref.serviceType == 'HttpServer' }}">
<io-http-server-ref ref="{{ ref }}"></io-http-server-ref>
</template>
@@ -143,11 +146,64 @@
</div>
<div class="memberItem">
<div class="memberName">Active connections</div>
- <div class="memberValue">{{ httpServer['active'] }}</div>
+ <ul class="list-group">
+ <template repeat="{{ connection in httpServer['active'] }}">
+ <li class="list-group-item">
+ <io-http-server-connection-ref ref="{{ connection }}"></io-http-server-connection-ref>
+ </li>
+ </template>
+ </ul>
</div>
<div class="memberItem">
<div class="memberName">Idle connections</div>
- <div class="memberValue">{{ httpServer['idle'] }}</div>
+ <ul class="list-group">
+ <template repeat="{{ connection in httpServer['idle'] }}">
+ <li class="list-group-item">
+ <io-http-server-connection-ref ref="{{ connection }}"></io-http-server-connection-ref>
+ </li>
+ </template>
+ </ul>
+ </div>
+ </div>
+ </div>
+ <br>
+ <hr>
+ </template>
+</polymer-element>
+
+<polymer-element name="io-http-server-connection-ref" extends="service-ref">
+ <template>
+ <link rel="stylesheet" href="css/shared.css">
+ <a href="{{ url }}">{{ name }}</a>
+ </template>
+</polymer-element>
+
+<polymer-element name="io-http-server-connection-view" extends="observatory-element">
+ <template>
+ <link rel="stylesheet" href="css/shared.css">
+
+ <nav-bar>
+ <top-nav-menu last="{{ true }}"></top-nav-menu>
+ <nav-refresh callback="{{ refresh }}"></nav-refresh>
+ </nav-bar>
+
+ <div class="content">
+ <h1>HttpConnection</h1>
+
+ <br>
+
+ <div class="memberList">
+ <div class="memberItem">
+ <div class="memberName">Socket</div>
+ <div class="memberValue"><io-socket-ref ref="{{ connection['socket'] }}"></io-socket-ref></div>
+ </div>
+ <div class="memberItem">
+ <div class="memberName">State</div>
+ <div class="memberValue">{{ connection['state'] }}</div>
+ </div>
+ <div class="memberItem">
+ <div class="memberName">Server</div>
+ <div class="memberValue"><io-http-server-ref ref="{{ connection['server'] }}"></io-http-server-ref></div>
</div>
</div>
</div>

Powered by Google App Engine
This is Rietveld 408576698