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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |