| 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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 /** | 451 /** |
| 452 * @constructor | 452 * @constructor |
| 453 * @extends {InspectorBackendClass.Connection} | 453 * @extends {InspectorBackendClass.Connection} |
| 454 * @param {!Protocol.ServiceWorkerAgent} agent | 454 * @param {!Protocol.ServiceWorkerAgent} agent |
| 455 * @param {string} workerId | 455 * @param {string} workerId |
| 456 */ | 456 */ |
| 457 WebInspector.ServiceWorkerConnection = function(agent, workerId) | 457 WebInspector.ServiceWorkerConnection = function(agent, workerId) |
| 458 { | 458 { |
| 459 InspectorBackendClass.Connection.call(this); | 459 InspectorBackendClass.Connection.call(this); |
| 460 //FIXME: remove resourceTreeModel and others from worker targets | 460 //FIXME: remove resourceTreeModel and others from worker targets |
| 461 this.suppressErrorsForDomains(["Worker", "Page", "CSS", "DOM", "DOMStorage",
"Database", "Network", "IndexedDB", "ServiceWorkerCache"]); | 461 this.suppressErrorsForDomains(["Worker", "Page", "CSS", "DOM", "DOMStorage",
"Database", "Network", "IndexedDB"]); |
| 462 this._agent = agent; | 462 this._agent = agent; |
| 463 this._workerId = workerId; | 463 this._workerId = workerId; |
| 464 } | 464 } |
| 465 | 465 |
| 466 WebInspector.ServiceWorkerConnection.prototype = { | 466 WebInspector.ServiceWorkerConnection.prototype = { |
| 467 /** | 467 /** |
| 468 * @override | 468 * @override |
| 469 * @param {!Object} messageObject | 469 * @param {!Object} messageObject |
| 470 */ | 470 */ |
| 471 sendMessage: function(messageObject) | 471 sendMessage: function(messageObject) |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 }, | 699 }, |
| 700 | 700 |
| 701 /** | 701 /** |
| 702 * @return {boolean} | 702 * @return {boolean} |
| 703 */ | 703 */ |
| 704 _shouldBeRemoved: function() | 704 _shouldBeRemoved: function() |
| 705 { | 705 { |
| 706 return this._isRedundant() && (!this._hasErrorLog() || this._deleting); | 706 return this._isRedundant() && (!this._hasErrorLog() || this._deleting); |
| 707 } | 707 } |
| 708 } | 708 } |
| OLD | NEW |