| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 66                             'clearHostResolverCache', | 66                             'clearHostResolverCache', | 
| 67                             'hostResolverDefaultFamily', | 67                             'hostResolverDefaultFamily', | 
| 68                             'hostResolverIPv6Disabled', | 68                             'hostResolverIPv6Disabled', | 
| 69                             'hostResolverEnableIPv6', | 69                             'hostResolverEnableIPv6', | 
| 70                             'hostResolverCacheCapacity', | 70                             'hostResolverCacheCapacity', | 
| 71                             'hostResolverCacheTTLSuccess', | 71                             'hostResolverCacheTTLSuccess', | 
| 72                             'hostResolverCacheTTLFailure'); | 72                             'hostResolverCacheTTLFailure'); | 
| 73 | 73 | 
| 74   // Create a view which will display import/export options to control the | 74   // Create a view which will display import/export options to control the | 
| 75   // captured data. | 75   // captured data. | 
| 76   var dataView = new DataView('dataTabContent', 'exportedDataText', | 76   var dataView = new DataView('dataTabContent', 'dataViewDownloadIframe', | 
| 77                               'exportToText', 'securityStrippingCheckbox', | 77                               'exportToFile', 'securityStrippingCheckbox', | 
| 78                               'byteLoggingCheckbox', 'passivelyCapturedCount', | 78                               'byteLoggingCheckbox', 'passivelyCapturedCount', | 
| 79                               'activelyCapturedCount', 'dataViewDeleteAll', | 79                               'activelyCapturedCount', 'dataViewDeleteAll', | 
| 80                               'dataViewDumpDataDiv', 'dataViewLoadDataDiv', | 80                               'dataViewDumpDataDiv', 'dataViewLoadDataDiv', | 
| 81                               'dataViewLoadLogFile', | 81                               'dataViewLoadLogFile', | 
| 82                               'dataViewCapturingTextSpan', | 82                               'dataViewCapturingTextSpan', | 
| 83                               'dataViewLoggingTextSpan'); | 83                               'dataViewLoggingTextSpan'); | 
| 84 | 84 | 
| 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', | 
| (...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1098   return true; | 1098   return true; | 
| 1099 }; | 1099 }; | 
| 1100 | 1100 | 
| 1101 UpdateAllObserver.prototype.onDataReceived_ = function(helper, name, data) { | 1101 UpdateAllObserver.prototype.onDataReceived_ = function(helper, name, data) { | 
| 1102   helper.removeObserver(this); | 1102   helper.removeObserver(this); | 
| 1103   --this.observingCount_; | 1103   --this.observingCount_; | 
| 1104   this.updatedData_[name] = data; | 1104   this.updatedData_[name] = data; | 
| 1105   if (this.observingCount_ == 0) | 1105   if (this.observingCount_ == 0) | 
| 1106     this.callback_(this.updatedData_); | 1106     this.callback_(this.updatedData_); | 
| 1107 }; | 1107 }; | 
| OLD | NEW | 
|---|