| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 this._databaseModel.enable(); | 160 this._databaseModel.enable(); |
| 161 this._domStorageModel.enable(); | 161 this._domStorageModel.enable(); |
| 162 var indexedDBModel = WebInspector.IndexedDBModel.fromTarget(this._target
); | 162 var indexedDBModel = WebInspector.IndexedDBModel.fromTarget(this._target
); |
| 163 if (indexedDBModel) | 163 if (indexedDBModel) |
| 164 indexedDBModel.enable(); | 164 indexedDBModel.enable(); |
| 165 | 165 |
| 166 var cacheStorageModel = WebInspector.ServiceWorkerCacheModel.fromTarget(
this._target); | 166 var cacheStorageModel = WebInspector.ServiceWorkerCacheModel.fromTarget(
this._target); |
| 167 if (cacheStorageModel) | 167 if (cacheStorageModel) |
| 168 cacheStorageModel.enable(); | 168 cacheStorageModel.enable(); |
| 169 | 169 |
| 170 if (this._target.isPage()) | 170 if (this._target.hasBrowserCapability()) |
| 171 this._populateResourceTree(); | 171 this._populateResourceTree(); |
| 172 this._populateDOMStorageTree(); | 172 this._populateDOMStorageTree(); |
| 173 this._populateApplicationCacheTree(); | 173 this._populateApplicationCacheTree(); |
| 174 this.indexedDBListTreeElement._initialize(); | 174 this.indexedDBListTreeElement._initialize(); |
| 175 this.cacheStorageListTreeElement._initialize(); | 175 this.cacheStorageListTreeElement._initialize(); |
| 176 this._initDefaultSelection(); | 176 this._initDefaultSelection(); |
| 177 }, | 177 }, |
| 178 | 178 |
| 179 _initDefaultSelection: function() | 179 _initDefaultSelection: function() |
| 180 { | 180 { |
| (...skipping 2033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2214 WebInspector.ResourcesPanelFactory.prototype = { | 2214 WebInspector.ResourcesPanelFactory.prototype = { |
| 2215 /** | 2215 /** |
| 2216 * @override | 2216 * @override |
| 2217 * @return {!WebInspector.Panel} | 2217 * @return {!WebInspector.Panel} |
| 2218 */ | 2218 */ |
| 2219 createPanel: function() | 2219 createPanel: function() |
| 2220 { | 2220 { |
| 2221 return WebInspector.ResourcesPanel._instance(); | 2221 return WebInspector.ResourcesPanel._instance(); |
| 2222 } | 2222 } |
| 2223 } | 2223 } |
| OLD | NEW |