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

Unified Diff: chrome/browser/resources/net_internals/browser_bridge.js

Issue 423813002: Sdch view for net-internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix component linkage Created 6 years, 1 month 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
« no previous file with comments | « chrome/browser/net/chrome_sdch_policy.cc ('k') | chrome/browser/resources/net_internals/index.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
*/
« no previous file with comments | « chrome/browser/net/chrome_sdch_policy.cc ('k') | chrome/browser/resources/net_internals/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698