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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js

Issue 2653363002: [Devtools] Added typing to network in prep for removing unrestricted (Closed)
Patch Set: changes Created 3 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org>
4 * Copyright (C) 2011 Google Inc. All rights reserved. 4 * Copyright (C) 2011 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 static _requestTimeFilter(windowStart, windowEnd, request) { 339 static _requestTimeFilter(windowStart, windowEnd, request) {
340 if (request.issueTime() > windowEnd) 340 if (request.issueTime() > windowEnd)
341 return false; 341 return false;
342 if (request.endTime !== -1 && request.endTime < windowStart) 342 if (request.endTime !== -1 && request.endTime < windowStart)
343 return false; 343 return false;
344 return true; 344 return true;
345 } 345 }
346 346
347 /** 347 /**
348 * @param {!SDK.NetworkRequest} request 348 * @param {!SDK.NetworkRequest} request
349 * @return {?Network.NetworkNode} 349 * @return {?Network.NetworkRequestNode}
350 */ 350 */
351 nodeForRequest(request) { 351 nodeForRequest(request) {
352 return this._nodesByRequestId.get(request.requestId()); 352 return this._nodesByRequestId.get(request.requestId());
353 } 353 }
354 354
355 /** 355 /**
356 * @return {number} 356 * @return {number}
357 */ 357 */
358 headerHeight() { 358 headerHeight() {
359 return this._headerHeight; 359 return this._headerHeight;
(...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after
1749 Running: 'running', 1749 Running: 'running',
1750 FromCache: 'from-cache' 1750 FromCache: 'from-cache'
1751 }; 1751 };
1752 1752
1753 /** @type {!Array<string>} */ 1753 /** @type {!Array<string>} */
1754 Network.NetworkLogView._searchKeys = 1754 Network.NetworkLogView._searchKeys =
1755 Object.keys(Network.NetworkLogView.FilterType).map(key => Network.NetworkLog View.FilterType[key]); 1755 Object.keys(Network.NetworkLogView.FilterType).map(key => Network.NetworkLog View.FilterType[key]);
1756 1756
1757 /** @typedef {function(!SDK.NetworkRequest): boolean} */ 1757 /** @typedef {function(!SDK.NetworkRequest): boolean} */
1758 Network.NetworkLogView.Filter; 1758 Network.NetworkLogView.Filter;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698