OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 LogSourceType = null; | 10 var LogSourceType = null; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // Create a view which will display information on the host resolver. | 52 // Create a view which will display information on the host resolver. |
53 var dnsView = new DnsView("dnsTabContent", | 53 var dnsView = new DnsView("dnsTabContent", |
54 "hostResolverCacheTbody", | 54 "hostResolverCacheTbody", |
55 "clearHostResolverCache", | 55 "clearHostResolverCache", |
56 "hostResolverCacheCapacity", | 56 "hostResolverCacheCapacity", |
57 "hostResolverCacheTTLSuccess", | 57 "hostResolverCacheTTLSuccess", |
58 "hostResolverCacheTTLFailure"); | 58 "hostResolverCacheTTLFailure"); |
59 | 59 |
60 // Create a view which will display import/export options to control the | 60 // Create a view which will display import/export options to control the |
61 // captured data. | 61 // captured data. |
62 var dataView = new DataView("dataTabContent", "exportToJson", "exportToText"); | 62 var dataView = new DataView("dataTabContent", "exportedDataText", |
| 63 "exportToText"); |
63 | 64 |
64 // Create a view which will display the results and controls for connection | 65 // Create a view which will display the results and controls for connection |
65 // tests. | 66 // tests. |
66 var testView = new TestView("testTabContent", "testUrlInput", "testStart", | 67 var testView = new TestView("testTabContent", "testUrlInput", "testStart", |
67 "testSummary"); | 68 "testSummary"); |
68 | 69 |
69 var httpCacheView = new HttpCacheView("httpCacheTabContent", | 70 var httpCacheView = new HttpCacheView("httpCacheTabContent", |
70 "reloadHttpCacheListing", | 71 "reloadHttpCacheListing", |
71 "httpCacheStats", | 72 "httpCacheStats", |
72 "httpCacheListing"); | 73 "httpCacheListing"); |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 if (prevData && JSON.stringify(prevData) == JSON.stringify(data)) | 418 if (prevData && JSON.stringify(prevData) == JSON.stringify(data)) |
418 return; | 419 return; |
419 | 420 |
420 this.currentData_ = data; | 421 this.currentData_ = data; |
421 | 422 |
422 // Ok, notify the observers of the change. | 423 // Ok, notify the observers of the change. |
423 for (var i = 0; i < this.observers_.length; ++i) | 424 for (var i = 0; i < this.observers_.length; ++i) |
424 var observer = this.observers_[i]; | 425 var observer = this.observers_[i]; |
425 observer[this.observerMethodName_](data); | 426 observer[this.observerMethodName_](data); |
426 }; | 427 }; |
OLD | NEW |