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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js

Issue 1564913003: [DevTools] Shows Manifest file in Sources tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update network-toggle-type-filter-actual.txt Created 4 years, 11 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 335
336 /** 336 /**
337 * @param {!WebInspector.Resource} resource 337 * @param {!WebInspector.Resource} resource
338 */ 338 */
339 _addResource: function(resource) 339 _addResource: function(resource)
340 { 340 {
341 var resourceType = resource.resourceType(); 341 var resourceType = resource.resourceType();
342 // Only load selected resource types from resources. 342 // Only load selected resource types from resources.
343 if (resourceType !== WebInspector.resourceTypes.Image && 343 if (resourceType !== WebInspector.resourceTypes.Image &&
344 resourceType !== WebInspector.resourceTypes.Font && 344 resourceType !== WebInspector.resourceTypes.Font &&
345 resourceType !== WebInspector.resourceTypes.Document) { 345 resourceType !== WebInspector.resourceTypes.Document &&
346 resourceType !== WebInspector.resourceTypes.Manifest) {
346 return; 347 return;
347 } 348 }
348 349
349 // Ignore non-images and non-fonts. 350 // Ignore non-images and non-fonts.
350 if (resourceType === WebInspector.resourceTypes.Image && resource.mimeTy pe && !resource.mimeType.startsWith("image")) 351 if (resourceType === WebInspector.resourceTypes.Image && resource.mimeTy pe && !resource.mimeType.startsWith("image"))
351 return; 352 return;
352 if (resourceType === WebInspector.resourceTypes.Font && resource.mimeTyp e && !resource.mimeType.includes("font")) 353 if (resourceType === WebInspector.resourceTypes.Font && resource.mimeTyp e && !resource.mimeType.includes("font"))
353 return; 354 return;
354 if ((resourceType === WebInspector.resourceTypes.Image || resourceType = == WebInspector.resourceTypes.Font) && resource.contentURL().startsWith("data:") ) 355 if ((resourceType === WebInspector.resourceTypes.Image || resourceType = == WebInspector.resourceTypes.Font) && resource.contentURL().startsWith("data:") )
355 return; 356 return;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 425
425 _reset: function() 426 _reset: function()
426 { 427 {
427 for (var project of this._workspaceProjects.values()) 428 for (var project of this._workspaceProjects.values())
428 project.reset(); 429 project.reset();
429 this._workspaceProjects.clear(); 430 this._workspaceProjects.clear();
430 }, 431 },
431 432
432 __proto__: WebInspector.SDKObject.prototype 433 __proto__: WebInspector.SDKObject.prototype
433 } 434 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698