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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // Create a view which will display the results and controls for connection | 85 // Create a view which will display the results and controls for connection |
86 // tests. | 86 // tests. |
87 var testView = new TestView('testTabContent', 'testUrlInput', | 87 var testView = new TestView('testTabContent', 'testUrlInput', |
88 'connectionTestsForm', 'testSummary'); | 88 'connectionTestsForm', 'testSummary'); |
89 | 89 |
90 // Create a view which allows the user to query and alter the HSTS database. | 90 // Create a view which allows the user to query and alter the HSTS database. |
91 var hstsView = new HSTSView('hstsTabContent', | 91 var hstsView = new HSTSView('hstsTabContent', |
92 'hstsQueryInput', 'hstsQueryForm', | 92 'hstsQueryInput', 'hstsQueryForm', |
93 'hstsQueryOutput', | 93 'hstsQueryOutput', |
94 'hstsAddInput', 'hstsAddForm', 'hstsCheckInput', | 94 'hstsAddInput', 'hstsAddForm', 'hstsCheckInput', |
| 95 'hstsAddLocks', |
95 'hstsDeleteInput', 'hstsDeleteForm'); | 96 'hstsDeleteInput', 'hstsDeleteForm'); |
96 | 97 |
97 var httpCacheView = new HttpCacheView('httpCacheTabContent', | 98 var httpCacheView = new HttpCacheView('httpCacheTabContent', |
98 'httpCacheStats'); | 99 'httpCacheStats'); |
99 | 100 |
100 var socketsView = new SocketsView('socketsTabContent', | 101 var socketsView = new SocketsView('socketsTabContent', |
101 'socketPoolDiv', | 102 'socketPoolDiv', |
102 'socketPoolGroupsDiv'); | 103 'socketPoolGroupsDiv'); |
103 | 104 |
104 var spdyView = new SpdyView('spdyTabContent', | 105 var spdyView = new SpdyView('spdyTabContent', |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 }; | 318 }; |
318 | 319 |
319 BrowserBridge.prototype.sendStartConnectionTests = function(url) { | 320 BrowserBridge.prototype.sendStartConnectionTests = function(url) { |
320 chrome.send('startConnectionTests', [url]); | 321 chrome.send('startConnectionTests', [url]); |
321 }; | 322 }; |
322 | 323 |
323 BrowserBridge.prototype.sendHSTSQuery = function(domain) { | 324 BrowserBridge.prototype.sendHSTSQuery = function(domain) { |
324 chrome.send('hstsQuery', [domain]); | 325 chrome.send('hstsQuery', [domain]); |
325 }; | 326 }; |
326 | 327 |
327 BrowserBridge.prototype.sendHSTSAdd = function(domain, include_subdomains) { | 328 BrowserBridge.prototype.sendHSTSAdd = function(domain, |
328 chrome.send('hstsAdd', [domain, include_subdomains]); | 329 include_subdomains, |
| 330 locks) { |
| 331 chrome.send('hstsAdd', [domain, include_subdomains, locks]); |
329 }; | 332 }; |
330 | 333 |
331 BrowserBridge.prototype.sendHSTSDelete = function(domain) { | 334 BrowserBridge.prototype.sendHSTSDelete = function(domain) { |
332 chrome.send('hstsDelete', [domain]); | 335 chrome.send('hstsDelete', [domain]); |
333 }; | 336 }; |
334 | 337 |
335 BrowserBridge.prototype.sendGetHttpCacheInfo = function() { | 338 BrowserBridge.prototype.sendGetHttpCacheInfo = function() { |
336 chrome.send('getHttpCacheInfo'); | 339 chrome.send('getHttpCacheInfo'); |
337 }; | 340 }; |
338 | 341 |
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1037 return true; | 1040 return true; |
1038 }; | 1041 }; |
1039 | 1042 |
1040 UpdateAllObserver.prototype.onDataReceived_ = function(helper, name, data) { | 1043 UpdateAllObserver.prototype.onDataReceived_ = function(helper, name, data) { |
1041 helper.removeObserver(this); | 1044 helper.removeObserver(this); |
1042 --this.observingCount_; | 1045 --this.observingCount_; |
1043 this.updatedData_[name] = data; | 1046 this.updatedData_[name] = data; |
1044 if (this.observingCount_ == 0) | 1047 if (this.observingCount_ == 0) |
1045 this.callback_(this.updatedData_); | 1048 this.callback_(this.updatedData_); |
1046 }; | 1049 }; |
OLD | NEW |