Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: Source/devtools/front_end/sdk/ServiceWorkerManager.js

Issue 1048763002: [DevTools] Show LastModified and ResponseTime of ServiceWorker script in DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use WebInspector.UIString Created 5 years, 8 months 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) 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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698