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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 this._manager._workerRegistrationUpdated(registrations); | 362 this._manager._workerRegistrationUpdated(registrations); |
363 }, | 363 }, |
364 | 364 |
365 /** | 365 /** |
366 * @override | 366 * @override |
367 * @param {!Array.<!ServiceWorkerAgent.ServiceWorkerVersion>} versions | 367 * @param {!Array.<!ServiceWorkerAgent.ServiceWorkerVersion>} versions |
368 */ | 368 */ |
369 workerVersionUpdated: function(versions) | 369 workerVersionUpdated: function(versions) |
370 { | 370 { |
371 this._manager._workerVersionUpdated(versions); | 371 this._manager._workerVersionUpdated(versions); |
| 372 }, |
| 373 |
| 374 /** |
| 375 * @override |
| 376 * @param {!ServiceWorkerAgent.ServiceWorkerErrorMessage} errorMessage |
| 377 */ |
| 378 workerErrorReported: function(errorMessage) |
| 379 { |
| 380 // FIXME: Implement this. |
372 } | 381 } |
373 } | 382 } |
374 | 383 |
375 /** | 384 /** |
376 * @constructor | 385 * @constructor |
377 * @extends {InspectorBackendClass.Connection} | 386 * @extends {InspectorBackendClass.Connection} |
378 * @param {!Protocol.ServiceWorkerAgent} agent | 387 * @param {!Protocol.ServiceWorkerAgent} agent |
379 * @param {string} workerId | 388 * @param {string} workerId |
380 */ | 389 */ |
381 WebInspector.ServiceWorkerConnection = function(agent, workerId) | 390 WebInspector.ServiceWorkerConnection = function(agent, workerId) |
(...skipping 15 matching lines...) Expand all Loading... |
397 this._agent.sendMessage(this._workerId, JSON.stringify(messageObject)); | 406 this._agent.sendMessage(this._workerId, JSON.stringify(messageObject)); |
398 }, | 407 }, |
399 | 408 |
400 _close: function() | 409 _close: function() |
401 { | 410 { |
402 this.connectionClosed("worker_terminated"); | 411 this.connectionClosed("worker_terminated"); |
403 }, | 412 }, |
404 | 413 |
405 __proto__: InspectorBackendClass.Connection.prototype | 414 __proto__: InspectorBackendClass.Connection.prototype |
406 } | 415 } |
OLD | NEW |