| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Invariant: This model can only be constructed on a ServiceWorker target. | 6 * Invariant: This model can only be constructed on a ServiceWorker target. |
| 7 * @constructor | 7 * @constructor |
| 8 * @extends {WebInspector.SDKModel} | 8 * @extends {WebInspector.SDKModel} |
| 9 */ | 9 */ |
| 10 WebInspector.ServiceWorkerCacheModel = function(target) | 10 WebInspector.ServiceWorkerCacheModel = function(target) |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 /** | 314 /** |
| 315 * @param {!WebInspector.Target} target | 315 * @param {!WebInspector.Target} target |
| 316 * @return {!WebInspector.ServiceWorkerCacheModel} | 316 * @return {!WebInspector.ServiceWorkerCacheModel} |
| 317 */ | 317 */ |
| 318 WebInspector.ServiceWorkerCacheModel.fromTarget = function(target) | 318 WebInspector.ServiceWorkerCacheModel.fromTarget = function(target) |
| 319 { | 319 { |
| 320 if (!target[WebInspector.ServiceWorkerCacheModel._symbol]) | 320 if (!target[WebInspector.ServiceWorkerCacheModel._symbol]) |
| 321 target[WebInspector.ServiceWorkerCacheModel._symbol] = new WebInspector.
ServiceWorkerCacheModel(target); | 321 target[WebInspector.ServiceWorkerCacheModel._symbol] = new WebInspector.
ServiceWorkerCacheModel(target); |
| 322 | 322 |
| 323 return target[WebInspector.ServiceWorkerCacheModel._symbol]; | 323 return target[WebInspector.ServiceWorkerCacheModel._symbol]; |
| 324 } | 324 } |
| OLD | NEW |