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

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

Issue 12560002: Change var blah_blah -> blahBlah. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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/history/history.js ('k') | chrome/browser/resources/ntp4/new_tab.js » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 var SourceEntry = (function() { 5 var SourceEntry = (function() {
6 'use strict'; 6 'use strict';
7 7
8 /** 8 /**
9 * A SourceEntry gathers all log entries with the same source. 9 * A SourceEntry gathers all log entries with the same source.
10 * 10 *
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // Needed for compatability with log dumps prior to M26. 210 // Needed for compatability with log dumps prior to M26.
211 // TODO(mmenke): Remove this. 211 // TODO(mmenke): Remove this.
212 if (this.entries_[0].type == EventType.SOCKET_POOL_CONNECT_JOB && 212 if (this.entries_[0].type == EventType.SOCKET_POOL_CONNECT_JOB &&
213 this.entries_[0].params == undefined) { 213 this.entries_[0].params == undefined) {
214 return this.entries_[1]; 214 return this.entries_[1];
215 } 215 }
216 if (this.entries_[1].type == EventType.UDP_CONNECT) 216 if (this.entries_[1].type == EventType.UDP_CONNECT)
217 return this.entries_[1]; 217 return this.entries_[1];
218 if (this.entries_[0].type == EventType.REQUEST_ALIVE && 218 if (this.entries_[0].type == EventType.REQUEST_ALIVE &&
219 this.entries_[0].params == undefined) { 219 this.entries_[0].params == undefined) {
220 var start_index = 1; 220 var startIndex = 1;
221 // Skip over URL_REQUEST_BLOCKED_ON_DELEGATE events for URL_REQUESTs. 221 // Skip over URL_REQUEST_BLOCKED_ON_DELEGATE events for URL_REQUESTs.
222 while (start_index + 1 < this.entries_.length && 222 while (startIndex + 1 < this.entries_.length &&
223 this.entries_[start_index].type == 223 this.entries_[startIndex].type ==
224 EventType.URL_REQUEST_BLOCKED_ON_DELEGATE) { 224 EventType.URL_REQUEST_BLOCKED_ON_DELEGATE) {
225 ++start_index; 225 ++startIndex;
226 } 226 }
227 return this.entries_[start_index]; 227 return this.entries_[startIndex];
228 } 228 }
229 if (this.entries_[1].type == EventType.IPV6_PROBE_RUNNING) 229 if (this.entries_[1].type == EventType.IPV6_PROBE_RUNNING)
230 return this.entries_[1]; 230 return this.entries_[1];
231 } 231 }
232 return this.entries_[0]; 232 return this.entries_[0];
233 }, 233 },
234 234
235 /** 235 /**
236 * Returns the first entry with the specified type, or undefined if not 236 * Returns the first entry with the specified type, or undefined if not
237 * found. 237 * found.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 printAsText: function(parent) { 322 printAsText: function(parent) {
323 // The date will be undefined if not viewing a loaded log file. 323 // The date will be undefined if not viewing a loaded log file.
324 printLogEntriesAsText(this.entries_, parent, 324 printLogEntriesAsText(this.entries_, parent,
325 SourceTracker.getInstance().getPrivacyStripping(), 325 SourceTracker.getInstance().getPrivacyStripping(),
326 Constants.clientInfo.numericDate); 326 Constants.clientInfo.numericDate);
327 } 327 }
328 }; 328 };
329 329
330 return SourceEntry; 330 return SourceEntry;
331 })(); 331 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/history/history.js ('k') | chrome/browser/resources/ntp4/new_tab.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698