Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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", ["indexed-db-storage-t ree-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 Loading... | |
| 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, ["indexed-db-object-store-storage-tree-item"]); |
|
vsevik
2014/12/19 07:20:48
should it have service-worker in the class name he
dmurph
2014/12/19 21:45:07
This is for the icon. I added serviceworker speci
| |
| 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 Loading... | |
| 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 } |
| OLD | NEW |