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

Side by Side Diff: chrome/browser/resources/net_internals/main.js

Issue 7155031: Save net-internals log dumps directly to disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Response to kinuko's comments Created 9 years, 6 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/index.html ('k') | webkit/fileapi/file_system_path_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698