| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 WebInspector.ServiceWorkerVersion.prototype = { | 449 WebInspector.ServiceWorkerVersion.prototype = { |
| 450 /** | 450 /** |
| 451 * @param {!ServiceWorkerAgent.ServiceWorkerVersion} payload | 451 * @param {!ServiceWorkerAgent.ServiceWorkerVersion} payload |
| 452 */ | 452 */ |
| 453 _update: function(payload) | 453 _update: function(payload) |
| 454 { | 454 { |
| 455 this.id = payload.versionId; | 455 this.id = payload.versionId; |
| 456 this.scriptURL = payload.scriptURL; | 456 this.scriptURL = payload.scriptURL; |
| 457 this.runningStatus = payload.runningStatus; | 457 this.runningStatus = payload.runningStatus; |
| 458 this.status = payload.status; | 458 this.status = payload.status; |
| 459 this.updateTime = payload.updateTime; | 459 this.scriptLastModified = payload.scriptLastModified; |
| 460 this.scriptResponseTime = payload.scriptResponseTime; |
| 460 }, | 461 }, |
| 461 | 462 |
| 462 /** | 463 /** |
| 463 * @return {boolean} | 464 * @return {boolean} |
| 464 */ | 465 */ |
| 465 isStartable: function() | 466 isStartable: function() |
| 466 { | 467 { |
| 467 return !this._registration.isDeleted && this.isActivated() && this.isSto
pped(); | 468 return !this._registration.isDeleted && this.isActivated() && this.isSto
pped(); |
| 468 }, | 469 }, |
| 469 | 470 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 }, | 639 }, |
| 639 | 640 |
| 640 /** | 641 /** |
| 641 * @return {boolean} | 642 * @return {boolean} |
| 642 */ | 643 */ |
| 643 _shouldBeRemoved: function() | 644 _shouldBeRemoved: function() |
| 644 { | 645 { |
| 645 return this._isRedundant() && (!this._hasErrorLog() || this._deleting); | 646 return this._isRedundant() && (!this._hasErrorLog() || this._deleting); |
| 646 } | 647 } |
| 647 } | 648 } |
| OLD | NEW |