| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Dictionary of constants (initialized by browser). | 6 * Dictionary of constants (initialized by browser). |
| 7 */ | 7 */ |
| 8 var LogEventType = null; | 8 var LogEventType = null; |
| 9 var LogEventPhase = null; | 9 var LogEventPhase = null; |
| 10 var ClientInfo = null; | 10 var ClientInfo = null; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 'hstsQueryInput', 'hstsQueryForm', | 92 'hstsQueryInput', 'hstsQueryForm', |
| 93 'hstsQueryOutput', | 93 'hstsQueryOutput', |
| 94 'hstsAddInput', 'hstsAddForm', 'hstsCheckInput', | 94 'hstsAddInput', 'hstsAddForm', 'hstsCheckInput', |
| 95 'hstsDeleteInput', 'hstsDeleteForm'); | 95 'hstsDeleteInput', 'hstsDeleteForm'); |
| 96 | 96 |
| 97 var httpCacheView = new HttpCacheView('httpCacheTabContent', | 97 var httpCacheView = new HttpCacheView('httpCacheTabContent', |
| 98 'httpCacheStats'); | 98 'httpCacheStats'); |
| 99 | 99 |
| 100 var socketsView = new SocketsView('socketsTabContent', | 100 var socketsView = new SocketsView('socketsTabContent', |
| 101 'socketPoolDiv', | 101 'socketPoolDiv', |
| 102 'socketPoolGroupsDiv'); | 102 'socketPoolGroupsDiv', |
| 103 'socketPoolCloseIdleButton', |
| 104 'socketPoolFlushButton'); |
| 103 | 105 |
| 104 var spdyView = new SpdyView('spdyTabContent', | 106 var spdyView = new SpdyView('spdyTabContent', |
| 105 'spdyEnabledSpan', | 107 'spdyEnabledSpan', |
| 106 'spdyUseAlternateProtocolSpan', | 108 'spdyUseAlternateProtocolSpan', |
| 107 'spdyForceAlwaysSpan', | 109 'spdyForceAlwaysSpan', |
| 108 'spdyForceOverSslSpan', | 110 'spdyForceOverSslSpan', |
| 109 'spdyNextProtocolsSpan', | 111 'spdyNextProtocolsSpan', |
| 110 'spdyAlternateProtocolMappingsDiv', | 112 'spdyAlternateProtocolMappingsDiv', |
| 111 'spdySessionNoneSpan', | 113 'spdySessionNoneSpan', |
| 112 'spdySessionLinkSpan', | 114 'spdySessionLinkSpan', |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 }; | 335 }; |
| 334 | 336 |
| 335 BrowserBridge.prototype.sendGetHttpCacheInfo = function() { | 337 BrowserBridge.prototype.sendGetHttpCacheInfo = function() { |
| 336 chrome.send('getHttpCacheInfo'); | 338 chrome.send('getHttpCacheInfo'); |
| 337 }; | 339 }; |
| 338 | 340 |
| 339 BrowserBridge.prototype.sendGetSocketPoolInfo = function() { | 341 BrowserBridge.prototype.sendGetSocketPoolInfo = function() { |
| 340 chrome.send('getSocketPoolInfo'); | 342 chrome.send('getSocketPoolInfo'); |
| 341 }; | 343 }; |
| 342 | 344 |
| 345 BrowserBridge.prototype.sendCloseIdleSockets = function() { |
| 346 chrome.send('closeIdleSockets'); |
| 347 }; |
| 348 |
| 349 BrowserBridge.prototype.sendFlushSocketPools = function() { |
| 350 chrome.send('flushSocketPools'); |
| 351 }; |
| 352 |
| 343 BrowserBridge.prototype.sendGetSpdySessionInfo = function() { | 353 BrowserBridge.prototype.sendGetSpdySessionInfo = function() { |
| 344 chrome.send('getSpdySessionInfo'); | 354 chrome.send('getSpdySessionInfo'); |
| 345 }; | 355 }; |
| 346 | 356 |
| 347 BrowserBridge.prototype.sendGetSpdyStatus = function() { | 357 BrowserBridge.prototype.sendGetSpdyStatus = function() { |
| 348 chrome.send('getSpdyStatus'); | 358 chrome.send('getSpdyStatus'); |
| 349 }; | 359 }; |
| 350 | 360 |
| 351 BrowserBridge.prototype.sendGetSpdyAlternateProtocolMappings = function() { | 361 BrowserBridge.prototype.sendGetSpdyAlternateProtocolMappings = function() { |
| 352 chrome.send('getSpdyAlternateProtocolMappings'); | 362 chrome.send('getSpdyAlternateProtocolMappings'); |
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1037 return true; | 1047 return true; |
| 1038 }; | 1048 }; |
| 1039 | 1049 |
| 1040 UpdateAllObserver.prototype.onDataReceived_ = function(helper, name, data) { | 1050 UpdateAllObserver.prototype.onDataReceived_ = function(helper, name, data) { |
| 1041 helper.removeObserver(this); | 1051 helper.removeObserver(this); |
| 1042 --this.observingCount_; | 1052 --this.observingCount_; |
| 1043 this.updatedData_[name] = data; | 1053 this.updatedData_[name] = data; |
| 1044 if (this.observingCount_ == 0) | 1054 if (this.observingCount_ == 0) |
| 1045 this.callback_(this.updatedData_); | 1055 this.callback_(this.updatedData_); |
| 1046 }; | 1056 }; |
| OLD | NEW |