| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 { | 230 { |
| 231 this._manager._dispatchMessage(workerId, message); | 231 this._manager._dispatchMessage(workerId, message); |
| 232 }, | 232 }, |
| 233 | 233 |
| 234 /** | 234 /** |
| 235 * @override | 235 * @override |
| 236 * @param {!Array.<!ServiceWorkerAgent.ServiceWorkerRegistration>} registrat
ions | 236 * @param {!Array.<!ServiceWorkerAgent.ServiceWorkerRegistration>} registrat
ions |
| 237 */ | 237 */ |
| 238 workerRegistrationUpdated: function(registrations) | 238 workerRegistrationUpdated: function(registrations) |
| 239 { | 239 { |
| 240 //FIXME: implement this. | 240 // FIXME: implement this. |
| 241 }, | 241 }, |
| 242 | 242 |
| 243 /** | 243 /** |
| 244 * @override | 244 * @override |
| 245 * @param {!Array.<!ServiceWorkerAgent.ServiceWorkerVersion>} versions | 245 * @param {!Array.<!ServiceWorkerAgent.ServiceWorkerVersion>} versions |
| 246 */ | 246 */ |
| 247 workerVersionUpdated: function(versions) | 247 workerVersionUpdated: function(versions) |
| 248 { | 248 { |
| 249 //FIXME: implement this. | 249 // FIXME: implement this. |
| 250 }, | |
| 251 | |
| 252 /** | |
| 253 * @override | |
| 254 * @param {string} registrationId | |
| 255 */ | |
| 256 workerRegistrationDeleted: function(registrationId) | |
| 257 { | |
| 258 //FIXME: implement this. | |
| 259 } | 250 } |
| 260 } | 251 } |
| 261 | 252 |
| 262 /** | 253 /** |
| 263 * @constructor | 254 * @constructor |
| 264 * @extends {InspectorBackendClass.Connection} | 255 * @extends {InspectorBackendClass.Connection} |
| 265 * @param {!Protocol.ServiceWorkerAgent} agent | 256 * @param {!Protocol.ServiceWorkerAgent} agent |
| 266 * @param {string} workerId | 257 * @param {string} workerId |
| 267 */ | 258 */ |
| 268 WebInspector.ServiceWorkerConnection = function(agent, workerId) | 259 WebInspector.ServiceWorkerConnection = function(agent, workerId) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 284 this._agent.sendMessage(this._workerId, JSON.stringify(messageObject)); | 275 this._agent.sendMessage(this._workerId, JSON.stringify(messageObject)); |
| 285 }, | 276 }, |
| 286 | 277 |
| 287 _close: function() | 278 _close: function() |
| 288 { | 279 { |
| 289 this.connectionClosed("worker_terminated"); | 280 this.connectionClosed("worker_terminated"); |
| 290 }, | 281 }, |
| 291 | 282 |
| 292 __proto__: InspectorBackendClass.Connection.prototype | 283 __proto__: InspectorBackendClass.Connection.prototype |
| 293 } | 284 } |
| OLD | NEW |