Index: chrome/browser/resources/net_internals/browser_bridge.js |
diff --git a/chrome/browser/resources/net_internals/browser_bridge.js b/chrome/browser/resources/net_internals/browser_bridge.js |
index 09ce829b4471723eec68b2f9d3a3d87a31759970..8a90b98cf55839fc6962e442b5af469f09d10451 100644 |
--- a/chrome/browser/resources/net_internals/browser_bridge.js |
+++ b/chrome/browser/resources/net_internals/browser_bridge.js |
@@ -52,6 +52,7 @@ var BrowserBridge = (function() { |
this.addNetInfoPollableDataHelper('spdyAlternateProtocolMappings', |
'onSpdyAlternateProtocolMappingsChanged'); |
this.addNetInfoPollableDataHelper('quicInfo', 'onQuicInfoChanged'); |
+ this.addNetInfoPollableDataHelper('sdchInfo', 'onSdchInfoChanged'); |
this.addNetInfoPollableDataHelper('httpCacheInfo', |
'onHttpCacheInfoChanged'); |
@@ -631,6 +632,17 @@ var BrowserBridge = (function() { |
}, |
/** |
+ * Adds a listener of SDCH information. |observer| will be called |
+ * back when data is received, through: |
+ * |
+ * observer.onSdchInfoChanged(sdchInfo) |
+ */ |
+ addSdchInfoObserver: function(observer, ignoreWhenUnchanged) { |
+ this.pollableDataHelpers_.sdchInfo.addObserver( |
+ observer, ignoreWhenUnchanged); |
+ }, |
+ |
+ /** |
* If |force| is true, calls all startUpdate functions. Otherwise, just |
* runs updates with active observers. |
*/ |