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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 | 490 |
491 /** | 491 /** |
492 * @constructor | 492 * @constructor |
493 * @extends {InspectorBackendClass.Connection} | 493 * @extends {InspectorBackendClass.Connection} |
494 * @param {!Protocol.ServiceWorkerAgent} agent | 494 * @param {!Protocol.ServiceWorkerAgent} agent |
495 * @param {string} workerId | 495 * @param {string} workerId |
496 */ | 496 */ |
497 WebInspector.ServiceWorkerConnection = function(agent, workerId) | 497 WebInspector.ServiceWorkerConnection = function(agent, workerId) |
498 { | 498 { |
499 InspectorBackendClass.Connection.call(this); | 499 InspectorBackendClass.Connection.call(this); |
500 //FIXME: remove resourceTreeModel and others from worker targets | 500 // FIXME: remove resourceTreeModel and others from worker targets |
501 this.suppressErrorsForDomains(["Worker", "Page", "CSS", "DOM", "DOMStorage",
"Database", "Network", "IndexedDB"]); | 501 this.suppressErrorsForDomains(["Worker", "Page", "CSS", "DOM", "DOMStorage",
"Database", "Network", "IndexedDB"]); |
502 this._agent = agent; | 502 this._agent = agent; |
503 this._workerId = workerId; | 503 this._workerId = workerId; |
504 } | 504 } |
505 | 505 |
506 WebInspector.ServiceWorkerConnection.prototype = { | 506 WebInspector.ServiceWorkerConnection.prototype = { |
507 /** | 507 /** |
508 * @override | 508 * @override |
509 * @param {!Object} messageObject | 509 * @param {!Object} messageObject |
510 */ | 510 */ |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 }, | 797 }, |
798 | 798 |
799 /** | 799 /** |
800 * @return {boolean} | 800 * @return {boolean} |
801 */ | 801 */ |
802 _shouldBeRemoved: function() | 802 _shouldBeRemoved: function() |
803 { | 803 { |
804 return this._isRedundant() && (!this._hasErrorLog() || this._deleting); | 804 return this._isRedundant() && (!this._hasErrorLog() || this._deleting); |
805 } | 805 } |
806 } | 806 } |
OLD | NEW |