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

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

Issue 1100403004: Add skipWaiting checkbox to ServiceWorkersView in DevTools [2/2 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 /** 188 /**
189 * @param {string} versionId 189 * @param {string} versionId
190 */ 190 */
191 inspectWorker: function(versionId) 191 inspectWorker: function(versionId)
192 { 192 {
193 this._agent.inspectWorker(versionId); 193 this._agent.inspectWorker(versionId);
194 }, 194 },
195 195
196 /** 196 /**
197 * @param {string} versionId
198 */
199 skipWaiting: function(versionId)
200 {
201 this._agent.skipWaiting(versionId);
202 },
203
204 /**
197 * @param {string} workerId 205 * @param {string} workerId
198 * @param {string} url 206 * @param {string} url
199 */ 207 */
200 _workerCreated: function(workerId, url) 208 _workerCreated: function(workerId, url)
201 { 209 {
202 new WebInspector.ServiceWorker(this, workerId, url); 210 new WebInspector.ServiceWorker(this, workerId, url);
203 }, 211 },
204 212
205 /** 213 /**
206 * @param {string} workerId 214 * @param {string} workerId
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 }, 718 },
711 719
712 /** 720 /**
713 * @return {boolean} 721 * @return {boolean}
714 */ 722 */
715 _shouldBeRemoved: function() 723 _shouldBeRemoved: function()
716 { 724 {
717 return this._isRedundant() && (!this._hasErrorLog() || this._deleting); 725 return this._isRedundant() && (!this._hasErrorLog() || this._deleting);
718 } 726 }
719 } 727 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698