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

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

Issue 1556018: Add support for attaching custom parameters to NetLog events. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Address willchan's comments Created 10 years, 8 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) 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 LogEntryType = null;
9 var LogEventType = null; 8 var LogEventType = null;
10 var LogEventPhase = null; 9 var LogEventPhase = null;
11 var LogSourceType = null; 10 var LogSourceType = null;
12 11
13 /** 12 /**
14 * Object to communicate between the renderer and the browser. 13 * Object to communicate between the renderer and the browser.
15 * @type {!BrowserBridge} 14 * @type {!BrowserBridge}
16 */ 15 */
17 var g_browser = null; 16 var g_browser = null;
18 17
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 BrowserBridge.prototype.receivedLogEventPhaseConstants = 181 BrowserBridge.prototype.receivedLogEventPhaseConstants =
183 function(constantsMap) { 182 function(constantsMap) {
184 LogEventPhase = constantsMap; 183 LogEventPhase = constantsMap;
185 }; 184 };
186 185
187 BrowserBridge.prototype.receivedLogSourceTypeConstants = 186 BrowserBridge.prototype.receivedLogSourceTypeConstants =
188 function(constantsMap) { 187 function(constantsMap) {
189 LogSourceType = constantsMap; 188 LogSourceType = constantsMap;
190 }; 189 };
191 190
192 BrowserBridge.prototype.receivedLogEntryTypeConstants = function(constantsMap) {
193 LogEntryType = constantsMap;
194 };
195
196 BrowserBridge.prototype.receivedTimeTickOffset = function(timeTickOffset) { 191 BrowserBridge.prototype.receivedTimeTickOffset = function(timeTickOffset) {
197 this.timeTickOffset_ = timeTickOffset; 192 this.timeTickOffset_ = timeTickOffset;
198 }; 193 };
199 194
200 BrowserBridge.prototype.receivedProxySettings = function(proxySettings) { 195 BrowserBridge.prototype.receivedProxySettings = function(proxySettings) {
201 this.dispatchToObserversFromPoll_( 196 this.dispatchToObserversFromPoll_(
202 this.proxySettingsObservers_, 'onProxySettingsChanged', proxySettings); 197 this.proxySettingsObservers_, 'onProxySettingsChanged', proxySettings);
203 }; 198 };
204 199
205 BrowserBridge.prototype.receivedBadProxies = function(badProxies) { 200 BrowserBridge.prototype.receivedBadProxies = function(badProxies) {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // If the data hasn't changed since last time, no need to notify observers. 296 // If the data hasn't changed since last time, no need to notify observers.
302 if (prevData && JSON.stringify(prevData) == JSON.stringify(data)) 297 if (prevData && JSON.stringify(prevData) == JSON.stringify(data))
303 return; 298 return;
304 299
305 this.prevPollData_[method] = data; 300 this.prevPollData_[method] = data;
306 301
307 // Ok, notify the observers of the change. 302 // Ok, notify the observers of the change.
308 for (var i = 0; i < observerList.length; ++i) 303 for (var i = 0; i < observerList.length; ++i)
309 observerList[i][method](data); 304 observerList[i][method](data);
310 }; 305 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/logviewpainter.js ('k') | chrome/browser/resources/net_internals/sourceentry.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698