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: Source/devtools/front_end/resources/ResourcesPanel.js

Issue 813173002: [ServiceWorker] Cache inspector out from flag, style & icon changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed Experiment, added icon css Created 6 years 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, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * Copyright (C) 2013 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2013 Samsung Electronics. 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 this.resourcesListTreeElement = new WebInspector.StorageCategoryTreeElement( this, WebInspector.UIString("Frames"), "Frames", ["frame-storage-tree-item"]); 46 this.resourcesListTreeElement = new WebInspector.StorageCategoryTreeElement( this, WebInspector.UIString("Frames"), "Frames", ["frame-storage-tree-item"]);
47 this.sidebarTree.appendChild(this.resourcesListTreeElement); 47 this.sidebarTree.appendChild(this.resourcesListTreeElement);
48 48
49 this.databasesListTreeElement = new WebInspector.StorageCategoryTreeElement( this, WebInspector.UIString("Web SQL"), "Databases", ["database-storage-tree-ite m"]); 49 this.databasesListTreeElement = new WebInspector.StorageCategoryTreeElement( this, WebInspector.UIString("Web SQL"), "Databases", ["database-storage-tree-ite m"]);
50 this.sidebarTree.appendChild(this.databasesListTreeElement); 50 this.sidebarTree.appendChild(this.databasesListTreeElement);
51 51
52 this.indexedDBListTreeElement = new WebInspector.IndexedDBTreeElement(this); 52 this.indexedDBListTreeElement = new WebInspector.IndexedDBTreeElement(this);
53 this.sidebarTree.appendChild(this.indexedDBListTreeElement); 53 this.sidebarTree.appendChild(this.indexedDBListTreeElement);
54 54
55 if (WebInspector.isWorkerFrontend() && Runtime.experiments.isEnabled("servic eWorkerCacheInspection")) { 55 if (WebInspector.isWorkerFrontend()) {
56 this.serviceWorkerCacheListTreeElement = new WebInspector.ServiceWorkerC acheTreeElement(this); 56 this.serviceWorkerCacheListTreeElement = new WebInspector.ServiceWorkerC acheTreeElement(this);
57 this.sidebarTree.appendChild(this.serviceWorkerCacheListTreeElement); 57 this.sidebarTree.appendChild(this.serviceWorkerCacheListTreeElement);
58 } 58 }
59 59
60 this.localStorageListTreeElement = new WebInspector.StorageCategoryTreeEleme nt(this, WebInspector.UIString("Local Storage"), "LocalStorage", ["domstorage-st orage-tree-item", "local-storage"]); 60 this.localStorageListTreeElement = new WebInspector.StorageCategoryTreeEleme nt(this, WebInspector.UIString("Local Storage"), "LocalStorage", ["domstorage-st orage-tree-item", "local-storage"]);
61 this.sidebarTree.appendChild(this.localStorageListTreeElement); 61 this.sidebarTree.appendChild(this.localStorageListTreeElement);
62 62
63 this.sessionStorageListTreeElement = new WebInspector.StorageCategoryTreeEle ment(this, WebInspector.UIString("Session Storage"), "SessionStorage", ["domstor age-storage-tree-item", "session-storage"]); 63 this.sessionStorageListTreeElement = new WebInspector.StorageCategoryTreeEle ment(this, WebInspector.UIString("Session Storage"), "SessionStorage", ["domstor age-storage-tree-item", "session-storage"]);
64 this.sidebarTree.appendChild(this.sessionStorageListTreeElement); 64 this.sidebarTree.appendChild(this.sessionStorageListTreeElement);
65 65
(...skipping 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1405 1405
1406 1406
1407 /** 1407 /**
1408 * @constructor 1408 * @constructor
1409 * @extends {WebInspector.StorageCategoryTreeElement} 1409 * @extends {WebInspector.StorageCategoryTreeElement}
1410 * @param {!WebInspector.ResourcesPanel} storagePanel 1410 * @param {!WebInspector.ResourcesPanel} storagePanel
1411 * @implements {WebInspector.TargetManager.Observer} 1411 * @implements {WebInspector.TargetManager.Observer}
1412 */ 1412 */
1413 WebInspector.ServiceWorkerCacheTreeElement = function(storagePanel) 1413 WebInspector.ServiceWorkerCacheTreeElement = function(storagePanel)
1414 { 1414 {
1415 WebInspector.StorageCategoryTreeElement.call(this, storagePanel, WebInspecto r.UIString("ServiceWorkerCache"), "IndexedDB", ["indexed-db-storage-tree-item"]) ; 1415 WebInspector.StorageCategoryTreeElement.call(this, storagePanel, WebInspecto r.UIString("Service Worker Cache"), "ServiceWorkerCache", ["service-worker-cache -storage-tree-item"]);
1416 } 1416 }
1417 1417
1418 WebInspector.ServiceWorkerCacheTreeElement.prototype = { 1418 WebInspector.ServiceWorkerCacheTreeElement.prototype = {
1419 _initialize: function() 1419 _initialize: function()
1420 { 1420 {
1421 /** @type {!Array.<!WebInspector.SWCacheTreeElement>} */ 1421 /** @type {!Array.<!WebInspector.SWCacheTreeElement>} */
1422 this._swCacheTreeElements = []; 1422 this._swCacheTreeElements = [];
1423 var targets = WebInspector.targetManager.targets(); 1423 var targets = WebInspector.targetManager.targets();
1424 for (var i = 0; i < targets.length; ++i) { 1424 for (var i = 0; i < targets.length; ++i) {
1425 if (!targets[i].serviceWorkerCacheModel) 1425 if (!targets[i].serviceWorkerCacheModel)
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 1534
1535 /** 1535 /**
1536 * @constructor 1536 * @constructor
1537 * @extends {WebInspector.BaseStorageTreeElement} 1537 * @extends {WebInspector.BaseStorageTreeElement}
1538 * @param {!WebInspector.ResourcesPanel} storagePanel 1538 * @param {!WebInspector.ResourcesPanel} storagePanel
1539 * @param {!WebInspector.ServiceWorkerCacheModel} model 1539 * @param {!WebInspector.ServiceWorkerCacheModel} model
1540 * @param {!WebInspector.ServiceWorkerCacheModel.CacheId} cacheId 1540 * @param {!WebInspector.ServiceWorkerCacheModel.CacheId} cacheId
1541 */ 1541 */
1542 WebInspector.SWCacheTreeElement = function(storagePanel, model, cacheId) 1542 WebInspector.SWCacheTreeElement = function(storagePanel, model, cacheId)
1543 { 1543 {
1544 WebInspector.BaseStorageTreeElement.call(this, storagePanel, null, cacheId.n ame, ["indexed-db-storage-tree-item"]); 1544 WebInspector.BaseStorageTreeElement.call(this, storagePanel, null, cacheId.n ame, ["service-worker-cache-tree-item"]);
1545 this._model = model; 1545 this._model = model;
1546 this._cacheId = cacheId; 1546 this._cacheId = cacheId;
1547 } 1547 }
1548 1548
1549 WebInspector.SWCacheTreeElement.prototype = { 1549 WebInspector.SWCacheTreeElement.prototype = {
1550 get itemURL() 1550 get itemURL()
1551 { 1551 {
1552 // I don't think this will work at all. 1552 // I don't think this will work at all.
1553 return "swcache://" + this._cacheId.name; 1553 return "swcache://" + this._cacheId.name;
1554 }, 1554 },
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
2393 WebInspector.ResourcesPanelFactory.prototype = { 2393 WebInspector.ResourcesPanelFactory.prototype = {
2394 /** 2394 /**
2395 * @override 2395 * @override
2396 * @return {!WebInspector.Panel} 2396 * @return {!WebInspector.Panel}
2397 */ 2397 */
2398 createPanel: function() 2398 createPanel: function()
2399 { 2399 {
2400 return WebInspector.ResourcesPanel._instance(); 2400 return WebInspector.ResourcesPanel._instance();
2401 } 2401 }
2402 } 2402 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/resources/IndexedDBViews.js ('k') | Source/devtools/front_end/resources/ServiceWorkerCacheViews.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698