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

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

Issue 2104012: Fixed a TODO in data export of net-internals, added Chrome version and comman... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 7 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
« no previous file with comments | « chrome/browser/resources/net_internals/dataview.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ClientInfo = null;
10 var LogSourceType = null; 11 var LogSourceType = null;
11 var NetError = null; 12 var NetError = null;
12 var LoadFlag = null; 13 var LoadFlag = null;
13 14
14 /** 15 /**
15 * Object to communicate between the renderer and the browser. 16 * Object to communicate between the renderer and the browser.
16 * @type {!BrowserBridge} 17 * @type {!BrowserBridge}
17 */ 18 */
18 var g_browser = null; 19 var g_browser = null;
19 20
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 this.activelyCapturedEvents_.push(logEntry); 204 this.activelyCapturedEvents_.push(logEntry);
204 } 205 }
205 for (var i = 0; i < this.logObservers_.length; ++i) 206 for (var i = 0; i < this.logObservers_.length; ++i)
206 this.logObservers_[i].onLogEntryAdded(logEntry); 207 this.logObservers_[i].onLogEntryAdded(logEntry);
207 }; 208 };
208 209
209 BrowserBridge.prototype.receivedLogEventTypeConstants = function(constantsMap) { 210 BrowserBridge.prototype.receivedLogEventTypeConstants = function(constantsMap) {
210 LogEventType = constantsMap; 211 LogEventType = constantsMap;
211 }; 212 };
212 213
214 BrowserBridge.prototype.receivedClientInfo =
215 function(info) {
216 ClientInfo = info;
217 };
218
213 BrowserBridge.prototype.receivedLogEventPhaseConstants = 219 BrowserBridge.prototype.receivedLogEventPhaseConstants =
214 function(constantsMap) { 220 function(constantsMap) {
215 LogEventPhase = constantsMap; 221 LogEventPhase = constantsMap;
216 }; 222 };
217 223
218 BrowserBridge.prototype.receivedLogSourceTypeConstants = 224 BrowserBridge.prototype.receivedLogSourceTypeConstants =
219 function(constantsMap) { 225 function(constantsMap) {
220 LogSourceType = constantsMap; 226 LogSourceType = constantsMap;
221 }; 227 };
222 228
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 if (prevData && JSON.stringify(prevData) == JSON.stringify(data)) 432 if (prevData && JSON.stringify(prevData) == JSON.stringify(data))
427 return; 433 return;
428 434
429 this.currentData_ = data; 435 this.currentData_ = data;
430 436
431 // Ok, notify the observers of the change. 437 // Ok, notify the observers of the change.
432 for (var i = 0; i < this.observers_.length; ++i) 438 for (var i = 0; i < this.observers_.length; ++i)
433 var observer = this.observers_[i]; 439 var observer = this.observers_[i];
434 observer[this.observerMethodName_](data); 440 observer[this.observerMethodName_](data);
435 }; 441 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/dataview.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698